/* stylelint-disable max-line-length */

/*
 * This file relies on CSS3 variables defined in the main CSS version, ledgersmb.css
 * or any of the colored versions, ledgersmb-color.css
 */

/* stylelint-disable no-descending-specificity */

@import url("global.css");

td.money {
    padding-right: 0.5em;
    text-align: right;
}

td.date {
    white-space: nowrap !important;
}

td.boolean_checkmark,
td.check {
    text-align: center;
}

td.text,
td.href {
    padding-left: 0.5ex;
}

div#title {
    font-size: var(--div-title-font-size);
}

th.header {
    text-align: center;
}

/* general stuff */

a:link {
    text-decoration-line: none;
}

a:visited {
    text-decoration-line: none;
}

a:active {
    text-decoration-line: underline;
}

a:hover {
    background-color: var(--a-hover-bg-clr);
    text-decoration-line: underline;
}

#pwfeedback.success {
    background-color: var(--pwfeedback-success-bg-clr);
}

#pwfeedback.failure {
    background-color: var(--pwfeedback-failure-bg-clr);
}

#pw-strength.weak {
    background-color: var(--pw-strength-weak-bg-clr);
}

#pw-strength.good {
    background-color: var(--pw-strength-good-bg-clr);
}

#pw-strength.strong {
    background-color: var(--pw-strength-strong-bg-clr);
}

body {
    background-color: var(--body-bg-clr);
    color: var(--body-clr);
    font-family: var(--body-font-family);
    font-size: var(--body-font-size);
}

span.warning_label {
    color: var(--span-warning_label-clr);
    font-weight: bold;
}

td {
    font-family: var(--td-font-family);
    font-size: var(--td-font-size);
}

th {
    font-family: var(--th-font-family);
    font-size: var(--th-font-size);
}

table.form th {
    text-align: right;
}

th.centered,
table.form th.centered {
    text-align: center;
}

table.criteria td {
    text-align: left;
}

table.warning {
    border: var(--table-warning-border);
}

#version_info {
    font-size: var(--version_info-font-size);
    font-weight: bold;
}

#company_info,
#login_info {
    font-size: var(--company_info-font-size);
}

/* login and admin */

.login {
    font-family: var(--login-font-family);
}

body#app-login {
    background: var(--body-app-login-bg);
    color: var(--body-app-login-clr);
}

h1.login {
    bottom: 0;
    display: block;
    font-size: var(--h1-login-font-size);
    margin-bottom: 1em;
    margin-top: 0;
    position: absolute;
    text-align: center;
    width: 100%;
}

table.login {
    background-color: var(--table-login-bg-clr);
    padding: 20px;
}

td.login {
    text-align: center;
}

th.login {
    text-align: right;
}

table.report {
    width: 100%;
}

div.report_header {
    overflow: auto;
}

div.report_header label {
    display: block;
    float: left;
    font-weight: bold;
    margin-right: 1em;
    text-align: right;
    width: 12em;
}

body.admin {
    background-color: var(--body-admin-bg-clr);
    color: var(--body-admin-clr);
}

body.menu,
#menudiv {
    background-color: var(--body-menu-bg-clr);
    color: var(--body-menu-clr);
    font-family: var(--body-font-family);
    font-size: var(--body-font-size);
}

.mainpanel,
.menupanel {
    position: absolute !important;
    z-index: 1000 !important;
}

.cornerlogo {
    background: var(--cornerlogo-bg);
    border: var(--cornerlogo-border);
    margin-left: auto;
    margin-right: auto;
    padding: 4px;
}

.submenu {
    font-family: var(--submenu-font-family);
    font-size: var(--submenu-font-size);
    list-style: none;
    padding-left: 20px;
}

.menu_item {
    padding-left: 12px;
}

#top_menu {
    background-image: none;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-inline-start: 0;
}

#top_menu ul {
    margin: 0;
    padding: 0;
}

.menu_open {
    background-image: url("../../images/up.gif");
    background-position: 0 0;
    background-repeat: no-repeat;
    padding-left: 12px;
}

.menu_closed {
    background-image: url("../../images/down.gif");
    background-position: 0 0;
    background-repeat: no-repeat;
    padding-left: 12px;
}

.submenu a {
    color: var(--submenu-a-clr);
    text-decoration-line: none;
}

.submenu a:hover {
    background: var(--submenu-a-hover-clr);
    color: var(--submenu-a-clr);
    text-decoration-line: none;
}

