/**
* Branded Style Sheet for Accounting Completed (Colors, Fonts, Background).
**/

/*Body Tags*/
@import url("/Styles/Library/vars.css");

:is(body, #Head1 + body, .window) {
    background: var(--color-bg-dark);
}

:is(body, #Head1 + body, body legend, #header_content, .window) {
    color: var(--color-text);
}

:is(body, input, button, select) {
    font-weight: 400;
    font-family: var(--font-base) !important;
    font-size: 16px;
}

strong {
    font-weight: bold;
}

/*Type*/
:is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-base) !important;
    color: var(--color-primary);
}

h1 {
    font-size: 44.507px;
    padding-bottom: 27.507px;
    margin-bottom: 27.507px;
    color: var(--color-text-light);
}

h2 {
    font-size: 27.507px;
    padding-bottom: 16px;
}

p {
    padding-bottom: 16px;
    font-size: 16px;
}

.instruction-manual {
    display: block;
    padding: 0 0 30px;
    text-align: center;
    text-transform: uppercase;
    font-size: 26px;
    color: var(--color-secondary);
}

    .instruction-manual:hover {
        color: var(--color-border-muted, #ccc);
    }

/* unified primary action look */
:is( #divtransaction #AddDynmicControls, #divtransaction #btnSave, .btnSubmit, .je_container a, .profit_menu li a, .primaryButton, .primaryModalButton, [role="button"] ) {
    background: var(--color-primary);
    color: var(--color-text-light);
    cursor: pointer;
    text-decoration: none;
}

    /* unified hover for primary actions */
    :is( #divtransaction #AddDynmicControls, #divtransaction #btnSave, .btnSubmit, .je_container a, .profit_menu li a, .primaryButton, .primaryModalButton, [role="button"] ):hover {
        background: var(--color-secondary);
        color: var(--color-text-light);
    }

.btn-print {
    color: var(--color-text-light);
    float: right;
    margin: 0 0 30px;
    background: var(--color-secondary);
    padding: 10px;
}

    .btn-print:hover {
        color: var(--color-text-light);
        text-decoration: none;
    }

#customerActions a {
    width: 33%;
    float: left;
    display: block;
}

#file_storage h1,
.fileitcontainer h1 {
    color: var(--color-primary);
    border-bottom: 1px dashed var(--color-primary);
    padding-top: 27.507px;
}

#header_content {
    width: 100%;
    /*border-bottom: 1px solid var(--color-border-muted);*/
}

#home_content :is(h1, h3) {
    border-bottom: 1px dashed var(--color-border-strong, #454545);
    color: var(--color-border-strong, #454545);
    padding-top: 27.507px;
}

#home_content h3 {
    padding-bottom: 10px;
    padding-bottom: 1rem;
    margin: 10px 0;
}

#home_content ul {
    list-style: disc inside;
    margin: 0 0 20px 20px;
    line-height: 1.4;
}

#MainContent_BtnChangePassword {
    margin: 16px auto 0 !important;
}

#MainContent_plInputs {
    margin-top: 20px;
    margin-top: 2rem;
}

#MainContent_Question_Message {
    display: block;
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    width: 50%;
    padding: 3em 0;
    background-color: var(--color-panel-bg, #f1f1f1);
    margin: 0 auto;
    text-align: center;
    border-radius: 10px;
}

    #MainContent_Question_Message .close {
        position: absolute;
        top: .5em;
        right: 1em;
        text-decoration: underline;
        color: var(--color-link-strong, #00188f);
    }

        #MainContent_Question_Message .close:hover {
            text-decoration: none;
            color: var(--color-text-strong, #000);
        }

#Manage_User section {
    width: 80%;
    max-width: 840px;
    margin: 0 auto;
}

    #Manage_User section legend {
        font-size: 22px;
        font-size: 2.2rem;
        padding: 0 0 20px;
        padding: 0 0 2rem;
    }

