
.dl-horizontal {
    width: 100%;
}

    .dl-horizontal dt {
        width: 45%;
        margin-right: 10px;
    }

        .dl-horizontal dt:after {
            content: ": ";
        }

td.clickable {
    cursor: pointer;
}

.red {
    color: red;
}
.green{
    color: green;
}
.yellow{
    color: orange;
}

.bg-green a {
    color: white;
}

.bg-yellow a {
    color: white;
}
.bold {
    font-weight: 700
}
.total-row td {
    font-weight: 700;
    font-size: 1.2em;
    font-style: italic;
}

.profit {
    color: black;
    background-color: lightgreen;
    font-weight: 600;
    text-align: right;
}

.expences {
    color: black;
    background-color: lightpink;
    font-weight: 600;
    text-align: right;
}

.excluded {
    background-color: pink;
}
.link, .link:hover {
    color: black;
    text-decoration: underline;
}

.calendar a {
    margin: 0 0 0 1em;
    cursor: pointer;
}

#organization label {
    margin: 0 0 0 1em;
}

.current-month {
    font-size: 1.1em;
    font-weight: 700;
    color: green;
}
.left-sticky {
    position: sticky;
    left: 0;
    background: white;
    justify-content: end;
    align-items: center;
    display: flex;
}
.top-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: white;
    justify-content: center;
    align-items: end;
    display: flex;
    padding: 3px;
}

.bottom-sticky {
    background: white;
    justify-content: start;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 3px;
}

.vertical-bottom {
    align-items: center;
    display: flex;
}

.common-category {
    color: green !important;
    font-weight: 700
}

.private-category {
    color: gray !important;
    font-weight: 700
}

.deleted {
    color: red! important;
    font-weight: 700
}

.blue-bg, blue-bg:hover {
    background-color: #3c8dbc !important;
}
.green-bg, green-bg:hover {
    background-color: #68A913 !important;
}
.red-bg, red-bg:hover {
    background-color: #F47378 !important;
}

td.red-bg,
td.red-bg .red {
    color: #fff !important;
}

.quick-link {
    
    color: white !important;
    line-height: 4px !important;
}
.quick-links {
    padding: 6px 15px 0 0;
    display: flex !important;
}
.quick-links a {
    min-width: 50px !important;
    margin-left: 1em !important; 
}

/* Org selector (header / mobile sidebar): layout + actions box */
.sidebar .org-selector-wrap {
    padding: 0 10px;
}
.sidebar .org-selector-wrap .bootstrap-select {
    width: 100% !important;
}
.bs-actionsbox .actions-btn {
    white-space: normal;
    font-size: 12px;
    line-height: 1.2;
}
@media (max-width: 991px) {
    .navbar-custom-menu > .navbar-nav > li.org-selector-wrap {
        position: relative;
        max-width: 46vw;
    }
    .org-selector-wrap .bootstrap-select .dropdown-menu {
        right: 0;
        left: auto;
    }
}

/* Mobile org selector modal (no native multi-select) */
.org-selector-native-hidden {
    display: none !important;
}
.org-selector-wrap {
    position: relative;
}
.org-selector-trigger {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar .org-selector-trigger {
    margin-bottom: 8px;
}
#orgSelectorModal {
    z-index: 1060;
}
#orgSelectorModal .modal-dialog {
    margin: 10px auto;
    width: auto;
    max-width: 520px;
}
#orgSelectorModal .modal-content {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
}
#orgSelectorModal .modal-header,
#orgSelectorModal .modal-footer {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
#orgSelectorModal .modal-body {
    padding-top: 12px;
    padding-bottom: 12px;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
}
#orgSelectorModal .org-selector-modal-actions {
    margin-bottom: 12px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
#orgSelectorModal .org-selector-modal-actions .btn {
    margin-right: 6px;
    margin-bottom: 6px;
}
#orgSelectorModal .org-selector-modal-search {
    margin-bottom: 10px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
#orgSelectorModal .org-selector-modal-search .form-control {
    border-radius: 0;
}
#orgSelectorModal .org-selector-modal-list {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 120px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #d2d6de;
    padding: 10px 12px;
    background: #fff;
}
#orgSelectorModal .org-selector-modal-group {
    font-weight: 700;
    margin: 10px 0 6px;
    color: #444;
}
#orgSelectorModal .org-selector-modal-group:first-child {
    margin-top: 0;
}
#orgSelectorModal .org-selector-modal-item {
    display: block;
    font-weight: normal;
    margin: 0 0 10px;
    cursor: pointer;
    line-height: 1.35;
}
#orgSelectorModal .org-selector-modal-item--bg {
    font-weight: 600;
}
#orgSelectorModal .org-selector-modal-item input {
    margin-right: 8px;
    vertical-align: middle;
}
@media (max-width: 767px) {
    /* запас под системные кнопки Android / home indicator */
    #orgSelectorModal .modal-dialog {
        margin: 8px 8px calc(56px + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 16px);
        max-width: none;
    }
    #orgSelectorModal .modal-content {
        max-height: calc(100vh - 72px - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px));
    }
    #orgSelectorModal .modal-footer {
        padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    }
}
/* Absolute Center Spinner */
.loading {
    position: fixed;
    z-index: 99999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

    /* Transparent Overlay */
    .loading:before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(112,112,112,0.2);
        background-repeat: no-repeat;
        background-position: center center;
    }

    /* :not(:required) hides these rules from IE9 and below */
    .loading:not(:required) {
        /* hide "loading..." text */
        font: 0/0 a;
        color: transparent;
        text-shadow: none;
        background-color: transparent;
        border: 0;
    }

        .loading:not(:required):after {
            content: '';
            display: block;
            font-size: 10px;
            width: 1em;
            height: 1em;
            margin-top: 5em;
            -webkit-animation: spinner 1500ms infinite linear;
            -moz-animation: spinner 1500ms infinite linear;
            -ms-animation: spinner 1500ms infinite linear;
            -o-animation: spinner 1500ms infinite linear;
            animation: spinner 1500ms infinite linear;
            border-radius: 0.5em;
            -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
            box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
        }

/* Animation */

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);

        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }


    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.h1, .h2, .h3, h1, h2, h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.animation {
    animation-duration: 1s;
    animation-name: smalltobig;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes smalltobig {
    from {
        rotate: -45deg;
    }

    to {
        rotate: 45deg;
    }
}

.yesterday-price {
    color: darkgray;
    font-size: .5em;
}

.profit-up {
    color: green;
}

.profit-down {
    color: red;
}

.btn-group a{
    margin-right:1em;
}