﻿/* topmenu.css */
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css');
@import url('/Styles/Library/vars.css');

:root {
    --main-bg: hsl(0, 0%, 93%);
    --main-fg: hsl(0, 0%, 7%);
    --hover-bg: hsl(205, 60%, 59%);
    --topmenu-connect-bg: #7b3ff2;
    --topmenu-connect-shadow: rgba(123, 63, 242, .45);
    --header-h: 2.75rem;
    --font-family-karla: "Karla", sans-serif;
    --trans: all .5s ease-out;
}

@keyframes topMenuBounce {
    0%, 28%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    2% {
        transform: translateY(-1px) rotate(-1.4deg);
    }

    4% {
        transform: translateY(-1px) rotate(1.4deg);
    }

    6% {
        transform: translateY(0) rotate(0deg);
    }

    8% {
        transform: translateY(-1px) rotate(-1.4deg);
    }

    10% {
        transform: translateY(-1px) rotate(1.4deg);
    }

    12% {
        transform: translateY(0) rotate(0deg);
    }

    14% {
        transform: translateY(-1px) rotate(-1.4deg);
    }

    16% {
        transform: translateY(-1px) rotate(1.4deg);
    }

    18% {
        transform: translateY(0) rotate(0deg);
    }

    20% {
        transform: translateY(-1px) rotate(-1.4deg);
    }

    22% {
        transform: translateY(-1px) rotate(1.4deg);
    }

    24% {
        transform: translateY(0) rotate(0deg);
    }

    26% {
        transform: translateY(-1px) rotate(-1.4deg);
    }

    27% {
        transform: translateY(-1px) rotate(1.4deg);
    }
}

@keyframes topMenuConnectGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--topmenu-connect-shadow);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(123, 63, 242, 0);
    }
}

/* ========== Base / Utilities ========== */
.dataTables_wrapper row {
    width: 100%;
}

.qtip-font-size {
    font-size: 15px !important;
    line-height: 1.3em !important;
    text-align: justify !important;
    word-wrap: break-word;
}

.ui-tooltip,
.qtip {
    max-width: 100vw;
}

:is(.ui-tooltip,.qtip) .ui-tooltip-content {
    text-align: justify;
}

body .hidden, .topBanner, #apiPage #smallFont, #smallFont {
    display: none !important;
    visibility: hidden;
}

a {
    text-decoration: none;
    cursor: pointer;
}

    a[disabled] {
        pointer-events: none;
        cursor: not-allowed;
        color: #888 !important;
    }

.menu-label,
.menu-span {
    font-family: var(--font-family-karla) !important;
}
/* ========== Header Layout / Top Menu ========== */
#header_content {
    background: var(--color-bg-light, #f6f6f6);
    height: var(--header-h);
    border-bottom: 1px solid #8888;
    z-index: 10;
    position: relative;
    overflow: visible;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 0 .5rem;
}

    #header_content a {
        text-decoration: none;
    }

    #header_content * {
        box-sizing: border-box;
    }

    #header_content :is(#userpro, #ulTop) {
        user-select: none;
        -webkit-user-select: none;
    }

    body[data-topmenu-prompt="menu"] #header_content #ulTop {
        animation: topMenuBounce 7s ease-in-out infinite;
        transform-origin: top left;
    }

    body[data-topmenu-prompt="menu"] #header_content #ulTop:is(:hover, :focus-within) {
        animation-play-state: paused;
    }

