/* Hide Vue template placeholders until Vue is loaded */
[v-cloak] {
    display: none !important;
}

/* Optional: Add a loading spinner for the Vue app */
.vue-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.vue-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
}

.btn {
    font-family: 'Roboto', sans-serif;
}

.btn-group-sm .btn {
    font-family: 'Roboto Condensed', sans-serif;
}


.vertical-nav .nav-link.active {
    color: black;
    font-weight: bold;
    background-color: var(--theme-color-light);
    border-radius: 4px;
}

th {
    word-break: break-all;
    white-space: normal;
}
th.canbreak {
    word-break: break-word;
}

.nobr {
    white-space: nowrap;
}

.nav {
    --bs-link-hover-color: var(--theme-color-dark);
}

.navbar-nav .nav-link.active {
    --bs-navbar-active-color: var(--theme-color);
    font-weight: bold;
}

.process {
    border: 1px black outset;
    background-color: white;
    border-bottom-right-radius: 16px;
    border-top-right-radius: 16px;
    margin: 8px;
    width: 140px;
    height: 98px;
    box-shadow: 2px 2px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    display: inline-flex;
    flex-direction: column;
    padding: 0;
    transition: all 0.2s ease;
    text-align: left;
}

.process span {
    padding: 0 0 0 16px;
}

.process:hover {
    transform: scale(1.05);
}

.process h2 {
    border-top-right-radius: 15px;
    font-size: 24px;
    padding: 4px 0 4px 16px;
}


.material {
    border: 1px black outset;
    background-color: white;
    border-bottom-left-radius: 9px;
    width: 48px;
    height: 32px;
    font-weight: 500;
    box-shadow: 2px 2px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.material .bi {
    display: block;
    align-self: flex-start;
    padding-left: 5px;
    font-size: 10px;
}

.material:hover {
    transform: scale(1.05);
    filter: brightness(110%);
}

.mould-type-metal {
    background: silver;
    color: black !important;
}



.material.material-zn,
.material.material-zinc,
.material.mould-type-metal {
    background: silver;
    color: black !important;
}

.material.material-zn:hover,
.material.material-zinc:hover,
.material.mould-type-metal:hover {
    background-image: linear-gradient(to bottom right, silver 0%, silver 73%, hsl(231, 30%, 75%) 81%);
}

.material.material-abs,
.material.mould-type-plastic {
    background: antiquewhite;
    color: black !important;
}

.material.material-gp {
    border-style: dashed;
    background-color: white;
    color: black !important;
}

.material.material-tpr55 {
    border-style: dotted;
    background-color: #6a6a6a;
    color: white !important;
}

.material.material-tpr65 {
    border-style: dashed;
    background-color: #2a2a2a;
    color: white !important;
}

.toolplan-material {
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: antiquewhite;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    color: black !important;
    border: 1.5px black solid;
}

.toolplan-material.material-P-1-02-00ZINC-001 {
    background-color: silver;
}

mark {
    padding: 0;
}

/* Dropzone and Image Preview Styles */
.dropzone {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed #dee2e6 !important;
}

.dropzone:hover {
    border-color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.05);
}

.dropzone.border-primary {
    border-color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
}

.image-preview-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.image-preview-card:hover .image-overlay {
    opacity: 1 !important;
}

.image-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

.image-info {
    background: rgba(0, 0, 0, 0.8) !important;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px !important;
}

.dropzone-hint {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-preview-card img {
        height: 100px !important;
    }

    .col-6.col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .col-6.col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Cavity state styling */
.cavity-row-scrapped td:not(.cavity-state-container) {
    opacity: 0.4;
}

.cavity-row-not-produced td:not(.cavity-state-container) {
    opacity: 0.6;
}

.process-badge {
    color: black;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.sheet {
    position: fixed;
    top: 32px;
    left: 32px;
    right: 32px;
    bottom: 0;
    z-index: 1055;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
    display: none;
    flex-direction: column;
    max-width: calc(100vw - 64px);
    max-height: calc(100vh - 32px);
    overflow: hidden;
    transition: opacity .15s linear;
}

.sheet.show {
    display: flex;
    opacity: 1;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    border-radius: 1.25rem 1.25rem 0 0;
    background: #f8f9fa;
}

.sheet-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 1.25rem 1.25rem;
    background: #f8f9fa;
    position: absolute;
    bottom: 0;
    height: 60px;
    width: 100%;
}

.sheet-body {
    flex: 1 1 auto;
    padding: 1.5rem;
    overflow-y: auto;
    padding-bottom: 60px;
}

.sheet-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity .2s;
}

.sheet-close:hover {
    opacity: 1;
}

.sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.sheet.show~.sheet-backdrop {
    display: block;
}

.accordion-button::after {
    margin-left: 0;
}

