/* The window that puts an opening balance in.

   It sits inside a normal Bootstrap modal, so the frame, the header and the buttons are the ones
   every other dialog in the product uses. What is styled here is only what is inside: the day the
   balance was agreed, the table of free stock that may go into the consignment, and the sentence
   that appears when the answer will not do. */

.customs-opening-dialog .modal-body {
    padding: 18px 20px 6px;
}

.customs-opening-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.customs-opening-agreed {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 320px;
}

.customs-opening-label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--s-text-muted-color, #5b6570);
}

.customs-opening-hint {
    font-size: 12px;
    line-height: 1.45;
    color: var(--s-text-muted-color, #5b6570);
}

.customs-opening-input {
    border: 1px solid var(--s-border-color, #ccd2d8);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
}

.customs-opening-quantity {
    width: 110px;
    text-align: right;
}

/* The list of goods is long on the day it is used, so it scrolls inside the window rather than
   pushing the buttons off the bottom of the screen. */
.customs-opening-table {
    display: block;
    max-height: 52vh;
    overflow-y: auto;
    margin: 0;
}

.customs-opening-table th {
    position: sticky;
    top: 0;
    background: var(--s-body-bg, #fff);
    z-index: 1;
}

.customs-opening-complaint:not(:empty) {
    color: var(--s-danger, #b02a37);
    font-size: 13px;
    line-height: 1.45;
}