#ulTop {
    margin: 0 !important;
    display: grid;
    list-style: none;
    padding: 0;
    border: 1px solid color-mix(in hsl, var(--color-text), transparent 80%);
    border-top-width: 0;
    border-left-width: 0;
    background: var(--color-bg-light, #eee);
    display: inline-block;
    min-width: 14.375rem;
    min-height: calc(var(--header-h) + .25rem);
    position: relative;
    overflow: visible;
    transition: var(--trans);
    border-bottom-right-radius: .5rem;
}

    #ulTop .dropbtn {
        height: 100%;
        cursor: pointer;
        padding: 0 0 0 .75rem;
        margin: 0;
    }

    #ulTop:is(:hover, :has(#mnu:checked)) {
        border-bottom-right-radius: 1rem;
    }

        #ulTop:is(:hover, :has(#mnu:checked)) ul {
            max-height: 80vh;
            opacity: 1;
            transform: translateY(0);
            padding: 0 0 10px 0;
        }

    #ulTop .menu-label {
        font-size: 1rem;
        font-weight: 600;
    }

    #ulTop > li {
        padding: 0 0 0 1px;
        position: relative;
        line-height: 1em;
    }

    #ulTop ul {
        display: block !important;
        width: max-content;
        min-width: 14.375rem;
        background-color: var(--color-bg-light, #f6f6f6);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: var(--trans);
    }

        #ulTop ul li a {
            font-size: 1.05rem !important;
            display: block;
            padding: 0 1ch;
            font-size: .95rem;
            line-height: 1.5rem;
            white-space: nowrap;
            color: var(--color-text, #000);
            border-radius: 10px;
        }

            #ulTop ul li a span {
                padding-left: .25ch;
            }

        #ulTop ul li:has(.fa):not(:has(span)) .fa {
            margin-right: .5ch
        }

        #ulTop ul li a:hover {
            background: var(--color-primary, #56a1d5);
            text-decoration: none;
        }

body[data-topmenu-prompt="connect"] #ulTop ul li a#topmenu-connect-banks {
    background: var(--topmenu-connect-bg);
    color: #fff;
    animation: topMenuConnectGlow 1.5s ease-in-out infinite;
}

    body[data-topmenu-prompt="connect"] #ulTop ul li a#topmenu-connect-banks :is(i, span) {
        color: inherit;
    }

    body[data-topmenu-prompt="connect"] #ulTop ul li a#topmenu-connect-banks:is(:hover, :focus-visible) {
        background: var(--color-primary, #56a1d5);
        animation: none;
    }

#ulTop .c-hamburger {
    display: block;
    position: relative;
    padding: 0;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 4rem;
    transition: background .3s;
}

    #ulTop .c-hamburger:focus {
        outline: none;
    }

    #ulTop .c-hamburger span {
        display: block;
        position: absolute;
        top: 10px;
        left: 1px;
        right: 1px;
        height: 2px;
        background: var(--color-text);
        transition: background .3s;
    }

        #ulTop .c-hamburger span::before, #ulTop .c-hamburger span::after {
            position: absolute;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--color-text);
            content: "";
            transition-duration: .3s;
            transition-delay: 0;
            transition-property: top, bottom, transform;
        }

        #ulTop .c-hamburger span::before {
            top: -5px;
        }

        #ulTop .c-hamburger span::after {
            bottom: -5px;
        }

#ulTop #mnu:checked ~ .dropbtn .c-hamburger span {
    background: none;
}

    #ulTop #mnu:checked ~ .dropbtn .c-hamburger span::before {
        top: 0;
        transform: rotate(45deg);
    }

    #ulTop #mnu:checked ~ .dropbtn .c-hamburger span::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

#ulTop .dropbtn {
    display: flex;
    align-items: center;
    gap: 2ch;
}

#ulTop .logo {
    align-self: end;
    max-height: calc(var(--header-h) - .1rem);
    width: auto;
    pointer-events: none;
    opacity: 1;
    margin-left: auto;
    translate: -.5rem 0;
    flex-shrink: 0;
}