:is(#Manage_User section input[type="submit"], .btnCustom) {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: var(--color-text-light);
    padding: 5px 10px;
    float: none;
    width: auto;
    margin: 20px auto;
    display: block;
    font-size: 18px;
    border-radius: 5px;
    clear: both;
}

    :is(#Manage_User section input[type="submit"], .btnCustom):hover {
        cursor: pointer;
        background-color: var(--color-secondary);
    }

#profit_content {
    h1 {
        color: var(--color-primary);
        margin: 0;
    }

    #tblAccountsTable h2 {
        padding: 0;
    }

    h3 {
        color: var(--color-primary);
        font-size: 27.507px;
        line-height: 27.507px;
        padding: 0 0 27.507px;
    }
}

#tblCustomers {
    margin: 30px 0;
}

/*Classes*/
.btnSubmit {
    display: block;
    margin: 0 auto;
    padding: 15px;
    font-size: 18px;
    border: none;
}

/* DISABLED primary-like buttons */
:is(.primaryButton, .primaryModalButton, [role="button"])[disabled] {
    background: var(--color-btn-disabled-bg, #eee);
    color: var(--color-btn-disabled-text, #444);
    cursor: not-allowed;
}

/* secondary / soft buttons */
:is(.secButton, .secModalButton) {
    padding: 10px;
    border: none;
    color: var(--color-text-muted-strong, #4e4e4e);
    background: var(--color-primary-soft, #56a1d588);

    &:hover {
        cursor: pointer;
        background: var(--color-secondary-soft, #00467f88);
    }
}

.clear {
    clear: both;
}

    .clear:after,
    .clearfix:after {
        content: " ";
        display: table-cell;
        clear: both;
        float: left;
    }

/* FORM STATES */

/* WARNING */
.control-group {
    &.warning {
        :is(.control-label, .help-block, .help-inline, .checkbox, .radio, input, select, textarea) {
            color: var(--color-warning, #c09853);
        }

        :is(input, select, textarea) {
            border-color: var(--color-warning, #c09853);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        }

            :is(input, select, textarea):focus {
                border-color: var(--color-warning-focus, #a47e3c);
                box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px var(--color-warning-glow, #dbc59e);
            }

        :is(.input-prepend .add-on, .input-append .add-on) {
            color: var(--color-warning, #c09853);
            background-color: var(--color-warning-bg, #fcf8e3);
            border-color: var(--color-warning, #c09853);
        }
    }
    /* ERROR */
    &.error {
        :is(.control-label, .help-block, .help-inline, .checkbox, .radio, input, select, textarea) {
            color: var(--color-error, #b94a48);
        }

        :is(input, select, textarea) {
            border-color: var(--color-error, #b94a48);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        }

            :is(input, select, textarea):focus {
                border-color: var(--color-error-focus, #953b39);
                box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px var(--color-error-glow, #d59392);
            }

        :is(.input-prepend .add-on, .input-append .add-on) {
            color: var(--color-error, #b94a48);
            background-color: var(--color-error-bg, #f2dede);
            border-color: var(--color-error, #b94a48);
        }
    }
    /* SUCCESS */
    &.success {
        :is(.control-label, .help-block, .help-inline, .checkbox, .radio, input, select, textarea) {
            color: var(--color-success, #468847);
        }

        :is(input, select, textarea) {
            border-color: var(--color-success, #468847);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        }

            :is(input, select, textarea):focus {
                border-color: var(--color-success-focus, #356635);
                box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px var(--color-success-glow, #7aba7b);
            }

        :is(.input-prepend .add-on, .input-append .add-on) {
            color: var(--color-success, #468847);
            background-color: var(--color-success-bg, #dff0d8);
            border-color: var(--color-success, #468847);
        }
    }
    /* INFO */
    &.info {
        :is(.control-label, .help-block, .help-inline, .checkbox, .radio, input, select, textarea) {
            color: var(--color-info, #3a87ad);
        }

        :is(input, select, textarea) {
            border-color: var(--color-info, #3a87ad);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        }

            :is(input, select, textarea):focus {
                border-color: var(--color-info-focus, #2d6987);
                box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px var(--color-info-glow, #7ab5d3);
            }

        :is(.input-prepend .add-on, .input-append .add-on) {
            color: var(--color-info, #3a87ad);
            background-color: var(--color-info-bg, #d9edf7);
            border-color: var(--color-info, #3a87ad);
        }
    }
}

.controls {
    width: 100%;
    margin-bottom: 1em;

    .ddlCategory {
        height: 30px !important;
        border: 1px solid var(--color-border-muted, #ccc);
        margin-right: 1em;
    }

    :is(.txtAmount, .txtMemo) {
        margin-right: 1em !important;
    }
}

.headline {
    margin: 16px 0 0 0;
    float: left;
}

.headline,
.headerlabelname {
    color: var(--color-text-strong, #000);
}


.je_container {
    float: right;

    a {
        text-decoration: none;
        padding: 16px;
        font-size: 16px;
        opacity: 1;
        transition: opacity .25s ease-in-out;
        -moz-transition: opacity .25s ease-in-out;
        -webkit-transition: opacity .25s ease-in-out;
        margin-right: 3px;
    }
}

.toggle .previous:hover {
    opacity: 0.7
}



.profit_menu {
    margin: 0 auto 27.507px;
    width: 100%;

    ul ul {
        display: none;
        position: absolute;
        top: 100%;

        &:hover > ul {
            display: block;
        }
    }

    li {
        display: inline-block;
        font-size: 16px;
        position: relative;
    }

        li ul li {
            background-color: #f9f9f9;
            box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
            z-index: 1;
            font-size: 14px;
            display: block;
        }

            li ul li a {
                color: var(--color-text-light);
                text-decoration: none;
                padding: 14px;
                display: block;
                border: none;
                font-weight: bold;
                font-size: 16px;
                opacity: 1;
                transition: opacity .25s ease-in-out;
                -moz-transition: opacity .25s ease-in-out;
                -webkit-transition: opacity .25s ease-in-out;
            }

        li a {
            border: 3px solid var(--color-primary);
            font-weight: bold;
            font-size: 16px;
            opacity: 1;
            transition: opacity .25s ease-in-out;
            -moz-transition: opacity .25s ease-in-out;
            -webkit-transition: opacity .25s ease-in-out;
        }
}

.right_header {
    float: right;
    display: block;
    margin: 25px 2.5% 0 0;
}

    .right_header a:hover {
        color: var(--color-primary);
    }

    .right_header li {
        float: left;
        border: 1px solid var(--color-border-header, #32323A);
        padding-left: 15px;
        padding-right: 15px;
        margin-right: 15px;
    }

        .right_header li a {
            padding: 5px;
            display: inline-block;
            background: var(--color-text-light);
            text-transform: uppercase;
            text-decoration: none;
            box-sizing: content-box;
            font-weight: 600;
            text-align: left;
            border: 3px solid var(--color-text-light);
            font-size: 16px;
            opacity: 1;
            transition: all .25s ease-in-out;
            color: var(--color-border-header, #32323A);
            border-radius: 4px;
        }

.show_hide {
    display: block;
    padding: .5em 0;
    text-decoration: none;
}

    .show_hide:hover {
        text-decoration: underline;
    }

#profit_content {
    :is(.table-bordered, #tblAccountsTable, #tblGeneralLedger) tr:not(.fullSpan) :is(th, td) a {
        color: var(--color-primary);


        &:hover {
            color: var(--color-text);
        }
    }

    :is(.table-bordered, #tblAccountsTable, #tblGeneralLedger) tr.fullSpan :is(th, td) a {
        color: var(--color-table-fullspan-link, #318ac7);
    }

    :is(.table-bordered, #tblAccountsTable, #tblGeneralLedger) tr:not(.fullSpan):hover :is(td, th) a {
        color: var(--color-text-light);
    }
}

:is(#profit_content, #tblGeneralLedger, #tblAccountsTable) .total {
    font-weight: 600;
    padding: 16px 0;
    font-style: italic;
    font-size: 16px;
}

#tblAccountsTable .balance {
    font-weight: 600;
    font-style: italic;
    padding: 5px 0;
    display: block;
}

.lastTd {
    font-size: 18px !important;
}

.groupAccountName a {
    font-size: 28px !important;
    font-weight: 300 !important;
    padding: 16px 0;
    text-decoration: underline !important;
    display: block;
}
/* SKMs style stuff */
* {
    scrollbar-color: var(--color-primary) transparent !important;
    scrollbar-width: auto !important;
}

    *::-webkit-scrollbar {
        width: 20px;
        height: 20px;
    }

    *::-webkit-scrollbar-track {
        background: transparent;
    }

    *::-webkit-scrollbar-thumb {
        background-color: var(--color-primary);
        border: 3px solid transparent;
        border-radius: 20px;
        background-clip: padding-box;
        transition: border 1s;

        &:hover {
            border-width: 1px;
            transition: border 1s;
        }
    }

:root[data-font-size="small"] :is(#main_content, #profit_content) td.dataTables_empty,
#header_content ~ :is(#main_content, #profit_content) td.dataTables_empty {
    text-align: center !important;
    font-size: 4rem !important;
    padding: 2rem !important;
}

.odd:not(.bg-light-pink) {
    background: var(--color-bg-light-trans) !important;
}

.bg-light-pink {
    color: var(--color-bg-dark);
    background: var(--color-pink);
}

#apiPage .navbar,
.dataTables_wrapper .row:first-child .col-sm-6,
.dataTables_wrapper .row:first-child::after {
    background: transparent !important;
}

#apiPage :is(select, input) {
    background: var(--color-secondary);
    color: var(--color-text-light);
    border: 1px solid var(--color-text-light);
    border-radius: .5em;
}

    #apiPage :is(select, input):is(:hover, :active, :focus),
    #apiPage tr:hover :is(select, input) {
        color: var(--color-text-light);
        background: var(--color-primary);
    }

[data-bs-theme="light"] #apiPage :is(select, input) {
    background: var(--color-primary);
}

    [data-bs-theme="light"] #apiPage :is(select, input):is(:hover, :active, :focus),
    #apiPage tr:hover :is(select, input) {
        background: var(--color-secondary);
    }

body {
    .jstree.jstree-classic {
        background: transparent;

        a {
            color: var(--color-primary);
            font-size: 1.25em;
            line-height: 1em;
            margin-bottom: 6px;

            &:hover {
                color: var(--color-text);
            }
        }
    }
}

.jstree-classic .jstree-no-icons .jstree-checkbox {
    display: inline-block;
    transform: scale(1.5);
}

.tncagree {
    padding-bottom: 0px !important;
    padding-top: 2%;
}

:is(.tncagree, .chxbox) {
    user-select: none;

    label {
        display: block;
        width: 30ch;
        margin: 0 auto;
        background: var(--color-bg-light-trans);
        border-radius: 0.5em;
        border: 1px dashed var(--color-border-dashed-muted, #aaa);
        padding: 1em;
        padding-left: 3em;
        transition: background 0.5s, border 0.5s;
        cursor: pointer;
        opacity: 1;

        &#theme-switch {
            margin: 0 auto;
        }

        &:before {
            content: "\2610";
            display: inline-block;
            position: relative;
            width: 0;
            top: 0.5em;
            left: -2em;
            font: normal normal normal 14px/1 FontAwesome;
        }

        &:hover {
            background: var(--color-bg-light);
        }

        &:active {
            background: var(--color-border-dashed-muted, #aaa);
            border-style: solid;
        }
    }

    input {
        display: none;

        &:checked + label {
            background: var(--color-checkbox-checked-bg, lightgreen);
            border: 1px solid var(--color-checkbox-checked-border, darkgreen);

            &:before {
                content: "\2713";
            }
        }

        + h4 {
            display: block;
        }

        &[type="checkbox"] {
            width: auto !important;
        }
    }
}
