/* 2024 Restyled CSS Goes Here */

:root{
    --accent-color-primary: #058192;
    --accent-color-subtle: #c5edea;
    --dark-primary: #011f3d;
    --text-primary: #011f3d;
    --layer-01:#f9fafb;
    --layer-01-active: #E7EBEE;
}

*,*::before,*::after{
    color:var(--text-primary,#161616) !important;
}

a[href],
a[href] *{
    color: var(--accent-color-primary, #0043ce) !important;
    text-decoration: underline;
    white-space: normal;
}

html{
    overflow: hidden;
}

body{
    margin-left: 0px;
    margin-right: 0px;
}

img {
    max-width: 100%;
}

/* navbar styling */
.navcontainer {
    top: 0;
    left: 0px;
    right: 0px;
    height: 64px;
    box-shadow: 0px 2px 7px 1px rgb(127 129 135 / 48%);
    padding: 8px;

    display: flex;
    align-items: center;
}

.navbar.navbar-sag {
    background-color: white;
    margin-bottom: 0px;
    flex: 1;
}

a.navbar-brand {
    height: 32px;
    padding: 0px !important;
    margin: 0px !important;
}

.navbar-brand:hover, .navbar-brand:focus{
    background-color: transparent !important;
}

.navbar-header {
    height: 32px;
    display: flex;
    align-items: center;
}

a.navbar-brand > img {
    margin-top: 1px;
}

/* Toc Icon styling */
.ww_skin.ww_skin_toc:nth-child(2),
.ww_skin.ww_skin_toc:nth-child(2):hover{
    background-image: url('../graphics/toc.svg') !important;
    background-position: center;
}

.ww_skin.ww_skin_toc:nth-child(2):hover{
    cursor: pointer;
}

.ww_skin.ww_skin_toc.ww_skin_toc_spacer{
    display: none;
}

a.ww_skin {
	text-decoration: none !important;
}

/* Home button styling */
.ww_skin.ww_skin_home{
    display: none;
    visibility: hidden;
    block-size: 0px;
}

/* Searchbar styling */
input#search{
    width: 262px;
}

input#search:focus {
    box-shadow: none;
}

ul.nav.navbar-nav.navbar-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ww_skin_toolbar_background_default{
    background: transparent !important;

    display: -webkit-flex;
    display: flex;
    align-items: center;
}

.navbar-form[role="search"] .form-group{
    background-color: white;
    border: solid 1px var(--dark-primary, #161616);
}

.ww_skin.ww_skin_search{
    -webkit-filter: invert(1);
    filter: invert(1);
}

.ww_skin.ww_skin_search:hover{
    background-position: -304px -234px !important;
}

.navbar-form-control-sag{
    height: 32px;
    border: none;

    -o-border-radius: 0px;
    -ms-border-radius: 0px;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    border-radius: 0px;
}

a.ww_skin.ww_skin_prev:nth-child(2) {
    filter: invert(1) !important;
    opacity: 0.5;
}

a.ww_skin.ww_skin_next:nth-child(2) {
    filter: invert(1) !important;
    opacity: 0.5;
}

/* Main body styling */
.main-body {
    margin-top: 65px;
}

/* TOC Styling */
#toc-top {
    display: none;
}

.navbar.navbar-default.navbar-toc .navbar-header{
    display: none;
}