[data-bs-theme="dark"] #ulTop .logo {
    opacity: .5;
}
/* ========== User Profile Dropdown ========== */
#userpro {
    grid-column: 3;
    background: var(--color-bg-light, #f6f6f6);
    margin: 0 !important;
    padding: 10px;
    border: 1px solid #8888;
    border-top-width: 0 !important;
    max-height: calc(var(--header-h) + .25rem);
    min-height: calc(var(--header-h) + .25rem);
    border-radius: 0 0 .2rem .5rem;
    transition: var(--trans);
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}

    #userpro > span {
        display: grid;
        grid-template-columns: auto auto 1fr;
        align-items: center;
        gap: 0 .5ch;
        line-height: 1.5rem;
    }

    #userpro .prolink {
        cursor: default;
        color: var(--color-primary);
    }

    #userpro ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #userpro li {
        padding: 0;
    }

    #userpro > ul {
        max-height: 0;
        overflow: hidden;
        width: 28ch !important;
        opacity: 0;
        transition: var(--trans);
    }

        #userpro > ul > li > a i, #ttSignOut i {
            margin-right: .5ch;
        }

        #userpro > ul > li > ul {
            padding-left: 2ch;
            overflow: hidden;
            border-left: 1px solid #ddd;
            margin: .5ch 1ch;
            padding-left: 2ch;
            clear: both;
            display: flex;
            flex-direction: column;
            align-items: start;
        }

    #userpro:hover {
        /*! border-bottom-left-radius: 20px; */
        max-height: 15em;
    }

        #userpro:hover > ul {
            margin-top: 10px;
            max-height: 15em;
            opacity: 1;
        }
/* ========== Sidebar / Submenu basics (nested) ========== */
#ulTop ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

    #ulTop ul li {
        display: block;
        position: relative;
    }

        #ulTop ul li a {
            background: transparent;
            transition: var(--trans);
        }
/* first-level submenu */
#ulTop li ul {
    background-color: var(--color-bg-light, #f6f6f6);
}

#ulTop li li {
    position: relative;
    margin: 0;
    display: block;
    padding: 0;
}

    #ulTop li li:has([disabled]) {
        cursor: not-allowed;
    }

    #ulTop li li:empty, #ulTop li li:not(:has(a)) {
        height: .5rem;
    }

    #ulTop li li ul {
        margin: 0;
    }
/* generic sub-menu behaviour */
ul.sub-menu {
    display: none;
}

li.dropdown > a {
    background-position: right 20px;
    background-repeat: no-repeat;
}

li li.dropdown > a {
    background-position: right 16px;
}

.divSel {
    float: right;
    margin: 0 0 .5em;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0;

    > a {
        border: 1px dashed #222 !important;

        &:nth-of-type(1) {
            border-radius: 10px 0 0 10px !important;
        }

        &:nth-of-type(2) {
            border-left: 1px solid transparent !important;
            border-right: 1px solid transparent !important;
        }

        &:nth-of-type(3) {
            border-radius: 0 10px 10px 0 !important;
        }

        &:hover {
            border: 1px dashed #bbb !important;
        }

        &:is(:active, :focus) {
            box-shadow: inset 0 0 3px #000 !important;
        }
    }
}

.topBanner ~ header .dropbtn {
    border-top: color-mix(in hsl, red, transparent 50%) 1px solid !important;
}

:is(#profit_content, #header_content, #main_content) h1 {
    color: var(--color-primary);
    margin: 0;
    font-size: 1.5rem;
    display: inline-block;
    padding: 0;
    font-weight: bold;
    pointer-events: auto;
    overflow: auto;
    line-height: .9em;
}

body:has(#header_content h1) :is(#profit_content, #main_content) h1 {
    display: none !important;
}

#header_content h1 {
    position: unset;
    height: auto;
    transform: none;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-align: center;
    align-self: center;
    margin: 0;
}