.listtop {
    background-color: var(--listtop-bg-clr);
    color: var(--listtop-clr);
    font-size: var(--listtop-font-size);
    font-weight: bold;
    padding: 0.1em 1ex;
}

.listheading,
thead th {
    background-color: var(--listheading-bg-clr);
    color: var(--listheading-clr);
    font-size: var(--listheading-font-size);
    font-weight: bold;
    padding: 0.1em 1ex;
}

thead a:link {
    color: var(--thead-a-link-clr);
    font-weight: bold;
    text-decoration-line: none;
}

a.listheading:link,
a.listheading:active,
a.listheading:visited {
    color: var(--a-listheading-link-clr);
    font-weight: bold;
    text-decoration-line: none;
}

.listrow1,
table.dynatable tr,
.listrow0 {
    color: var(--listrow1-clr);
    font-size: var(--listrow1-font-size);
    vertical-align: top;
}

.listrow1,
table.dynatable tr:nth-child(odd) {
    background-color: var(--listrow1-bg-clr);
}

.listrow0,
table.dynatable tr:nth-child(even) {
    background-color: var(--listrow0-bg-clr);
}

.listrow1:hover,
table.dynatable tbody tr:nth-child(odd):hover {
    background-color: var(--listrow1-hover-bg-clr);
}

.listrow0:hover,
table.dynatable tbody tr:nth-child(even):hover {
    background-color: var(--listrow0-hover-bg-clr);
}

.listsubtotal,
table.dynatable tr.listsubtotal {
    background-color: var(--listsubtotal-bg-clr);
    color: var(--listsubtotal-clr);
    font-size: var(--listsubtotal-font-size);
}

.listtotal,
table.dynatable tr.listtotal {
    background-color: var(--listtotal-bg-clr);
    color: var(--listtotal-clr);
    font-size: var(--listtotal-font-size);
    font-weight: bold;
}

textarea {
    font-family: var(--textarea-font-family);

    /*   border: var(--textarea-border); */

    /*   font-size: var(--textarea-font-size); */

    /*   background-color: var(--textarea-bg-clr); */

    /*   font-weight: bold; */
}

input {
    background-color: var(--input-bg-clr);

    /*  font-family: var(--input-font-family); */
    border: var(--input-border);
    font-size: var(--input-font-size);
}

select {
    font-family: var(--select-font-family);
    font-size: var(--select-font-size);
}

.submit {
    color: var(--submit-clr);
    font-size: var(--submit-font-size);
    font-weight: normal;
}

.checkbox,
.radio {
    font-family: var(--checkbox-font-family);
    font-size: var(--checkbox-font-size);
}

.plus0 {
    /* font color for negative numbers */
    color: var(--plus0-clr);
}

.plus1 {
    color: var(--plus1-clr);
}

h2.confirm {
    color: var(--h2-confirm-clr);
    font-size: var(--h2-confirm-font-size);
}

h2.error {
    color: var(--h2-error-clr);
    font-size: var(--h2-error-font-size);
}

#notes_div div.note {
    background-color: var(--notes_div-div-note-bg-clr);
    border: var(--notes_div-div-note-border);
    border-style: var(--notes_div-div-note-border-style);
    height: 5em;
    margin: 1em;
    overflow: hidden;
    padding: 1em;
    width: 90%;
}

#notes_div div.note:hover {
    background-color: var(--notes_div-div-note-hover-bg-clr);
    border-style: groove;
    height: 100%;
    min-height: 5em;
    overflow: auto;
    width: 90%;
}

#company_div div.note {
    display: none;
}

tr.record {
    background-color: var(--tr-record-bg-clr);
}

tr.suspect {
    background-color: var(--tr-suspect-bg-clr);
    color: var(--tr-suspect-clr);
    font-weight: bold;
}

tr.active,
tr.record:hover,
tr.suspect:hover {
    background-color: var(--tr-active-bg-clr);
}

tr.warning,
div.warning {
    background-color: var(--tr-warning-bg-clr);
    color: var(--tr-warning-clr);
}

span.no-submit {
    background: var(--span-no-submit-bg);
    color: var(--span-no-submit-clr);
    font-weight: bold;
}

td.cleared-future {
    background: var(--td-cleared-future-bg);
    color: var(--td-cleared-future-clr);
    font-weight: bold;
}

td.cleared-past {
    background: var(--td-cleared-past-bg);
    color: var(--td-cleared-past-bg);
    font-weight: bold;
}

input[type="checkbox"].remove::before {
    background: var(--input-remove-before-bg);
    color: var(--input-remove--before-clr);
    content: " X ";
    display: inline-block;
    text-align: center;
    width: 12px;
}

