/* ==========================================================================
   Operations.css — styles specific to the Operations module screens.
   ========================================================================== */

.ops-toprow {
    display: flex;
    gap: 9px
}

.ops-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--green);
    background: var(--green-soft);
    padding: 2px 8px;
    border-radius: 20px
}

.ops-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: opsPulseDot 1.4s infinite
}

@keyframes opsPulseDot {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .35
    }
}

.ops-quick-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--text-3);
    margin: 2px 2px 9px
}

.ops-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(210px,1fr));
    gap: 12px;
    margin-bottom: 14px
}

.ops-quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    cursor: pointer;
    text-align: left;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    width: 100%
}

    .ops-quick-card:hover {
        border-color: var(--border-strong);
        color: inherit
    }

.ops-quick-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px
}

.ops-quick-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text)
}

.ops-quick-desc {
    font-size: 11.5px;
    color: var(--text-3)
}

.ops-quick-chevron {
    flex: 0 0 auto;
    color: var(--text-3);
    font-size: 15px
}

.ops-tile-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 14px;
    margin-bottom: 14px
}

.ops-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 13px 15px;
    box-shadow: var(--shadow)
}

.ops-tile-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 5px
}

.ops-tile-value {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -.01em;
    color: var(--text)
}

.ops-tile-sub {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 3px
}

.ops-board-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 14px
}

.ops-route-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 9px;
    height: fit-content
}

.ops-route-list-title {
    font-size: 13px;
    font-weight: 700;
    padding: 2px 4px 6px;
    color: var(--text)
}

.ops-route-item {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 12px;
    border: 1.5px solid var(--border);
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    width: 100%
}

    .ops-route-item:hover {
        border-color: var(--border-strong)
    }

    .ops-route-item.active {
        background: var(--surface-2)
    }

        .ops-route-item.active.tone-primary {
            border-color: var(--primary)
        }

        .ops-route-item.active.tone-green {
            border-color: var(--green)
        }

        .ops-route-item.active.tone-danger {
            border-color: var(--danger)
        }

.ops-route-item-top {
    display: flex;
    align-items: center;
    gap: 10px
}

.ops-route-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg,#C5613B,#D9982F);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    font-family: var(--font-mono);
    flex: 0 0 auto
}

.ops-route-fo {
    font-size: 13px;
    font-weight: 700;
    color: var(--text)
}

.ops-route-name {
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.ops-route-status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px
}

.ops-route-progress-top {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-2);
    margin-bottom: 4px
}

.ops-route-progress-pct {
    font-family: var(--font-mono);
    font-weight: 600
}

.ops-route-bar-track {
    height: 5px;
    background: var(--surface-3);
    border-radius: 6px;
    overflow: hidden
}

.ops-route-bar-fill {
    height: 100%;
    border-radius: 6px
}

.ops-live-board {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden
}

.ops-live-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
}

.ops-live-head-left {
    display: flex;
    align-items: center;
    gap: 13px
}

.ops-live-avatar {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg,#C5613B,#D9982F);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    font-family: var(--font-mono)
}

.ops-live-name-row {
    display: flex;
    align-items: center;
    gap: 9px
}

    .ops-live-name-row h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: var(--text)
    }

.ops-live-sub {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px
}

.ops-live-stats {
    display: flex;
    gap: 22px
}

.ops-live-stat-label {
    font-size: 10.5px;
    color: var(--text-3);
    font-weight: 600
}

.ops-live-stat-value {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 17px;
    color: var(--text)
}

.ops-delay-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 22px 0;
    padding: 11px 14px;
    background: var(--danger-soft);
    border: 1px solid var(--danger);
    border-radius: 11px;
    color: var(--danger);
    font-size: 12.5px;
    font-weight: 600
}

.ops-timeline-wrap {
    padding: 26px 14px 8px;
    position: relative
}

.ops-timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0 12px
}

.ops-timeline-bg-line {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 9px;
    height: 4px;
    background: var(--surface-3);
    border-radius: 4px
}

.ops-timeline-fill-line {
    position: absolute;
    left: 24px;
    top: 9px;
    height: 4px;
    background: linear-gradient(90deg,var(--primary),var(--accent));
    border-radius: 4px
}

.ops-timeline-stop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0
}

.ops-timeline-dot-current {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center
}

.ops-timeline-dot-current-inner {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent)
}

.ops-timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    z-index: 2;
    border: 3px solid var(--border-strong)
}

    .ops-timeline-dot.visited {
        border-color: var(--primary);
        background: var(--primary)
    }

.ops-timeline-label {
    font-size: 10.5px;
    font-weight: 700;
    margin-top: 9px;
    white-space: nowrap;
    color: var(--text)
}

    .ops-timeline-label.pending {
        color: var(--text-3)
    }

.ops-timeline-place {
    font-size: 9.5px;
    color: var(--text-3);
    margin-top: 1px;
    white-space: nowrap;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis
}

.ops-timeline-time {
    font-size: 9.5px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-2);
    margin-top: 3px
}

.ops-live-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px 18px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px
}

.ops-live-footer-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: var(--text-2)
}

@media (max-width:1100px) {
    .ops-board-grid {
        grid-template-columns: 1fr
    }

    .ops-tile-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