/* ========== Modals ========== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background-color: var(--color-modal-overlay, #000);
    opacity: .5;
    transition: opacity .5s;
}

    .modal-backdrop:not(.in, .show, [style*="block"]) {
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s linear;
    }

    .modal-backdrop:is(.in, .show, [style*="block"]) {
        opacity: .7;
        pointer-events: all;
    }

body.modal-open {
    padding-right: 1rem !important;
}

:is(#profit_content, #main_content) :is(.modal, ~ .modal) {
    position: fixed;
    inset: 0;
    display: none;
    margin: 0;
    background: transparent;
    border: 0;
    pointer-events: none;
    left: 50%;
    width: 200vw;
    height: 200vh;
    transform: translateX(-50%);
    opacity: 0;
    -webkit-transition: opacity .15s linear;
    -moz-transition: opacity .15s linear;
    -o-transition: opacity .15s linear;
    transition: opacity .15s linear;
    --bs-modal-margin: 0 !important;

    body:not(:has(link[href*="bootstrap"])) & {
        position: fixed;
        top: 0;
        left: 50%;
        z-index: 1051;
        width: 100vw;
        transform: translateX(-50%);
        background-color: transparent;
        border: 1px solid transparent;
        border-radius: 1rem;
        box-shadow: none;
        background-clip: padding-box;
        outline: none;
        transition: opacity .3s linear, top .3s ease-out;
        overflow: visible;
        width: 100% !important;
        left: 0;
        right: 0;
        transform: translateX(0);
        min-width: 100vw;
    }

    &.fade {
        top: -25%;
    }

    &:is(.in, .show, [style*="block"]) {
        top: 0;
        transition: opacity .3s linear, top .3s ease-out;
        z-index: 1051;
        display: block !important;
        opacity: 1;
    }

    &.in.hide {
        display: block !important;
        visibility: visible;
    }

    &:not(:has(.modal-content)) {
        width: 60%;
        height: auto;
        pointer-events: auto;
    }

    > * {
        pointer-events: auto;
    }
    /* Bootstrap 5 gives .modal-dialog a 500px max-width, auto margins, and
   pointer-events: none — neutralize it so it doesn't clip or block the
   absolutely-positioned .modal-content inside it. */
    .modal-dialog {
        position: relative;
        max-width: none !important;
        margin: 0 !important;
        pointer-events: none;
        width: auto;

        .modal-content {
            position: relative;
            inset: 1.5rem;
            background: var(--color-bg-light);
            border: 1px solid rgba(0, 0, 0, .2);
            border-radius: 1rem;
            max-width: calc(100vw - 3rem);
            overflow: auto;
            left: 50%;
            translate: -50% 0;
            resize: both;
            max-height: calc(100vh - 3rem);

            /* Once the user drags the resize handle the browser writes an inline
               width onto this element; stop forcing min-content so the drag sticks. */
            &:not([style*="width"]) {
                width: min-content !important;
                min-width: 50vw;
            }

            :has(.modal-footer) .modal-body {
                max-height: calc(100vh - 10rem);
            }

            .modal-header {
                padding: 0;
                min-height: 20px;
                line-height: 1;
                user-select: none;
                overflow: hidden;
                background: var(--color-bg-light);
                border-radius: 1rem 1rem 0 0;
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;

                .minimize {
                    order: 7 !important;
                }

                :is(h2, h3, h4, .modal-title) {
                    order: 1 !important;
                    margin: 0 0 0 1rem;
                    width: 100%;
                    padding: 0;
                    color: var(--color-primary);
                    line-height: 30px;
                    font-weight: 500;
                    font-size: 18px;
                    text-shadow: 2px 2px 8px #0004;
                }

                :is(.maximize, .close) {
                    box-sizing: border-box;
                    width: 2rem;
                    padding: 12px 8px;
                    border: 1px solid #888;
                    border-bottom: none;
                    line-height: 5px;
                    font-size: 24px;
                    background: transparent;
                    color: var(--color-text);
                    opacity: .35;
                    cursor: pointer;
                    order: 2 !important;

                    &.maximize {
                        order: 8 !important;
                    }

                    &.close {
                        order: 9 !important;
                    }

                    &:is(:hover, :focus) {
                        background: rgba(128, 128, 128, .5);
                        color: #000;
                        text-decoration: none;
                        opacity: .5;
                    }
                }

                .close {
                    margin: 0;
                    width: 5rem;
                    padding: 13px;
                    line-height: 1;
                    font-size: 42px;
                    border: 1px solid transparent;
                    border-left: 1px solid #888;
                    border-bottom: none;
                    border-top-right-radius: 1rem;
                    background: var(--color-bg-dark-trans, #0004);
                    color: #888;
                }

                .maximize {
                    margin: 0;
                    border-top: none;
                    border-right: none;
                }
            }

            .modal-body {
                position: relative;
                overflow: auto;
                padding: 1ch;
                margin: 0;
                background: var(--color-bg-dark);
                border-top: 1px solid var(--color-border-muted, #ccc);

                [action*="FileIt"] & {
                    background: var(--color-bg-dark);
                }

                iframe {
                    position: relative;
                    inset: 0;
                    width: 100%;
                    height: calc(100% - 1em);
                    min-width: 0;
                    max-width: 100%;
                    z-index: 1060;
                }

                .modal-form {
                    margin-bottom: 0;
                }
            }

            .modal-footer {
                padding: 14px 15px 15px;
                text-align: right;
                background: var(--color-bg-light, #f5f5f5);
                border-top: 1px solid var(--color-border-muted, #ddd);
                border-radius: 0 0 1rem 1rem;
                box-shadow: inset 0 1px 0 var(--color-bg-light, #fff);

                &:is(::before,::after) {
                    content: "";
                    display: table;
                }

                &::after {
                    clear: both;
                }

                .btn + .btn {
                    margin: 0 0 0 5px;
                }

                .btn-group .btn + .btn {
                    margin-left: -1px;
                }

                &.btn-block + .btn-block {
                    margin-left: 0;
                }

                label.pull-right {
                    float: right;
                    display: block;
                    padding: 1em 0;
                }
            }
        }
    }
}

:is(#profit_content, #main_content) :is(.modal.drag .modal-header, .modal .modal-header.drag) {
    cursor: move;
}

/* **** End Modals **** */
/* **** MediaStyles **** */
/* Smartphones (portrait and landscape) ----------- */
/* media queries: */
@media only screen and (max-height: 550px) {
    #header_content #ulTop #myDropdown {
        overflow: auto !important;
    }
}

@media (min-width: 768px) {
    [data-font-size="small"] .page-content {
        min-width: 1000px;
    }
}

@media only screen and (max-width: 767px) {
    .dataTables_wrapper {
        overflow-x: scroll;
        width: 100%;
    }

    #header_content {
        background: transparent !important;
        border: none;
        z-index: 100;
        height: auto;
    }

        #header_content #ulTop > li {
            position: static;
        }

        #header_content #ulTop .dropbtn {
            background: transparent;
            margin: 0;
            border: none;
        }

        #header_content #ulTop ul {
            transition: all 1s;
            opacity: 0;
            top: 0 !important;
            max-height: 0;
        }

    :is(#header_content #ulTop:hover,#header_content #ulTop #mnu:checked) ul, :is(#header_content #ulTop:hover,#header_content #ulTop #mnu:checked) ~ ul {
        transition: var(--trans);
        top: var(--header-h) !important;
        max-height: 100vh;
        opacity: 1;
        display: block;
        overflow: hidden;
    }

    :is(#header_content #ulTop:hover,#header_content #ulTop #mnu:checked) .dropbtn {
        border-bottom-right-radius: 0;
    }

    #header_content #userpro {
        background: color-mix(in hsl, var(--color-bg-light), transparent 5%);
        z-index: 101;
        max-height: none;
        padding: 0;
    }

        #header_content #userpro:hover,
        #header_content #userpro:focus-within {
            max-height: none;
        }

            #header_content #userpro:hover > ul,
            #header_content #userpro:focus-within > ul {
                max-height: 80vh;
                overflow-y: auto;
            }

    #header_content #ulTop {
        z-index: 102;
    }

    #header_content:has(#userpro:hover),
    #header_content:has(#userpro:focus-within) {
        #ulTop {
            z-index: 100;
        }

        #userpro {
            z-index: 103;
        }
    }

    #header_content #userpro ul li ul li {
        padding: 0;
    }

    #header_content #userpro a {
        color: var(--color-primary);
    }

        #header_content #userpro a:hover {
            color: var(--color-secondary);
        }

    body, #userpro > ul > li:first-child, .right_header, .homePageWidget {
        text-align: center;
    }

    #userpro > ul > li > ul {
        align-items: center;
    }

    .c-mask {
        top: 133px !important;
    }

    #header_content {
        border-bottom: none !important;
    }

    #ulTop {
        text-align: left;
    }

    #profit_sidebar a:hover {
        opacity: .8;
    }

    .headline {
        display: none;
    }

    .printBtn {
        display: none;
    }

    .right_header {
        display: block !important;
        margin-top: 8px !important;
    }

        .right_header a {
            width: 99%;
            height: auto;
            display: block;
            margin: 0 2% 10px;
            box-sizing: content-box;
            -moz-box-sizing: content-box;
            -webkit-box-sizing: content-box;
        }

    .homePageWidget {
        float: none;
        width: 100%;
        margin: 0 !important;
    }

    .noMobile {
        display: none;
    }
}
/* iPads (portrait and landscape) ----------- */
@media only screen and (min-width : 768px) and (max-width : 1024px) {
    .dataTables_wrapper {
        overflow-x: scroll;
        width: 100%;
    }

    #profit_content .table th, #profit_content .table td {
        padding: 10px 0 !important;
        line-height: 20px;
        text-align: left;
        vertical-align: top;
        border-top: 1px solid #ddd;
        font-size: 14px;
    }

    :root[data-font-size="small"] #profit_content .table th, #profit_content .table td {
        padding: 0 2px !important;
    }

    #profit_content .table td, #userpro > ul > li:first-child, .right_header, .headline, .homePageWidget {
        text-align: center;
    }

    .headline {
        margin: 15px 0 10px;
        float: left;
        width: 50%;
        font-size: 32px;
        font-size: 3.2rem;
    }

    .homePageWidget {
        float: none;
        width: 100%;
        margin: 0 !important;
    }

    .headSmall {
        font-size: 20px;
        font-weight: 400;
        display: block;
    }

    #profit_content img {
        max-width: 100vw;
    }

    .right_header {
        float: right;
        display: block;
        margin: 15px 1% 0 0;
    }

        .right_header a {
            width: 99%;
            height: auto;
            display: block;
            float: left;
            margin: 0 2%;
            box-sizing: content-box;
            -moz-box-sizing: content-box;
            -webkit-box-sizing: content-box;
        }

    .noMobile {
        display: none;
    }

    p {
        line-height: 1.2;
    }

    #upload_box {
        display: none;
    }

    .footer {
        font-size: .8em;
    }

        .footer #last img {
            display: none;
        }

    .home_header {
        padding-top: 0;
        font-size: 1.2em;
    }

    .uppercase {
        text-transform: uppercase;
        font-weight: 400;
        font-size: 1em;
        padding: 0px;
    }

    #home_top {
        margin: 0 0 2em;
    }
}
/* Smaller Monitors ----------- */
@media only screen and (min-width : 1025px) and (max-width : 1224px) {
    #profit_content .table th, #profit_content .table td {
        padding: 10px 0 !important;
        line-height: 20px;
        text-align: left;
        vertical-align: top;
        border-top: 1px solid #ddd;
        font-size: 14px;
    }

    #profit_content .table td {
        text-align: center !important;
    }

    #profit_content .totalText {
        text-align: left;
        padding-left: 5px;
    }

    .headSmall {
        font-size: 20px;
        font-weight: 400;
        display: block;
    }

    .right_header {
        float: right;
        display: block;
        margin: 30px 2.5% 0 0;
    }
}
/* Desktops and laptops ----------- */
@media only screen and (min-width : 1224px) {
    .container, .footer {
        width: 1050px;
    }
}
/* Largest screens ----------- */
@media only screen and (min-width : 1824px) {
    .container, .footer {
        width: 1200px;
    }
}

