:root {
    --space: 30px;
}

canvas {
    background: #fff;
    display: block;
    margin: 10px auto 10px;
    border: solid 1px #222;
    cursor: crosshair;
}

.controls {
    text-align: center;
    min-height: 60px;
    margin: 0 auto;
    width: 300px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
}

.table-header {
    background-color: #123365 !important;
}

/* Highlight selected cards */
.metal-card input[type="checkbox"]:checked~.card-inner {
    background-color: #fcefcf;
    /* Light gold highlight */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.card-inner {
    height: 100%;
    padding: 1rem;
    text-align: center;
}

.metal-card input[type="checkbox"] {
    display: none;
}

.stepper {
    display: flex;
    margin: 50px;
    padding: 0;
    list-style: none;
    position: relative;
}

.stepper::before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    content: "";
    width: calc(100% - var(--space));
    background: linear-gradient(90deg, #f53939 0%, #f53939 73%, lightgrey 73%, lightgray 100%);
    z-index: 1;
}

.stepper__item {
    flex: 1;
    padding: 10px 10px 10px 40px;
    background: white;
    margin: 0 0 0 calc(-1 * var(--space) + 1px);
    clip-path: polygon(var(--space) 50%, 0% 0%, calc(100% - var(--space)) 0%, 100% 50%, calc(100% - var(--space)) 100%, 0% 100%);
    border-top: 1px solid lightgrey;
    border-bottom: 1px solid lightgrey;
    position: relative;
    z-index: 2;
}

.stepper__item.current {
    background: #f53939;
    font-weight: bold;
    color: white;
    border-top: 1px solid #f53939;
    border-bottom: 1px solid #f53939;
}

.stepper__item.complete {
    background: white;
    border-top: 1px solid #f53939;
    border-bottom: 1px solid #f53939;
}

.stepper__item.complete:hover {
    background: #f53939;
    color: white;
}

.stepper__item:first-child {
    clip-path: polygon(0% 0%, calc(100% - var(--space)) 0%, 100% 50%, calc(100% - var(--space)) 100%, 0% 100%);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-left: 1px solid #f53939;
}

.stepper__item:last-child {
    clip-path: polygon(var(--space) 50%, 0% 0%, 100% 0%, 100% 100%, 0% 100%);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-right: 1px solid lightgrey;
}

.custom-inline-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
    border-radius: 0.25rem;
    text-align: left;
}

.custom-inline-dropdown .dropdown-item {
    padding: 0.25rem 1rem;
    white-space: nowrap;
}
