﻿status-widget {
    display: block;
    font-family: 'ABBvoice', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 24px;
    color: #262626;
}

    /* Layout */
    status-widget .status-container {
        width: 100%;
        padding: 15px 5px 8px 5px;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    /* Single horizontal row that never wraps; connectors stretch to fill width */
    status-widget .status-track {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        position: relative;
        flex-wrap: nowrap;
        width: 100%;
        min-width: 710px; /* 5 stages + connectors baseline */
        padding-bottom: 4px;
    }

    /* Stage: fixed minimum footprint */
    status-widget .status-stage {
        flex: 0 0 90px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        text-align: center;
        cursor: default;
        padding: 0 10px;
        box-sizing: border-box;
    }

        /* Allow label text to wrap to two lines */
        status-widget .status-stage .label {
            margin-top: 6px;
            font-size: 13px;
            line-height: 1.2;
            font-weight: 500;
            color: #444;
            padding: 0 2px;
            word-break: break-word;
            white-space: normal;
            max-height: 2.4em;
            overflow: hidden;
        }

        /* Dot */
        status-widget .status-stage .dot {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: #e2e2e2;
            color: #555;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 14px;
            position: relative;
            transition: background .3s, color .3s, box-shadow .3s;
        }

        status-widget .status-stage .dot-number {
            display: inline-block;
            line-height: 1;
        }

        /* Active */
        status-widget .status-stage.active .dot {
            background: #d2d2d2;
            box-shadow: 0 0 0 4px rgb(153 153 153 / 15%);
        }

        status-widget .status-stage.active .label {
            color: #262626;
            font-weight: 600;
        }

        /* Completed */
        status-widget .status-stage.completed .dot {
            background: #009846;
            color: #fff;
        }

        status-widget .status-stage.completed .label {
            color: #262626;
        }

        status-widget .status-stage.completed .fa-check {
            font-size: 16px;
        }

        /* Pending */
        status-widget .status-stage.pending .dot {
            background: #f3f3f3;
            color: #999;
            border: 2px solid #d6d6d6;
            box-sizing: border-box;
        }

        status-widget .status-stage.pending .label {
            color: #999;
            font-weight: 400;
        }

        /* Error */
        status-widget .status-stage.error .dot {
            background: #ff000f;
            color: #fff;
            /*box-shadow: 0 0 0 4px rgba(214,0,0,0.15);*/
        }

        status-widget .status-stage.error .label {
            /*color: #ff000f;*/
            color: #262626;
            font-weight: 500;
        }

        status-widget .status-stage.error .fa-times {
            font-size: 16px;
        }

    /* Connector: stretches between fixed-width stages */
    status-widget .status-connector {
        height: 4px;
        flex: 1 1 auto;
        min-width: 20px;
        align-self: center;
        margin-top: 15px;
        background: #d6d6d6;
        border-radius: 3px;
        position: relative;
        transition: background .3s;
    }

        status-widget .status-connector::after {
            content: "";
            position: absolute;
            top: 50%;
            right: -12px;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            border-left: 12px solid #d6d6d6;
        }

        status-widget .status-connector.complete {
            background: #009846;
        }

            status-widget .status-connector.complete::after {
                border-left-color: #009846;
            }

        status-widget .status-connector.pending {
            background: #e5e5e5;
        }

            status-widget .status-connector.pending::after {
                border-left-color: #e5e5e5;
            }

/* Small screens */
@media (max-width: 600px) {
    status-widget .status-track {
        min-width: 710px;
    }

    status-widget .status-stage {
        flex: 0 0 110px;
        padding: 0 4px;
    }

        status-widget .status-stage .dot {
            width: 30px;
            height: 30px;
            font-size: 13px;
        }
        /* Keep label at minimum 13px */
        status-widget .status-stage .label {
            font-size: 13px;
        }

    status-widget .status-connector {
        min-width: 32px;
        margin-top: 13px;
    }

        status-widget .status-connector::after {
            right: -10px;
            border-top-width: 7px;
            border-bottom-width: 7px;
            border-left-width: 10px;
        }
}

/* Extra small */
@media (max-width: 420px) {
    status-widget .status-track {
        min-width: 710px;
    }

    status-widget .status-stage {
        flex: 0 0 110px;
    }
        /* Keep label at minimum 13px */
        status-widget .status-stage .label {
            font-size: 13px;
        }

    status-widget .status-connector {
        min-width: 24px;
    }

        status-widget .status-connector::after {
            right: -8px;
            border-top-width: 6px;
            border-bottom-width: 6px;
            border-left-width: 8px;
        }
}

/* Focus */
status-widget .status-stage:focus .dot,
status-widget .status-stage:focus-visible .dot {
    outline: 3px solid #004da0;
    outline-offset: 2px;
}

/* Scrollbar styling */
status-widget .status-container::-webkit-scrollbar {
    height: 8px;
}

status-widget .status-container::-webkit-scrollbar-track {
    background: #f0f0f0;
}

status-widget .status-container::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

    status-widget .status-container::-webkit-scrollbar-thumb:hover {
        background: #a0a0a0;
    }

/* SR only */
status-widget .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}