@media only screen {
    [data-bs-theme="dark"] .modal-backdrop {
        background-color: var(--color-modal-overlay-dark, #181825);
    }
}

@media print {
    #header_content, #sidebar, #profit_content h1, .profit_menu, .printBtn, .primaryButton, #instruction, #txtStartDate, #txtEndDate, #btnGenerateReport, #addNotes, #printIcon, .customerSelect, .contact-callout, .report_container h2, .zEWidget-launcher {
        display: none !important;
    }

    #profit_content {
        width: 100%;
        background: #fff;
        margin: 0;
        box-shadow: 0;
    }

    #tblBalanceSheet, #tblBalanceSheet td, #tblBalanceSheet tr, #tblBalanceSheet th {
        border: none !important;
        margin: 0;
        padding-bottom: .5em !important;
        padding-top: .5em !important;
        font-size: 14px !important;
    }

    input {
        border: none;
        box-shadow: none;
        font-weight: bold;
        color: #000;
    }

    #tblProfitLossPrintBody {
        margin: 10px 0 !important;
    }

    #profit_content #tblProfitLossPrintBody > * > * {
        padding: 0;
        text-align: left !important;
        border-left: 1px solid #ddd !important;
    }

    .table {
        border-right: 1px solid #ddd !important;
        border-bottom: 1px solid #ddd !important;
        width: 95% !important;
        margin: 30px auto !important;
    }

    .groupTotalName:last-child {
        background-color: aqua !important;
        color: #000 !important;
        display: inline-block !important;
    }

    .modal, [class*="modal"] {
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        top: 0 !important;
        overflow: visible !important;
        transform: none !important;
    }

    .modal-backdrop {
        border: none;
    }

    :root {
        --smfont: 12pt;
        --sm2font: 12.75pt;
        --lgfont: 15pt;
        --titlefont: 13.5pt;
        --title2font: 12.75;
        --datefont: 12pt;
    }

    #profit_content {
        --color-text: hsl(0, 0%, 7%);
        --color-bg-dark: hsl(0, 0%, 100%);
        --color-bg-light: hsl(0, 0%, 100%);
        /* everything else inherits your global brand vars */
    }

    @page {
        margin: 1cm;
    }

    body,
    html {
        color: var(--color-text, #111);
        background: var(--color-bg-dark, #fff);
        font-size: 14px;
    }

    .content {
        padding-top: 0px !important;
    }

    .swMain .stepContainer div.content,
    #PrintMainDiv {
        background: #fff !important;
        border-width: 0 !important;
        margin-bottom: 0px !important;
        padding-bottom: 0px !important;
    }

    .stepContainer {
        max-height: 100% !important;
    }

    .report_container {
        padding: 0px !important;
        margin: 0px !important;
    }

    input[type="text"] {
        width: 50%;
        text-align: center;
        border: none !important;
        box-shadow: none !important;
    }

    #tblBalanceSheet,
    #tblGeneralLedger,
    #tblAccountsTable {
        margin-top: 0px !important;
    }

        #tblBalanceSheet,
        #tblBalanceSheet :is(td, tr, th, th :is(span, label)),
        #tblGeneralLedger,
        #tblGeneralLedger th {
            border: none !important;
            padding-top: 0 !important;
            margin-top: 0 !important;
            font-size: var(--sm3font) !important;
        }

            #tblBalanceSheet tr td + td span {
                display: inline-block;
                min-width: 85px;
                padding-top: 0px !important;
            }

            #tblBalanceSheet,
            #tblBalanceSheet :is(td, tr, th) {
                padding-bottom: 7px !important;
            }

                #tblBalanceSheet thead tr:last-child th {
                    padding-bottom: var(--belowdate) !important;
                }

                #tblBalanceSheet thead th {
                    border: none !important;
                }

                #tblBalanceSheet thead th, #tblBalanceSheet th span {
                    padding: 0px !important;
                    margin: 0px !important;
                }

    #tblBalanceSheetBody span a:first-of-type {
        color: black;
    }

    #tblBalanceSheet thead th span:is(#MainContent_lblbalanceCompany, #MainContent_lblbalanceCompany2), .lblCompanyName {
        font-size: var(--titlefont) !important;
        margin: 0 auto !important;
    }

    #tblBalanceSheet thead th span.balance_title, .txtbalance_edit_print {
        font-size: var(--title2font) !important;
        color: black;
        width: 350px !important;
        text-align: center;
        display: inline-block;
    }

    label#edate {
        font-size: var(--datefont) !important;
        text-align: center;
        display: block;
        margin-bottom: var(--belowdate) !important;
    }

    .Assets1, .Current_Liabilities_Section {
        font-size: var(--titlefont) !important;
    }

    #tblBalanceSheetBody :is(tr.balanceSheet td + td span, span, a) {
        font-size: var(--smfont) !important;
        color: var(--color-text, #000) !important;
    }

    #divBalanceSheet {
        border: none !important;
    }

    .tblBalanceSheet input[type="text"] {
        width: 50%;
        text-align: center;
        border: none !important;
        box-shadow: none !important;
    }

    .income_title {
        font-size: var(--titlefont) !important;
        color: black;
    }

    #tblProfitLossPrint tr th input:is([type="text"], span) {
        font-size: var(--title2font) !important;
        color: black;
        width: 350px !important;
        text-align: center;
    }

    .control-label {
        padding: 10px 0 !important;
        font-size: var(--titlefont) !important;
        text-align: center;
        display: block;
        border: none !important;
        box-shadow: none !important;
        width: 60% !important;
        color: var(--color-text, #000) !important;
    }

    .date-label {
        font-size: var(--datefont) !important;
        text-align: center;
        display: block;
        margin-bottom: 0px !important;
        padding-bottom: var(--belowdate) !important;
    }

    #tblProfitLossPrintBody > tr :is(> td > label, > td) {
        font-size: var(--sm3font) !important;
    }

    #tblProfitLossPrintBody tr.profitloss_2 td a {
        font-size: var(--smfont) !important;
        color: var(--color-text, #000);
    }

    .txtincome_title {
        font-size: var(--titlefont) !important;
        color: var(--color-text, #000) !important;
        font-weight: bold;
    }

    #divtransactionbody {
        margin-top: 0px !important;
    }

    #tblProfitLossPrint td {
        border-left: none !important;
    }

    .Current_Liabilities_Section {
        margin-top: 20px !important;
    }

    #tblProfitLossPrint tr td + td span {
        min-width: 75px !important;
    }

    #profit_content :is(#tblBalanceSheet, #tblGeneralLedger, #tblProfitLossPrint).table {
        margin-top: 0px !important;
    }

    #tblProfitLossPrint, #tblProfitLossPrint th {
        border: none !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        font-size: 12pt !important;
    }

    #tblProfitLossPrintBody tr:last-child > th {
        border: none !important;
    }

    #tblProfitLossPrintBody, #tblProfitLossPrintBody :is(td, label, a) .totalText {
        font-size: var(--sm2font) !important;
    }

    hr {
        border-color: var(--color-text, #000) !important;
        border-width: thin !important;
        border-top-style: solid !important;
        border-bottom-style: solid !important;
        margin: 0px !important;
    }

    #tblIncome .table td {
        padding: 1px !important;
    }

    #tblIncome .table th {
        padding: 8px !important;
    }

    #tblGeneralLedger th {
        border: none !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        border-right: none !important;
    }

    #profit-content .stepContainer .table, #divtransactionbody, .report_container {
        margin: 0 !important;
        padding: 0 !important;
    }

    #profit_content :is(td, td :is(a, label, span)):not([style*="color"]) {
        color: hsl(0, 0%, 7%) !important;
    }
}

body.in-iframe #header_content {
    display: none !important;
}

.alertify-logs:not(:has(.alertify-log-show)) {
    display: none;
}
