﻿a:hover {
    cursor: pointer;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.no-wrap {
    white-space: nowrap !important;
}

.min-wide {
    width: 1%;
}

.sort.icon {
    color: #be4058;
}

.ui.form .field > label,
.ui.form .fields > label {
    color: #003a5d !important;
}

.ui.form .fields .field:not(:last-of-type) {
    margin-bottom: 1em;
}

.ag-content-box {
    margin-bottom: 3rem;
}

.ui.primary.button,
.ui.primary.buttons .button {
    background-color: #003a5d !important;
    color: #cdf85d !important;
}

.ui.primary.button > .icon,
.ui.primary.buttons .button > .icon {
    color: #cdf85d;
}

.ui.table > tbody > tr > td:nth-of-type(2) div {
    color: inherit;
    text-decoration: inherit;
}

.ui.table.data-table {
    border: none;
}

.ui.table.data-table * .attached.button {
    box-shadow: none;
    -webkit-box-shadow: none;
    background-color: #00000005;
}

.ui.table.data-table * .attached.button.checked {
    background-color: #cdf85d33;
}

.ui.table.data-table * .button.dropdown {
    background-color: #0000000a;
}

.table.data-table > thead > tr > th {
    color: #003a5d;
    background: transparent;
    white-space: nowrap;
}

.ui.table.data-table > tbody > tr > td {
    border: none;
}


.ui.striped.table.data-table > tbody > tr:nth-child(2n+1),
.ui.striped.table.data-table > tr:nth-child(2n+1) {
    background-color: #f7f7f7;
}

.ui.striped.table.data-table > tbody > tr:nth-child(2n), .ui.striped.table.data-table > tr:nth-child(2n) {
    background-color: transparent;
}

.ui.striped.table.data-table > tbody > tr.erroredRow:nth-child(2n) td,
.ui.striped.table.data-table > tr:nth-child(2n) td {
    box-shadow: 0 0 0 #e0b4b4 inset;
    background: #fff6f6;
    color: #9f3a38;
}

.ui.striped.table.data-table > tbody > tr.erroredRow:nth-child(2n+1) td,
.ui.striped.table.data-table > tr:nth-child(2n+1) td {
    box-shadow: 0 0 0 #e0b4b4 inset;
    background: #ffeaea;
    color: #9f3a38;
}

.batch-edit-container.visible {
    display: flex !important;
    align-items: center;
    grid-gap: 1rem;
}

.ui.table > thead > tr > th {
    border-bottom: none !important;
}

.modal > .header {
    text-align: center;
    color: #003a5d !important;
    border-bottom: none !important;
    padding: 2.25rem 1.5rem !important;
}

.modal > .content {
    padding: 2rem !important;
}

.modal > .actions {
    border-top: none !important;
}

.modal > .content > .description > form > .fields:first-of-type {
    margin: 0 -0.5em 1.5rem;
}

.pagination-container {
    display: flex;
    justify-content: center;
    padding: 0 !important;
}

.pagination-side {
    flex: 1;
}

.pagination-selector {
    justify-content: flex-end;
    padding-right: 0;
}

.pagination-selector > * {
    margin-left: 0.6rem !important;
}

.ui-alerts.ag-toast {
    z-index: 6666;
    position: fixed;
    top: 77px;
    left: 50%;
    transform: translateX(-50%);
}

.ag-toast > .transition {
    animation-duration: 242ms !important;
}

.no-padding {
    padding: 0 !important;
}

.no-margin {
    margin: 0 !important;
}

.button-label {
    padding-left: 10px !important;
}

.button-label > label {
    padding-left: 0 !important;
}

.button-label > label > div {
    display: flex;
    align-items: center;
}

.button-label > label > div > i {
    height: unset;
}

.ui.form .disabled.field,
fieldset * .disabled.input,
fieldset * .disabled.field,
fieldset * .disabled.search,
fieldset * .disabled.fields .field,
fieldset * .ui.form .field :disabled,
.ui.form input.disabled {
    opacity: 0.65 !important;
}

.form fieldset {
    background-color: #f3f6f7;
    padding: 2rem;
    border: none;
}

.form fieldset > .header {
    color: #87a99f;
}

.ui.segment.active.tab {
    border: none;
    box-shadow: none;
}

.ui.attached.tabular.menu {
    display: flex;
    flex-wrap: wrap;
}

.tabular.menu > .active.item:hover {
    background: inherit;
    color: inherit;
}

.fadeIn {
    animation-name: fadeIn;
    animation-duration: 250ms;
}

.ui.form > .grid > .row:first-of-type {
    padding-top: 0;
}

.modal * .ui.form * .row:not(.column):first-of-type > .column:first-of-type > fieldset,
.modal * .ui.form > fieldset:first-of-type {
    margin-top: -1.5rem;
}

.form-modal > .header > span {
    font-size: 1.71428571rem;
}

.pagination-container {
    margin-top: 2rem !important;
}

.ui.upward.dropdown.button:not(.pointing):not(.floating).active.circular {
    border-radius: 10em;
}

.status-picker.visible.transition {
    z-index: 10001;
    position: absolute !important;
    margin-top: -1px !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    min-width: 180px;
    width: fit-content;
    border-color: #85b7d9;
    overflow-y: auto;
    overflow-x: clip;
}

.status-picker > .fields {
    flex-direction: column !important;
    padding: 0.9rem 1rem 0.3rem 1.1rem;
    margin-bottom: 1rem !important;
}

.ui.floating.message {
    padding-right: 2.5rem;
}

.show-xs,
.show-sm,
.show-md,
.show-lg,
.show-xl {
    display: none !important;
}

.ag-content-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.ag-background-gradient {
    height: 100%;
    margin: 0;
    padding-left: 14px;
    padding-right: 14px;
    overflow-y: auto;
}

a[role=option].item {
    text-decoration: unset;
}

.filter-results > div > Form {
    margin: 1rem 1rem 0 2rem;
}

.ui.dimmer {
    z-index: 2001;
}

.flowing.popup {
    z-index: 100010;
}

.pinvoiceDownload {
    color: #c33c54 !important;
    
}

@media only screen and (min-width: 767.98px) {
    .contains-data-table > .dimmable {
        overflow-x: auto;
    }
}

@media only screen and (max-width: 767.98px) {
    .form fieldset {
        padding: 1rem;
    }

    .ui.table:not(.unstackable) > tbody > tr > td.hide-xs,
    .hide-xs {
        display: none !important;
    }

    .show-xs {
        display: inherit !important;
    }

    .ui-alerts.ag-toast {
        left: 0;
        right: 0;
        top: 64px;
        transform: none;
    }

    .xs-no-padding {
        padding: 0 !important;
    }

    .xs-50 {
        flex-basis: 50%;
    }

    .xs-100 {
        flex-basis: 100%;
    }

    .ui.table.data-table:not(.data-table-scrollable) > tbody > tr {
        display: flex !important;
        flex-direction: column;
        flex-flow: wrap;
        border: 1px solid #dfdfdf;
        border-radius: .28571429rem;
        margin-bottom: 1rem;
        padding-top: 0;
        padding-bottom: 9px;
        box-shadow: 0 5px 1rem -15px black !important;
    }

    /** Scrollable DataTable variant styles - max-width: 767.98px */

    .ag-background-gradient:has(.data-table-scrollable) {
        padding: 0px;
    }

    .dimmable:has(>.data-table-scrollable) {
        overflow: scroll;
        max-height: 36rem;
        scrollbar-width: thin;
    }

    .data-table-scrollable .data-table-scrollable-hidden {
        display: none !important;
    }

    .ui.table.data-table-scrollable th, .ui.table.data-table-scrollable td {
        border: initial;
        padding: 0.3rem 1rem !important;
        font-size: 0.85714rem;
        white-space: break-spaces;
    }

    .ui.table.data-table-scrollable > thead {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
    }

    .ui.striped.table.data-table-scrollable > tbody > tr:nth-child(2n+1) > td:first-child {
        background-color: #f7f7f7;
    }

    .ui.striped.table.data-table-scrollable > tbody > tr:nth-child(2n) > td:first-child {
        background: #fff;
    }


    .ui.button.dropdown > .menu {
        min-width: auto;
    }

    .batch-edit-container.visible {
        z-index: 42;
        width: 100%;
        background: white;
        padding: 5px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        justify-content: space-between;
        border-top: 1px solid rgba(34, 36, 38, .15) !important;
    }

    .contains-data-table {
        padding: 0 !important;
    }

    .ag-negative-margin {
        margin-left: -14px;
        margin-right: -14px;
    }

    .ag-content-box.ag-negative-margin {
        margin-bottom: 0 !important;
    }

    .tab.contains-data-table > div {
        margin-left: -5px;
        margin-right: -5px;
    }

    .pagination-container {
        margin-top: 1rem !important;
    }

    .ag-content-box.contains-data-table {
        padding: 1rem 0.7rem 0.7rem !important;
    }

    .ui.table.data-table * .ui.checkbox label:before,
    .ui.table.data-table * .ui.checkbox .box:after,
    .ui.table.data-table * .ui.checkbox label:after {
        left: auto;
        right: 0 !important;
    }

    .ui.table.data-table:not(.data-table-scrollable) * .right.aligned {
        text-align: left !important;
    }

    .ui.table.data-table:not(.data-table-scrollable) * .text-right {
        text-align: left !important;
    }

    .ui.fullscreen.modal {
        width: 100%;
        min-height: 100%;
        margin: 0;
        left: 0;
        right: 0;
        padding: 2rem 0 0;
        border-radius: 0;
    }

    .ui.fullscreen.modal * .ui.stackable.grid > .row > .column {
        padding: 0 !important;
    }

    .ui.dimmer.modals.visible {
        padding: 0;
    }

    .ui.fullscreen.modal > .modal-actions  {
        width: 100%;
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        bottom: 0;
        border-top: 1px solid rgba(34, 36, 38, .15) !important;
    }

    .ag-content-header {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .add-btn-container {
        display: flex;
        flex-flow: wrap;
        width: 100%;
    }
}

@media only screen and (max-width: 991px) and (min-width: 768px) {
    .ui.table:not(.unstackable) > tbody > tr > td.hide-sm,
    .hide-sm {
        display: none !important;
    }

    .show-sm {
        display: inherit !important;
    }

    .sm-no-padding {
        padding: 0 !important;
    }

    .ag-content-header {
        margin-top: 1rem;
    }
}

@media only screen and (max-width: 1200px) {
    .ui.table:not(.unstackable) > tbody > tr > td.hide-md,
    .hide-md {
        display: none !important;
    }

    .show-md {
        display: inherit !important;
    }

    .md-no-padding {
        padding: 0 !important;
    }
}

@media only screen and (max-width: 1366px) {
    .ui.table:not(.unstackable) > tbody > tr > td.hide-lg,
    .hide-lg {
        display: none !important;
    }

    .show-lg {
        display: inherit !important;
    }

    .lg-no-padding {
        padding: 0 !important;
    }
}

@media only screen and (min-width: 1366.1px) {
    .ui.table:not(.unstackable) > tbody > tr > td.hide-xl,
    .hide-xl {
        display: none !important;
    }

    .show-xl {
        display: inherit !important;
    }

    .xl-no-padding {
        padding: 0 !important;
    }
}

@media only screen and (min-width: 1300px) {
    .customer-form-modal.ui.large.modal {
        width: 1200px;
    }
}

@media only screen and (min-width: 1400px) {
    .customer-form-modal.ui.large.modal {
        width: 1300px;
    }
}

/*noinspection CssNoGenericFontName*/
.ui.dropdown > .dropdown.icon {
    font-family: "icons";
}

.dropdown.icon.clear:before,
.dropdown.icon.times:before {
    content: "\f00d" !important;
}

.input [placeholder],
.input input::placeholder {
    text-overflow: ellipsis;
}

td.total-header,
td.total-sums {
    padding-top: 8px;
    text-align: right;
}

td.total-header {
    padding-right: 4px;
}

td.total-sums {
    padding-right: 11px;
}

div.total {
    white-space: nowrap;
}