input[type="checkbox"].remove:checked::before {
    background: var(--input-remove-checked-before-bg);
}

/* media stuff */

@media screen {
    .noscreen {
        /* items with this class won't display */
        display: none;
    }
}

@media print {
    .noprint {
        /* items with this class won't print */
        display: none;
    }
}

/* ajax-specific styling */

div.autocomplete {
    background-color: var(--div-autocomplete-bg-clr);
    border: var(--div-autocomplete-border);
    margin: 0;
    padding: 0;
    position: absolute;
    width: 350px;
}

div.autocomplete ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

div.autocomplete ul li.selected {
    background-color: var(--div-autocomplete-bg-clr);
}

div.autocomplete ul li {
    cursor: pointer;
    display: block;
    font-size: var(--div-autocomplete-ul-li-font-size);
    height: 16px;
    list-style-type: none;
    margin: 0;
    padding: 2px;
}

span.indicator {
    background-color: var(--span-indicator-bg-clr);
    border: var(--span-indicator-border);
    font-size: var(--span-indicator-font-size);
    padding: 2px;
}

.financial-statement h1,
.financial-statement h2 {
    text-align: center;
}

.financial-statement table {
    margin-left: auto;
    margin-right: auto;
}

.financial-statement td.amount {
    padding-left: 4em;
    text-align: right;
}

.financial-statement tr.total td,
.financial-statement tr.total th {
    padding-bottom: 2em;
}

.financial-statement tr.total td.amount {
    border-top: var(--financial-statement-tr-total-td-amount-border-top);
}

.financial-statement th {
    text-align: left;
}

.financial-statement tr.section-head th,
.financial-statement tr.total th {
    text-align: center;
}

.financial-statement a,
.financial-statement a:visited {
    color: var(--financial-statement-a-clr);
    text-decoration-line: none;
}

.financial-statement .heading3.H {
    padding-bottom: 1em;
}

.financial-statement .heading2.H {
    padding-bottom: 1.5em;
}

.financial-statement .heading4.H {
    padding-bottom: 0.75em;
}

.financial-statement .section1 {
    font-size: 140%;
}

.financial-statement .section2 {
    font-size: 120%;
}

.financial-statement .section3 {
    font-size: 110%;
}

.financial-statement .H {
    font-style: italic;
}

.financial-statement .section4 {
    font-size: 105%;
}

.invoice-payment.unapproved {
    background-color: var(--unapproved-payment-bgcolor, orange);
}

#plDebug .plDebugPanelContent {
    left: 207px;
    right: 207px;
}

#pwcontainer label {
    display: block;
    float: left;
    width: 16ex;
}

#assetclass-edit label,
#assetclass-search label,
#asset-search label,
#asset-edit label {
    display: inline-block;
    width: 25ex;
}

#assetclass-edit .inputgroup,
#assetclass-search .inputgroup,
#asset-search .inputgroup,
#asset-edit .inputgroup {
    display: inline-block;
    width: 60ex;
}

#invoice caption,
#transaction caption {
    font-size: var(--listtop-font-size);
    font-weight: bold;
}

#reconciliation #report_headings,
#reconciliation #csv-file,
#reconciliation #cleared-table,
#reconciliation #error-table,
#reconciliation #outstanding-table {
    margin-bottom: 2em;
    margin-top: 2em;
}

.toast.error {
    background-image:
        var(
            --toast-error-bg,
            linear-gradient(to right bottom, #d88, #eaa)
        );
}

.toast.info {
    background-image:
        var(
            --toast-info-bg,
            linear-gradient(to right bottom, #bcd8f4, white)
        );
}

.toast.success {
    background-image:
        var(
            --toast-success-bg,
            linear-gradient(to right bottom, #8d8, white)
        );
}

.toast .title {
    font-weight: bold;
}

td.data-entry {
    padding: 0.1em 0.5ex;
    vertical-align: middle;
}

td.data-entry .input-box {
    box-sizing: border-box;
    padding: 0.1em 0.3ex;
    width: 100%;
}

td.data-entry .neutral {
    background-color: transparent;
    border-color: transparent;
}

td.data-entry .editing {
    background-color: white;
    border-color: black;
}

.dijitTextBoxDisabled,
.dijitTextBoxReadOnly {
    color: var(--textBox-ReadOnly-color) !important;
}

.dijitDisabled,
.dijitDisabled *,
.dijitReadOnly,
.dijitReadOnly * {
    color: var(--textBox-ReadOnly-color) !important;
    cursor: default;
}
