﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Thick left-edge indicators for Shop Floor Cards */
.card.border-rush {
    border-left: 12px solid #dc3545 !important;
}

.card.border-hot {
    border-left: 10px solid #ffc107 !important;
}

.card.border-normal {
    border-left: 6px solid #0d6efd !important;
}

.bg-rush {
    background-color: #fff5f5; /* Very subtle red tint to the card background */
}

.bg-hot {
    background-color: #fffdfa; /* Very subtle yellow tint to the card background */
}

.nav-scrollable {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Base class for required fields */
.required-label::after {
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
}

/* State: Data is missing */
.required-label.needed::after {
    content: "*";
    color: #dc3545; /* Red */
}

/* State: Data is valid */
.required-label.valid::after {
    content: "✓";
    color: #198754; /* Green */
}

    /* This makes all Bootstrap icons in the NavMenu consistent */
    .nav-scrollable .bi {
    display: inline-block;
    width: 1.5rem !important; /* Fixed width prevents 'shunting' text */
    height: 1.5rem !important; /* Fixed height */
    font-size: 1.25rem; /* Icon size inside the box */
    vertical-align: middle; /* Aligns with the middle of the text */
    margin-right: 0.75rem; /* Consistent gap to the label */
    text-align: center;
    line-height: 1.5rem;
    flex-shrink: 0; /* Prevents icon from squishing on small screens */
}

/* Fixes the 'lower-left' alignment issue */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
}
/* ERP Shop Floor Card Styling */

/* We target the card class and our custom class together for higher specificity */
.card.card-priority-rush {
    border-left: 15px solid #dc3545 !important; /* Thick Red */
    border-top: 1px solid rgba(0,0,0,.125);
    border-right: 1px solid rgba(0,0,0,.125);
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.card.card-priority-hot {
    border-left: 12px solid #ffc107 !important; /* Thick Yellow */
    border-top: 1px solid rgba(0,0,0,.125);
    border-right: 1px solid rgba(0,0,0,.125);
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.card.card-priority-normal {
    border-left: 8px solid #0d6efd !important; /* Standard Blue */
    border-top: 1px solid rgba(0,0,0,.125);
    border-right: 1px solid rgba(0,0,0,.125);
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.card.card-priority-low {
    border-left: 8px solid #6c757d !important; /* Grey */
    border-top: 1px solid rgba(0,0,0,.125);
    border-right: 1px solid rgba(0,0,0,.125);
    border-bottom: 1px solid rgba(0,0,0,.125);
}

/* Background tint for RUSH jobs to make them stand out on the tablet */
.bg-rush-tint {
    background-color: #fffafa !important;
}

/* The 'Monitor' Frame for Screenshots */
.screenshot-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 10px;
    background: #222; /* Dark frame color */
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4); /* Heavy shadow for depth */
    border: 1px solid #444;
}

.screenshot-img {
    width: 100%;
    border-radius: 4px;
    border: 2px solid #000;
    transition: opacity 0.4s ease-in-out;
}

/* Custom Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

    .nav-btn:hover {
        background: rgba(13, 110, 253, 0.8); /* Primary blue on hover */
    }

.btn-left {
    left: -25px;
}

.btn-right {
    right: -25px;
}

/* Caption Area */
.screenshot-caption {
    background: #f8f9fa;
    padding: 15px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

/* Fixed Mini-Display for Screenshots */
.erp-display-wrapper {
    max-width: 750px; /* Smaller, fixed display size */
    margin: 0 auto;
    background: #1a1a1a;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

.screenshot-viewport {
    width: 100%;
    aspect-ratio: 16 / 10; /* Fixed standard tablet ratio */
    background: #000;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .screenshot-viewport img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Ensures image isn't cropped or stretched */
        transition: opacity 0.3s ease-in-out;
    }

/* Control Bar below the image */
.display-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 0 10px;
}

.nav-pill-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.2s;
    font-size: 0.9rem;
}

    .nav-pill-btn:hover {
        background: #0d6efd;
        transform: translateY(-2px);
    }

    .nav-pill-btn:active {
        transform: translateY(0);
    }

.indicator-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
    transition: background 0.3s;
}

    .dot.active {
        background: #0d6efd;
        box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
    }

.bom-level-0 {
    font-weight: bold;
}

.bom-level-1 {
    padding-left: 30px !important;
    color: #555;
}

.bom-level-2 {
    padding-left: 60px !important;
    color: #888;
    font-style: italic;
}