@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #122419;
    font-size: 15px;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

input[type="checkbox"] {
    transform: scale(1.5); /* Adjust the scale value to increase size */
    -webkit-transform: scale(1.5); /* For Safari */
    -moz-transform: scale(1.5); /* For Firefox */
    -ms-transform: scale(1.5); /* For Internet Explorer 9 */
    -o-transform: scale(1.5); /* For Opera */
    margin: 5px; /* Optional: add some margin around the checkbox */
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.pointer {
    cursor: pointer;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.page {
    max-width: 1600px; /* or 1280px, 1024px, etc. depending on your design */
    margin: 0 auto;
    width: 100%;
    border-right: solid 2px #04310c;
    background-color: whitesmoke;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwU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TgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.badge {
    background-color: #007bff;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75rem;
    margin-left: 8px;
    vertical-align: middle;
}


.btn-primary {
    background-color: teal;
    border-color: teal;
    color: whitesmoke;
}

.btn-success {
    background-color: darkolivegreen;
    border-color: darkolivegreen;
    color: whitesmoke;
}

.btn-secondary {
    background-color: darkslategray;
    border-color: darkslategray;
    color: whitesmoke;
}

.badge-primary {
    background-color: moccasin;
    color: dimgrey
}

.badge-success {
    background-color: lightblue;
    color: dimgrey
}

.badge-secondary {
    background-color: rosybrown;
}

.badge-warning {
    background-color: #ffc107;
}

.float-parent {
    position: relative;
    padding-right: 20px; /* Ensure the content has enough space for the badge */
}

.float-badge-upperleft {
    position: absolute;
    top: 0.8rem;
    left: -1.6rem;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
}

.float-badge-underneath {
    position: absolute;
    top: 1.8rem;
    left: 0rem;
    font-size: 0.6rem;
}

.float-badge-middleleft {
    position: absolute;
    top: -0.2rem;
    left: -0.6rem;
    font-size: 0.6rem;
}

.float-badge-lowerleft {
    position: absolute;
    top: 2.5rem;
    left: 1rem;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    background-color: antiquewhite;
    color: dimgray
}

.right-align {
    text-align: right;
}

.center-align {
    text-align: center;
}

.left-align {
    text-align: left;
}

.center-align-vertical {
    vertical-align: middle;
    height: 100px;
}

.button-container {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
}

.button-container .btn {
    padding: 0;
}

.crossed-out {
    text-decoration: line-through;
    color: #999; /* Optional: to give the crossed-out row a grayed-out look */
}

.div-border-2 {
    border: 2px solid black;
}

.button-input-container {
    display: flex;
    align-items: center;
}

.blurred {
    filter: blur(5px); /* Adjust the blur intensity */
    color: transparent; /* Optional: Makes text invisible */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Optional: Simulates obfuscation */
}

.disabled {
    color: grey;
}

.disabled-div {
    pointer-events: none;
    opacity: 0.5;
}

.customreport-item-transactional {
    background-color: #c5c9cc;
    padding: 8px 16px;
    border-bottom: 1px solid;
}

.customreport-item-calculated {
    background-color: #fff9f9;
    padding: 8px 16px;
    border-bottom: 1px solid;
}

.customreport-item-group1 {
    margin-left: 1em;
    background-color: #c0d7d0
}

.customreport-item-group2 {
    margin-left: 2em;
    background-color: #c5ebd0
}

.customreport-item-hasChildren {
    cursor: pointer;
}

.customreport-item-info {
    font-size: 0.6em;
    margin-left:1em;
}

.customreport-container {
    background-color: #e3ebee;
    border: 1px dotted;
    padding: 0.5em;
    margin-top: 1em;
    margin-bottom: 1em;
    border-radius: 0.5em;
}

.customreport-container-label {
    font-size: 1.4em;
    font-weight: bold;
    padding-bottom: 0.2em;
    padding-left: 0.1em;
}

.customreport-container-amount {
    font-size: 1.2em;
    font-weight: bold;
    padding-right: 0.3em;
    text-decoration: underline;
}

.customreport-item-moreinfo {
    font-size: small;
}

.customreport-item-neutral-text {
    font-size: small;
}

.customreport-item-indented {
    margin-left: 2em;
}

.customreport-item-neutral-total {
    display: inline-block;
    font-size: small;
    background-color: #e1e1e1;
    padding-left: 0.3em;
    padding-right: 0.3em;
}

.performance {
    margin-left: 1em;
    padding-right: 1em;
    border-right: solid 2px black;
}

.pivotSelector li {
    font-size: x-small;

}

.pivot1tr {
    background-color: #8C8C8C;
    margin-left: 0;
}

.pivot2tr td {
    background-color: #B0B0B0;
    padding-left: 1em;
}

.pivot3tr td {
    background-color: #D6D6D6;
    padding-left: 2em;
}

.pivot4tr td {
    background-color: #EDEDED;
    padding-left: 3em;
}

.pivot5tr td {
    background-color: #D0D0D0;
    padding-left: 4em;
}

.pivot6tr td {
    background-color: #F0F0F0;
    padding-left: 5em;
}

.pivot7tr td {
    background-color: #F0F0F0;
    padding-left: 6em;
}

.pivot8tr td {
    background-color: #F0F0F0;
    padding-left: 7em;
}

/* Toast CSS - Start */
.mytoast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.mytoast {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: #fff;
}

.mytoast-info {
    background-color: #17a2b8;
}

.mytoast-success {
    background-color: #28a745;
}

.mytoast-warning {
    background-color: #ffc107;
}

.mytoast-error {
    background-color: #dc3545;
}

/* Toast CSS - End */


/* Confirm Dialog Start */
.modal.fade.show.d-block {
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    margin: 1.75rem auto;
}

.modal-dialog-md {
    margin: 1.75rem auto;
    width: 60%;
}

.modal-dialog-lg {
    margin: 1.75rem auto;
    width: 90%;
    max-width: 1440px;
}

.modal-content {
    border-radius: 0.3rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

.modal-z-1 {
    z-index: 1050;
}

.modal-z-2 {
    z-index: 1060;
}

.modal-z-3 {
    z-index: 1070;
}

.modal-z-4 {
    z-index: 1080;
}


/* Confirm Dialog End*/

.flex {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    align-items: center;
}

.flex-item {
    flex-grow: 1;
}

.transaction-container {
    width: 100%;
}

.transaction-list {
    width: 100%;
    /*min-width: 800px;*/ /* Ensure table has a minimum width */
    border-collapse: collapse;
    table-layout: fixed; /* Prevent table from expanding */
}

.transaction-list th, .transaction-list td {
    white-space: normal; /* Allow content to wrap */
}

.descMaxWidth {
    max-width: 100%;
}

.rule-condition {
    background-color: cornsilk;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.rule-action {
    background-color: honeydew;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: auto
}

.action-item {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px dotted;
    min-width: 15rem;
}

.action-item-override {
    background-color: bisque;
}

.action-item-nooverride {
    background-color: lightgray;
    opacity: 60%;
}

.rule-test {
    align-items: center;
    background-color: mistyrose;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.subtransaction {
    background-color: powderblue;
}

.masterTransaction {
    background-color: lightgray;
}

.hint-container {
    display: inline-block;
    cursor: help;
}

.hint {
    all: unset;
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    right: 0;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    width: fit-content;
    z-index: 1000;
    justify-content: start;
    text-align: left;
}

.hint-container:hover .hint {
    display: block;
}

.button-borderless {
    border: 0;
    background-color: transparent;
    margin: 0;
    padding: 0;
    margin-right: 0.2em;
}

@media (max-width: 1300px) {
    .hide-on-medium {
        display: none;
    }

    .descMaxWidth {
        max-width: 100%;
    }

    .flex {
        flex-direction: row;
    }

    .modal-dialog-md {
        margin: 1.75rem auto;
        width: 95%;
    }
}

/* Stack columns as a card on mobile screens */
@media (max-width: 768px) {
    .hide-on-medium {
        display: none !important;
    }

    .transaction-list, .transaction-list tbody, .transaction-list tr, .transaction-list td {
        display: block;
        width: 100%;
    }

    .transaction-list th {
        display: none; /* Hide header row */
    }

    .transaction-list tr {
        margin-bottom: 0.2rem;
        border-bottom: 3px solid #ddd;
    }

    .transaction-list td {
        display: flex;
        text-align: left;
    }

    .transaction-list td.title::before {
        content: attr(data-label);
        font-weight: bold;
        width: 45%;
        color: #333;
    }


    .descMaxWidth {
        /*max-width: 55%;*/
        max-width: 100%;
    }

    .flex {
        flex-direction: column;
        align-items: initial;
    }

    .modal-dialog-md {
        margin: 1.75rem auto;
        width: 85%;
    }
}
