.orion-openstaande,
.orion-openstaande * {
    box-sizing: border-box;
}

.orion-openstaande {
    --od-dark: #224;
    --od-blue: #447;
    --od-soft: #f4f6fb;
    --od-muted: #68687c;
    --od-line: rgba(34, 34, 68, .10);
    --od-green: #26c653;
    --od-orange: #f5a623;
    --od-red: #e54848;

    min-height: calc(100vh - 170px);
    padding: clamp(18px, 5vw, 34px) clamp(10px, 4vw, 22px) 72px;
    background:
        linear-gradient(135deg, rgba(68, 68, 119, .08), transparent 44%),
        linear-gradient(315deg, rgba(38, 198, 83, .07), transparent 40%),
        #f7f8fc;
    color: var(--od-dark);
    font-family: Arial, Helvetica, sans-serif;
}

.orion-openstaande a {
    color: inherit;
    text-decoration: none;
}

.orion-openstaande__hero {
    width: min(100%, 980px);
    margin: 0 auto 16px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--od-dark), var(--od-blue));
    box-shadow: 0 18px 48px rgba(34, 34, 68, .18);
    color: #fff;
}

.orion-openstaande__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #d7d7ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.orion-openstaande__eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--od-green);
    box-shadow: 0 0 0 6px rgba(38, 198, 83, .14);
    content: "";
}

.orion-openstaande__hero h1 {
    margin: 10px 0 18px;
    font-size: clamp(30px, 8vw, 46px);
    font-weight: 900;
    line-height: 1.05;
}

.orion-openstaande__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.orion-openstaande__stats div {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .09);
}

.orion-openstaande__stats span,
.orion-openstaande__stats strong {
    display: block;
}

.orion-openstaande__stats span {
    color: rgba(255, 255, 255, .70);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.orion-openstaande__stats strong {
    margin-top: 6px;
    font-size: clamp(18px, 5vw, 27px);
    font-weight: 900;
    line-height: 1;
}

.orion-openstaande__form {
    width: min(100%, 980px);
    margin: 0 auto;
}

.orion-openstaande__toolbar {
    position: sticky;
    top: 170px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid var(--od-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 28px rgba(34, 34, 68, .10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.orion-openstaande__toolbar span {
    color: var(--od-muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.orion-openstaande__save {
    min-height: 44px;
    min-width: 132px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--od-green), #13a83b);
    box-shadow: 0 12px 26px rgba(19, 168, 59, .22);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.orion-openstaande__empty {
    padding: 26px;
    border: 1px solid var(--od-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(34, 34, 68, .10);
    color: var(--od-muted);
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.orion-openstaande-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--od-line);
    border-left: 6px solid var(--od-green);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(34, 34, 68, .10);
}

.orion-openstaande-card.is-late {
    border-left-color: var(--od-orange);
}

.orion-openstaande-card.is-urgent {
    border-left-color: var(--od-red);
}

.orion-openstaande-card.is-xmail {
    background: linear-gradient(90deg, #fffdf0, #fff);
}

.orion-openstaande-card__check {
    display: grid;
    place-items: start center;
    padding-top: 20px;
    border-right: 1px solid var(--od-line);
    cursor: pointer;
}

.orion-openstaande-card__check input {
    position: absolute;
    opacity: 0;
}

.orion-openstaande-card__check span {
    width: 24px;
    height: 24px;
    display: block;
    border: 2px solid rgba(34, 34, 68, .24);
    border-radius: 6px;
    background: #fff;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.orion-openstaande-card__check input:checked + span {
    border-color: var(--od-green);
    background: var(--od-green);
    box-shadow: inset 0 0 0 5px #fff;
}

.orion-openstaande-card__body {
    min-width: 0;
    padding: 16px;
}

.orion-openstaande-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.orion-openstaande-card__invoice {
    color: var(--od-dark);
    font-size: 22px;
    font-weight: 900;
}

.orion-openstaande-card__status {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(38, 198, 83, .12);
    color: #13863a;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.orion-openstaande-card.is-late .orion-openstaande-card__status {
    background: rgba(245, 166, 35, .14);
    color: #9d6300;
}

.orion-openstaande-card.is-urgent .orion-openstaande-card__status {
    background: rgba(229, 72, 72, .12);
    color: #b82121;
}

.orion-openstaande-card__customer {
    display: block;
    margin-top: 8px;
    color: var(--od-blue);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

.orion-openstaande-card__meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.orion-openstaande-card__meta div {
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--od-soft);
}

.orion-openstaande-card__meta span,
.orion-openstaande-card__meta strong {
    display: block;
}

.orion-openstaande-card__meta span {
    color: var(--od-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.orion-openstaande-card__meta strong {
    overflow: hidden;
    margin-top: 5px;
    color: var(--od-dark);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.orion-openstaande-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.orion-openstaande-card__tags span {
    padding: 6px 9px;
    border: 1px solid rgba(68, 68, 119, .12);
    border-radius: 999px;
    background: #fff;
    color: var(--od-muted);
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 720px) {
    .orion-openstaande__stats,
    .orion-openstaande-card__meta {
        grid-template-columns: 1fr 1fr;
    }

    .orion-openstaande__stats div:first-child {
        grid-column: 1 / -1;
    }

    .orion-openstaande-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .orion-openstaande-card__body {
        padding: 14px;
    }
}

@media (max-width: 420px) {
    .orion-openstaande {
        padding-right: 8px;
        padding-left: 8px;
    }

    .orion-openstaande__toolbar {
        top: 160px;
    }

    .orion-openstaande-card__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .orion-openstaande-card__status {
        align-self: flex-start;
    }
}
