/*
 * Legowebben additions on top of lamnea.css (the shared Lämneå theme copied from customer-web).
 * Only what this site needs beyond the theme: the site name in the header, the language switch,
 * the drawing list tabs and cards, the operation grid and the freight goods table.
 */

/* ------------------------------------------------------------ Header additions */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.navbar-brand .brand-site {
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: .02em;
    border-left: 1px solid rgba(255, 255, 255, .35);
    padding-left: .75rem;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255, 255, 255, .7);
    font-size: .85rem;
    font-weight: 600;
}

.language-switch button {
    background: none;
    border: 0;
    padding: .1rem .2rem;
    color: rgba(255, 255, 255, .7);
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
}

.language-switch button:hover,
.language-switch button.active {
    color: var(--lamnea-yellow);
}

.auth-page .language-switch,
.auth-page .language-switch button {
    color: rgba(255, 255, 255, .85);
}

@media (max-width: 991.98px) {
    .site-nav .language-switch {
        padding: .5rem 0;
    }
}

/* ------------------------------------------------------------- Drawing lists */

.list-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.list-tab {
    display: inline-block;
    padding: .4rem 1rem;
    border-radius: 100px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--slate);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
}

.list-tab:hover {
    border-color: var(--lamnea-blue);
    color: var(--lamnea-blue);
    text-decoration: none;
}

.list-tab.active {
    background: var(--lamnea-blue);
    border-color: var(--lamnea-blue);
    color: #fff;
}

.drawing-card {
    align-items: flex-start;
}

.drawing-select {
    padding: .25rem .5rem 0 0;
}

.drawing-select .form-check-input {
    width: 1.35rem;
    height: 1.35rem;
}

.item-image-link {
    flex: 0 0 auto;
    display: block;
}

.item-meta-wide {
    flex-basis: 100%;
}

.drawing-preview {
    display: block;
}

.drawing-preview .item-image {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1.414;
    object-fit: contain;
    background: var(--soft-bg);
}

.material-optional {
    background-color: var(--soft-bg);
}

.cutting-image {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: none;
}

/* --------------------------------------------------------------- Start page */

.list-help dt {
    font-weight: 600;
    margin-top: .75rem;
}

.list-help dd {
    color: var(--slate);
    margin-bottom: 0;
}

/* ----------------------------------------------------------- My operations */

.operation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .35rem 1.5rem;
}

.operation-item .operation-number {
    display: inline-block;
    min-width: 3ch;
    color: var(--slate);
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ Freight */

.goods-table th {
    white-space: nowrap;
}

.goods-table td {
    min-width: 6rem;
}

.goods-table td:last-child {
    min-width: 0;
    width: 2.5rem;
}

.goods-row-errors td {
    padding-top: 0;
    border-top: 0;
}

.delivery-choice .form-check {
    margin-bottom: .1rem;
}

/* --------------------------------------------------------- Contact & forms */

.coordinates dt {
    font-weight: 600;
    margin-top: .5rem;
}

.coordinates dd {
    color: var(--slate);
    margin-bottom: 0;
}

.form-label.required::after {
    content: " *";
    color: #c0392b;
}

/* ---------------------------------------------------------- Instructions */

.instruction-page h2 {
    margin-top: 1.5rem;
}

.instruction-page h2:first-child {
    margin-top: 0;
}

.instruction-table {
    width: auto;
    max-width: 100%;
}

.instruction-table th,
.instruction-table td {
    white-space: nowrap;
}

.instruction-page img {
    margin: 1rem 0;
    border: 1px solid var(--card-border);
    border-radius: .5rem;
}
