.numeric {
    text-align: right;
}

/* Utility */
.text-primary {
    color: var(--brand-primary) !important;
}

.text-secondary {
    color: var(--brand-secondary) !important;
}

.bg-primary {
    background-color: var(--brand-primary) !important;
}

.bg-secondary {
    background-color: var(--brand-secondary) !important;
}

.img-64 {
    width: 64px;
}

.img-32 {
    width: 32px;
}

.img-16 {
    width: 16px;
}

.row-img {
    width: 64px;
    border: 1px solid silver;
    border-radius: 0.5rem;
}

.col-icon {
    width: 70px;
}

a.card {
    color: #000;
    text-decoration: none;
}

a.card:hover {
    color: var(--brand-primary);
    background-color: var(--ui-light);
    border: 1px solid var(--brand-primary);
}

[x-cloak] {
    display: none !important;
}

.d-flex.flex-wrap.justify-content-between.align-items-center.mb-3 {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.5rem;
}

form.d-flex.align-items-center.flex-wrap.flex-grow-1 .form-select,
form.d-flex.align-items-center.flex-wrap.flex-grow-1 select.form-select {
    min-width: 110px !important;
    max-width: 140px !important;
    width: 110px !important;
    font-size: 0.875rem;
    padding-right: 2rem;
    margin-right: 0.5rem;
}

form.d-flex.align-items-center.flex-wrap.flex-grow-1 .input-group {
    min-width: 220px;
    max-width: 340px;
    margin-right: 0.5rem;
}

.w-sm {
    max-width: 120px !important;
    width: 100% !important;
}

@media (max-width: 900px) {
    .add-modal-window, .add-modal-wide {
        max-width: 98vw !important;
        width: 98vw !important;
        padding: 1rem !important;
    }

    .add-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.25rem;
        width: 1.5rem;
        height: 1.5rem;
    }

    .row.row-cols-md-3 > .col {
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .d-flex.flex-wrap.justify-content-between.align-items-center.mb-3 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0;
    }

    .btn.btn-primary.me-2.mt-2.mt-md-0 {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 1rem !important;
    }

    form.d-flex.align-items-center.flex-wrap.flex-grow-1 {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .add-modal-window, .add-modal-wide {
        max-width: 99vw !important;
        width: 99vw !important;
        padding: 0.5rem !important;
    }

    .add-modal-close {
        top: 0.25rem;
        right: 0.25rem;
        font-size: 1rem;
        width: 1.25rem;
        height: 1.25rem;
    }
}