.bi-weight-scale {
    display: inline-block;
    mask-image: url(/images/weight.svg);
    mask-size: 24px;
    mask-repeat: no-repeat;
    mask-position: center;
    background-color: black;
    width: 24px;
    height: 24px;
    margin-left: 0;
}
.bi-weight-scale-hollow {
    display: inline-block;
    mask-image: url(/images/weight-hollow.svg);
    mask-size: 24px;
    mask-repeat: no-repeat;
    mask-position: center;
    width: 24px;
    height: 24px;
    margin-left: 0;
    background-color: black;
}
.text-danger .bi-weight-scale,
.text-danger .bi-weight-scale-hollow {
    background-color: rgb(var(--bs-danger-rgb));
}

.mould-metadata {
    display: flex;
    align-items: center;
}

.mould-metadata-item {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Form check styling for assembly checkboxes */
.form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-check-label:has(.form-check-input:disabled) {
    opacity: 0.7;
    cursor: not-allowed;
}




.used-qty-input:invalid {
    border-color: red;
}

.quantity-input:invalid {
    border-color: red;
}

.input-group-text.compact {
    padding: 0.375rem 0.3rem;
    font-size: 0.8rem;
}


/* Disabled dropdown styling for metal moulds */
.form-select:disabled {
    cursor: not-allowed;
}

/* Autosave indicator styles */
.autosave-status {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.autosave-status i {
    font-size: 1rem;
}

.autosave-status i.bi-arrow-repeat {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* .tab-pane#decoration .table-responsive {
    min-height: 400px;
}

.tab-pane#decoration .card .table-responsive {
    overflow-y: visible;
} */
.table-responsive {
    overflow: visible;
}

.text-gray-500 {
    color: var(--bs-gray-500) !important
}

/* 
table.griddy td,
table.griddy th {
    border-left: 1px solid #dee2e6 !important;
    border-right: 1px solid #dee2e6 !important;
} */
.table-decoration {
    table-layout: fixed;
}

.table-decoration tr td.border-light {
    border-color: #eee !important;
}

.table-decoration tr:last-child td {
    border-bottom: none !important;
}
.no-bottom-border {
    border-bottom: none !important;
}

span.partno {
    color: rgb(19, 0, 128);
}

.required-asterisk {
    color: red;
}

.remarks-button:hover {
    color: var(--theme-color);
}

.btn-outline-info:hover {
    color: var(--theme-color);
}

.is-loading {
    background-image: url("../images/loading.gif");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 32px 32px;
    background-color: #fbfbfb !important;
}

.row_remarks {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    flex-basis: 600px;
    flex-grow: 0;
    flex-shrink: 1;
    min-width: 40px;
    font-size: 0.8rem;
}

.truncated_remarks {
    display: inline-block;
    line-height: 1.2;
}
@media screen {
    .truncated_remarks {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 2rem;
        text-overflow: ellipsis;
    }
}

.badge-approval-N {
    background-color: #add6ea;
}

.badge-approval-I {
    background-color: #c7bde9;
}

.badge-approval-Y {
    background-color: #b0ddce;
}
.badge-approval-Y-P {
    background: linear-gradient(to right, #b0ddce 0%, #eae7ad 100%);
}

.print-subtitle {
    display: none;
}
.input-group-location {
    flex-basis:140px; 
    flex-grow:0; 
    flex-shrink:0;
}
.input-group-applications {
    flex-basis:68px; 
    flex-grow:0; 
    flex-shrink:0;
}

/* Engineer Selection Modal */
.engineer-selection-modal {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
}

.engineer-selection-modal .modal-body {
    background-color: #ffffff !important;
}

.engineer-selection-modal h2 {
    color: #000000;
    font-weight: 500;
    font-size: 3.5rem;
}

.engineer-selection-modal .text-muted {
    color: #6c757d !important;
    font-size: 1.25rem;
}

.engineer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.engineer-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.engineer-card:hover {
    transform: scale(1.1);
}

.engineer-card.selected {
    transform: scale(1.1);
}

.engineer-card.selected .engineer-avatar {
    border: 4px solid white;
}

.engineer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.engineer-lead-star {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
}

.engineer-lead-star i {
    color: #ffd700;
    font-size: 1rem;
}

.engineer-card:hover .engineer-avatar {
    border-color: rgba(255, 255, 255, 0.5);
}

.engineer-initial {
    font-size: 3rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.engineer-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 0.25rem;
    text-align: center;
    word-break: break-word;
}

.engineer-code {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

@media (max-width: 768px) {
    .engineer-selection-modal h2 {
        font-size: 2rem;
    }
    
    .engineer-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1.5rem;
    }
    
    .engineer-avatar {
        width: 100px;
        height: 100px;
    }
    
    .engineer-initial {
        font-size: 2.5rem;
    }
}
.nav-link-user-switcher {
    cursor: pointer;
}