/* =====================================================
   MINE SKIFT
===================================================== */

.mine-skift-table {
    width: 100%;
    border-collapse: collapse;
}

.mine-skift-table th,
.mine-skift-table td {
    padding: 10px 14px;
    color: #ffffff;
    text-align: center;
}

.mine-skift-table td:first-child {
    font-weight: 700;
}

/* Cellen står sentrert i kolonnen */
.mine-skift-table .belopcelle {
    text-align: center;
}

/* Tallblokken står midt i cellen,
   mens tallene høyrejusteres inni blokken */
.mine-skift-table .belop {
    display: inline-block;
    width: 110px;

    text-align: right;
    white-space: nowrap;

    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* =========================
   KLIKKBARE SKIFTRADER
========================= */

.mine-skift-rad {
    cursor: pointer;
    transition:
        background 0.15s ease,
        outline-color 0.15s ease;
}

.mine-skift-rad:hover {
    background: rgba(96, 165, 250, 0.12);
}

.mine-skift-rad:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: -2px;
}

.mine-skift-datolenke {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(
        255,
        255,
        255,
        0.35
    );
    text-underline-offset: 3px;
}


/* =========================
   SKIFTRAPPORT
========================= */

.mine-skift-rapport-wrap {
    max-width: 720px;
}

.mine-skift-tilbake {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    text-decoration: none;
}

.mine-skift-rapportkort {
    padding: 18px;

    background: #111827;
    border: 1px solid #334155;
    border-radius: 14px;

    box-shadow: var(--shadow);
}

.mine-skift-rapporttittel {
    margin-bottom: 16px;

    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
}

.mine-skift-detaljer {
    margin: 0;
}

.mine-skift-detaljrad {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) 1fr;
    gap: 18px;

    padding: 12px 4px;

    border-bottom: 1px solid #334155;
}

.mine-skift-detaljrad:last-child {
    border-bottom: 0;
}

.mine-skift-detaljrad dt {
    color: #94a3b8;
    font-weight: 700;
}

.mine-skift-detaljrad dd {
    margin: 0;

    color: #ffffff;
    font-weight: 700;
    text-align: right;
}

.mine-skift-rapportbelop {
    font-variant-numeric: tabular-nums;
}

.mine-skift-rapport-tilbakeknapp {
    display: block;

    margin-top: 16px;
    padding: 12px 16px;

    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;

    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.mine-skift-rapport-tilbakeknapp:hover {
    background: #334155;
}

@media (max-width: 520px) {
    .mine-skift-detaljrad {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .mine-skift-detaljrad dd {
        text-align: left;
    }
}
/* =========================
   OPPGJØR TIL EIER
========================= */

.mine-skift-oppgjor-rad {
    margin-top: 4px;

    background: rgba(
        34,
        197,
        94,
        0.08
    );

    border-top: 2px solid #22c55e;
}

.mine-skift-oppgjor-rad dt,
.mine-skift-oppgjor-rad dd {
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
}


/* =========================
   REKVISISJONSTABELL
========================= */

.mine-skift-rekvisisjonstabell {
    margin-top: 4px;
}

.mine-skift-rekvisisjonstabell th,
.mine-skift-rekvisisjonstabell td {
    padding: 9px 10px;
}

.mine-skift-rekvisisjonstabell tfoot th {
    background: #1e293b;
    color: #ffffff;
    font-weight: 800;
}


/* =========================
   LUKKEKNAPP I TOPPLINJE
========================= */

.page-title-spacer {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.rapport-close-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    background: rgba(255,255,255,.04);

    transition:
        background .2s ease,
        border-color .2s ease;
}

.rapport-close-button:hover {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.25);
}