div.tocindex.col-sm-3 {
    height: calc(100vh - 32px);
    background-color: var(--layer-01, #f4f4f4);
    border-right: solid #c6c6c6 1px;
    padding-right: 0px;
    width: 330px;
    transition: all 300ms ease-in-out;
    /*overflow-y: auto;
    */:;
    -webkit-transition: all 300ms ease-in-out;
    -moz-transition: all 300ms ease-in-out;
    -ms-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;

    /* margin-top: 152px; */
}

.navbar-default{
    background-color: transparent;
    border: none;
}

.sidebar-nav {
    width: 330px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    padding-right: 4px;
    /* margin-top: 32px; */
}

.navbar.navbar-default.navbar-toc {
    height: max-content;
}

@media only screen and (max-width: 900px) {
    .nottocindex{
        width: 100% !important;
    }
}

/* toc item styling */
li.fishi-dd {
    height: max-content;
    display: flex !important;
    flex-direction: column;
    align-items: baseline;
    margin: 4px 0px;
}

li.fishi-dd.expanded{
    border-top: solid rgb(225, 229, 234) 2px !important;
    border-bottom: solid rgb(225, 229, 234) 2px !important;
}

li.fishi-dd > a[href]{
    width: 100%;
    min-height: 43px;
    height: max-content;
    display: flex !important;
    padding: 8px;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    color: #525252 !important;
    text-decoration: none;
}

li.fishi-dd a:hover,
li.fishi-dd a:focus,
li.fishi-dd a:focus-visible{
    cursor: pointer;
    outline: solid var(--accent-color-primary, #0043ce) 2px;
}

li.fishi-dd a:active{
    outline: none;
    background-color: var(--accent-color-subtle, #d0e2ff);
}

.nav>li>a:focus, 
.nav>li>a:hover,
li.fishi-dd > a:hover, 
.fishi-dd-menu > li > a:hover, 
.navbar-default .navbar-nav > li > a:hover, 
.navbar-default .navbar-nav > li > a:focus {
    background-color: transparent;
}

.fishi-dd a[href]{
    flex: 1;
    position: relative;
    color: #525252 !important;
    text-decoration: none !important;
}

.fishi-arrow {
    font-size: 0px;
    height: 20px;
    width: 20px;
    background-image: url('../graphics/dlt-icon-chevron-down.svg');
    background-repeat: no-repeat;
    background-size: cover;
    margin-right: -8px;
    transition: all 250ms linear;
    -webkit-transition: all 250ms linear;
    -moz-transition: all 250ms linear;
    -ms-transition: all 250ms linear;
    -o-transition: all 250ms linear;
}

.fishi-dd.expanded > a b.fishi-arrow{
    transform: rotateZ(180deg);
    -webkit-transform: rotateZ(180deg);
    -moz-transform: rotateZ(180deg);
    -ms-transform: rotateZ(180deg);
    -o-transform: rotateZ(180deg);
    transition: all 250ms linear;
}

a.fishi-active {
    background-color: var(--layer-01-active, #E7EBEE) !important;
    color: #525252 !important;
}

a.fishi-active::before {
    content: '';
    width: 6px;
    height: 100%;
    background-color: var(--accent-color-primary);
    display: inline-block;
    position: absolute;
    top: 0px;
    left: 0px;
}

ul.fishi-dd-menu{
    width: 100%;
}

ul.nav.xnavbar-nav.navbar-toc-tree.fishi-first li > a[href]{
    width: 100%;
    min-height: 43px;
    height: max-content;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0px;
    color: #525252 !important;
    text-decoration: none !important;
    padding-left: 20px;
}

ul.fishi-dd-menu li a{
    width: 100%;
    min-height: 43px;
    height: max-content;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 48px !important;
    margin: 2px 0px;
    color: #525252;
}

/* Content Styling */

.pageheading {
    margin-top: 74px;
}

.overview-page{
    margin-top: 0px;
}

.category-row {
    margin-top: 32px;
}

li.category-header {
    padding-left: 0px;
    font-weight: 600;
    border-bottom: solid #c6c6c6 1px;
}

ul.category-right,
ul.category-left {
    margin: 0px;
    /* min-width: 240px; */
}

ul.category-single {
    margin: 0px;
}

.category-item a {
    font-size: 14px;
    line-height: 24px;
}

.nottocindex {
    padding: 0px 24px;
}

.nottocindex {
    height: calc(100vh - 64px);
    overflow: scroll;
    width: calc(100vw - 330px);
    padding-left: 24px;

    display: flex;
    flex-direction: column;

    scroll-padding-top: 44px;
}

.nottocindex.col-sm-12{
    width: 100%;
}

:target:before {
    content: none;
}

body.toc-collapsed .nottocindex{
    width: 100%;
}

.overview-page .category-spanrow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 22px;
}

/* Breadcrumb styling */
.nottocindex div.container-breadcrumb {
    top: 65px;
    right: 20px;
    left: 340px;
    background-color: transparent;
}

.breadcrumb-sag {
    top: 64px;
    left: 340px;
    background-color: white;
    padding-right: 44px;
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

body.toc-collapsed .breadcrumb-sag{
    left: 10px;
}

.breadcrumb-sag a[href]{
    text-decoration: none !important;
}

.breadcrumb-header a[href]{
    color: var(--text-primary, #161616) !important;
}

.breadcrumb>li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb > li + li::before{
    content: none;
}

.breadcrumb > li:not(.active)::after{
    content: '';
    display: inline-block;
    background-image: url('../graphics/dlt-icon-chevron-down.svg');
    height: 20px;
    width: 20px;
    transform: rotate(-90deg);
    background-position: -2px;
    margin: 0px 4px;
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
}

/* Print icon styling */
.ww_skin.ww_skin_print{
    position: fixed;
    right: 30px;
    top: 77px;
    z-index: 8;
    margin: 0px;
    display: flex;
}

/* Table styling */
table.color thead tr th {
    background-color: white !important;
    border-bottom: solid #D2D9E0 1px !important;
    border-top: solid #D2D9E0 1px !important;
}

table.color tbody tr th {
    background-color: white !important;
    border-bottom: solid #D2D9E0 1px !important;
    border-top: solid #D2D9E0 1px !important;
}

table.color tbody tr td{
    border: none;
	width: fit-content;
}

table.color tbody tr{
    border-bottom: solid #D2D9E0 1px !important;
}

table.color tbody tr:first-child td{
    border-top: 1px solid #D2D9E0 !important;
}

table.color tbody tr td{
    background-color: white  !important;
    padding: 4px;
}

table.color tbody tr:nth-child(2n+1) td{
    background-color: #f8f8f8 !important;
}

table.screen{
	width: fit-content !important;
}

table.syntax {
    width: max-content;
    max-width: 100%;
    overflow-x: scroll;
}

/* Footer Styling */
footer{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.footer{
    border-top: solid #f2f2f2 1px !important;
    padding: 6px 0px;
}

.footer a{
    cursor: default;
    text-decoration: none !important;
    color: #161616 !important;
    font-size: 10px;
    padding-top: 6px;
}

/* Note Styling */
.admonition p {
    font-weight: normal;
    font-size: 14px;
    line-height: 20px;
    background-color: #F9FAFB;
    position: relative;
    padding: 12px;
}

.admonition p > strong:first-child{
    text-transform: uppercase;
}

.admonition p.note {
    border-left: 0.3rem solid #011F3D;
}

.admonition p.note > strong:first-child{
    color: #011F3D !important;
}

.admonition p.important {
    border-left: 0.3rem solid #0366C9;
}

.admonition p.important > strong:first-child{
    color: #0366C9 !important;
}

.admonition p.tip {
    border-left: 0.3rem solid #00B050;
}

.admonition p.tip > strong:first-child{
    color: #00B050 !important;
}

.admonition p.caution {
    border-left: 0.3rem solid #E07800;
}

.admonition p.caution > strong:first-child{
    color: #E07800 !important;
}

/* Inline list styling */
.list-item{
    list-style: square;
    list-style-position: inside;
}

/* Responsive Styling */
.collapse{
    display:  block !important;
}

.sidebar-nav {
	margin: 0px !important;
}

.navbar-collapse {
	padding: 0px;
}

/* CSS Fixes */

.container-fluid.main-body {
	position: fixed;
	top: 0px;
	left: 0px;
	right: 0px;
}

/* System output block */
pre.planning, pre.text, pre.verbatim, pre.command-input, pre.syntax-example,
pre.system-output{
    overflow: visible;
    display: block;
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    min-height: max-content;
    max-height: max-content;
    overflow-x: auto;
    padding: 8px;
}
/* Firefox tweak */
@supports (-moz-appearance:none){
pre.planning, pre.text, pre.verbatim, pre.command-input, pre.syntax-example, pre.system-output
{overflow-x: visible;
width: fit-content;
min-width: min-content;}
}
/* iOS tweak */
 
@supports (-webkit-touch-callout:none) {
pre.text, pre.verbatim, pre.command-input, pre.syntax-example, pre.system-output
{overflow-x: visible;
width: fit-content;
min-width: min-content;}
} 

/* Right toc */

.nottocindex {
    position: relative;
    padding-right: 320px;
    overflow-x: hidden;
}

body.righttoc-collapse .nottocindex{
    padding-right: 60px;
}

.right-tocindex {
    position: fixed;
    right: 0;
    width: 300px;
    top: 105px;
    max-height: calc(100vh - 270px);
}

.right-tocindex .right-tocindex-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 6px;
    margin-right: 6px;
}

body.righttoc-collapse .right-tocindex .right-tocindex-header{
    justify-content: right;
}

.right-tocindex #right-tocindex-toggle{
    width: max-content;
    margin: 10px;
    background-color: var(--background-grey-subtle, #f4f4f4);
    border: solid #ddd 1px;
    border-radius: 16px 0px 0px 16px;
    height: 40px;
    display: grid;
    justify-content: center;
    align-items: center;
    padding: 0px 7px 0px 9px;
    box-shadow: 0px 2px 10px 2px rgba(1, 31, 61, 0.08);
    transition: transform 250ms linear;
}

.right-tocindex h3 {
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    margin-bottom: 16px;
}

body.righttoc-collapse .right-tocindex h3{
    display: none;
}

.right-tocindex ul {
    padding-left: 0px;
}

body.righttoc-collapse .right-tocindex ul{
    display: none;
}

.right-tocindex ul li {
    list-style: none;
    border-left: solid #e1e1e1 4px;
    padding: 4px 0px;
    padding-left: 16px;
    padding-right: 24px;
}

.right-tocindex ul li a{
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #36597D !important;
    text-decoration: none;
}

.right-tocindex ul li.indent-h3{
    padding-left: 36px;
}

.right-tocindex ul li.indent-h4{
    padding-left: 56px;
}

.right-tocindex ul li.active {
    border-left-color: var(--accent-color-primary, #058192);
}

.right-tocindex ul li.active a{
    font-weight: bold;
    font-size: var(--text-primary, #011f3d) !important;
}

/* Search results styling */

#searchModal .modal-content{
    position: fixed;
    height: max-content;
    max-height: 90vh;
    min-width: 250px;
    width: 80vw;
    max-width: 800px;

    overflow-y: auto;
    overflow-x: hidden;

    top: 50%;
    left: 50%;
    -o-transform: translate(-50%, -51%);
    -ms-transform: translate(-50%, -51%);
    -moz-transform: translate(-50%, -51%);
    -webkit-transform: translate(-50%, -51%);
    transform: translate(-50%, -51%);

    -o-border-radius: 0px;
    -ms-border-radius: 0px;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    border-radius: 0px;
}

#searchModal .modal-header {
    position: sticky;
    top: 0px;
    width: 100%;
    background-color: white;
    z-index: 999;
}

#searchModal .input-group {
    position: sticky;
    top: 57px;
    margin-left: -16px;
    margin-right: -16px;
    padding: 16px;
    background-color: white;
    margin-top: -16px;
}

footer {
    width: calc(100vw - 300px);
}

@media only screen and (max-width: 681px) {
    .right-tocindex{
        display: none !important;
    }

    .nottocindex{
        padding-right: 60px;
    }
}

@media (min-width: 768px) {
    .category-row {
        -webkit-column-gap: 32px;
        -moz-column-gap: 32px;
        column-gap: 32px;
    }
}

@media (max-width: 900px) {
    div.tocindex.col-sm-3{
        position: absolute;
        margin-top: 0px;
    }

    .tocindex.col-sm-3 {
        position: fixed;
        z-index: 100;
    }

    body.toc-collapsed .tocindex.col-sm-3 {
        left: -330px;
    }

    .breadcrumb-sag{
        left: 20px;
    }

    .navbar-form[role="search"] .form-group{
        border: none;
    }
}

@media print {

    header{
        display: none;
    }

    div.tocindex.col-sm-3{
        display: none !important;
    }

    .nottocindex{
        width: 93%;
        padding: 32px;
        margin-top: 0px;
    }

    .nottocindex div.container-breadcrumb{
        top: -50px;
        left: -10px;
    }

    .breadcrumb-sag{
        position: static;
    }

    .pageheading {
        margin-top: 0px;
    }

    .main-body {
        margin-top: 24px;
    }

    .nav.navbar-nav.navbar-left li,
    ul.nav.navbar-nav.navbar-right li{
        list-style: none;
    }

    .navbar.navbar-sag {
        padding: 0px 16px;
    }

    .navbar-form[role="search"] {
        display: none;
    }

    .navcontainer {
        height: 64px;
        overflow: hidden;
        max-height: 64px;
        box-sizing: border-box;
    }

    .ww_skin_toolbar_right{
        display: none;
    }

    .ww_skin.ww_skin_toc {
        display: none;
    }
}


/*  Module PDF link */

@media only screen {
    a.module-pdf {
	position: fixed;
	right: 60px;
	top: 77px;
	display: flex;
	z-index: 8
    }
}
