/* Dashboard cards: link stretched over the panel via ::after, so the panel itself is not link content
   (Firefox mispaints borders of blocks wrapped in an inline <a>) */
.dashboard-card {
    position: relative;
}

.dashboard-card .dashboard-card-link::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.dashboard-card h1 {
    color: #3281b9;
}

.checkbox-big {
    position: relative;
    width: 55px;
    height: 55px;
}

.checkbox-big > span {
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    height: 100%;
    background: #fff;
    border: 1px solid #999;
    border-radius: 4px;
    transition: 0.3s;
}

.checkbox-big > input {
    opacity: 0;
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    z-index: 1;
    height: 100%;
}

.checkbox-big > input:checked + span {
    background: #2bc37e;
}

.checkbox-big:hover > input:checked + span {
    background: #229963;
}

.checkbox-big:hover > span {
    background: #f8f8f8;
}

.checkbox-big > input:disabled + span {
    background: rgba(89, 255, 104, 0.22) !important;
}

.checkbox-big > input:disabled {
    cursor: not-allowed !important;
}

.checkbox-big-red > span {
    border: 1px solid red;
    border-radius: 4px;
}

.checkbox-big-red > input:checked + span {
    background: transparent;
}

.checkbox-big:hover > input:checked + span {
    background: #f8f8f8;
}

/* STATUS FLOW */
.btn-group.btn-group-status {
    position: relative;
    margin-bottom: 20px;
}

.btn-group.btn-group-status .btn.btn-status {
    margin-right: 40px;
    margin-top: 3px;
    position: relative;
    border: 2px solid transparent;
}

.btn-group.btn-group-status .btn.btn-status.disabled {
    color: #cccccc;
}

.btn-group.btn-group-status .btn.btn-status.btn-status-active {
    border: 2px solid black;
    color: #000000;
    font-weight: bold;
}

.btn-group.btn-group-status .btn-status-divider {
    display: inline-block;
    position: relative;
    width: 40px;
    margin-left: -40px;
    border-top: 1px solid #999999;
}

.btn-group.btn-group-status .btn.btn-tooltip {
    position: relative;
    margin: -20px 25px 0 -38px;
}

.btn-group.btn-group-status .btn.btn-tooltip:hover {
    border: none;
}

.btn-group.btn-group-status .btn.btn-tooltip span.fa {
    position: relative;
}

.btn-group .btn.btn-small-tooltip {
    border: none;
    padding: 0;
    margin-left: -8px;
    margin-top: -8px;
}

/* products tab (PurchaseOrder, SalesQuotation) */
div.totals {
    border: 1px solid #cccccc;
    background-color: #eeeeee;
    padding: 6px;
    margin-bottom: 25px;
}

div.totals div.form-group {
    margin-bottom: 0;
}

div.totals span.label {
    display: inline-block;
}

div.totals div.form-group-content {
    display: inline-block;
}

.form-group-number .form-group-content input.disabled,
.form-group-text .form-group-content input.disabled {
    border-color: transparent;
    color: #999999;
    width: 110px;
    pointer-events: none;
}

div.dynamicTable.disabled .btn-add-product,
div.dynamicTable.disabled span.del-btn {
    pointer-events: none;
    display: none;
}

div.dynamicTable.disabled textarea,
div.dynamicTable.disabled .form-group-autocomplete .chosen-container.chosen-container-single,
div.dynamicTable.disabled .form-group-autocomplete .chosen-container.chosen-container-single .chosen-single {
    pointer-events: none;
    border: none;
}

div.dynamicTable.disabled .form-group-autocomplete .chosen-container.chosen-container-single abbr.search-choice-close,
div.dynamicTable.disabled .form-group-autocomplete .chosen-container.chosen-container-single .chosen-single div {
    display: none;
}

.animated {
    -webkit-animation: background-fade 2s; /* Safari 4+ */
    -moz-animation: background-fade 2s; /* Fx 5+ */
    -o-animation: background-fade 2s; /* Opera 12+ */
    animation: background-fade 2s; /* IE 10+ */
}

@keyframes background-fade {
    0% {
        background-color: transparent;
    }
    50% {
        background: #fdd300;
    }
    100% {
        background: transparent;
    }
}

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 999px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    background: red;
    cursor: inherit;
    display: block;
}

input[readonly] {
    background-color: white !important;
    cursor: text !important;
}

.status-yellow-bg, .label-status-yellow-bg {
    color: #333;
    background-color: #ffee58;
}

.status-green-bg, .label-status-green-bg {
    color: #fff;
    background-color: #2bc37e;
}

/* Aligns checkbox/radio and label on one line by resetting Bootstrap's default checkbox margin in flex layouts. */
.check-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
}

.check-row input[type="checkbox"],
.check-row input[type="radio"] {
    margin: 0;
    flex: none;
}
