:root {
    --red: rgb(252, 98, 98);
    --dark-red: rgb(170, 57, 57);
    --green: rgb(31, 170, 38);
}

.a-modal {
    display: none;
    background-color: white;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.a-modal-visible {
    display: flex;
}

.a-modal-container {
    background-color: rgb(250, 250, 250);
    border-radius: 10px;
    border: 1px solid gray;
    margin: 0 auto;
    width: 70%;
    min-width: 300px;
    margin: 0 auto;
    min-height: 400px;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.a-modal-container > div {
    width: 100%;
    padding: 15px;
}

.a-modal-header {
    min-height: 50px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
}

.a-modal-header > .btn-close {
    margin-top: 5px;
    margin-right: 5px;
}

.a-modal-footer {
    min-height: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.a-modal-footer > * {
    float: right;
    margin-left: 5px;
}

label {
    font-weight: bold;
    font-size: 14px;
    margin-top: 5px;
}

input[type=text], input[type=number] {
    width: 100%;
    border-radius: 3px;
    border:1px solid rgba(179, 179, 179, 1);
    padding: 5px;
}

input[type=text].has-error, input[type=number].has-error {
    border: 2px solid var(--red);
}

.mt-20 {
    margin-top: 20px;
}

.mt-10 {
    margin-top: 10px;
}

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

.red {
    color: var(--red);
}

a.red:hover {
    color: var(--dark-red);
}

.green {
    color: var(--green);
}

.flex-right {
    display: flex;
    justify-content:flex-end;
}

