/* =====================================================
   SPECIFICATION TABLES & CONTENT
   ===================================================== */

/* Base spec content styling */
.spec-content {
    color: #ccc;
}



.fitting-options {
    color: #ccc;
}

.option-row {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 0.9rem;
}

.option-row input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--jd3-magenta);
}

.option-row.special {
    color: var(--jd3-magenta);
    font-weight: 600;
}

.price-summary {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #333;
    grid-column: span 2;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1.1rem;
}

.price-row.total {
    border-top: 2px solid var(--jd3-magenta);
    margin-top: 15px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--jd3-magenta);
}

/* Quote Summary Section */
.quote-summary {
    padding: 20px 0;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    background: black;
}

.quote-summary .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

}

/* Sub-Total Box Styles */
.subtotal-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

.subtotal-header {
    background: linear-gradient(45deg, #000000 0%, #1a1a1a 30%, #1a0f26 60%, #5E3099 100%);
    color: #1a1a1a;
    padding: 15px 20px;
    margin: 0;
}

.subtotal-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
}

.subtotal-content {
    padding: 20px;
    background: #1a1a1a;
}

.empty-summary {
    text-align: center;
    color: #6c757d;
}

.subtotal-headers {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 2px solid #333;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
}

.sign-row-wrapper {
    padding: 10px 0;
}

.subtotal-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #333;
    align-items: center;
    color: #ccc;
}

/* Quote Totals Section */
.quote-totals {
    border-top: 2px solid #333;
    padding-top: 15px;
    margin-top: 15px;
    max-width: 400px;
    margin-left: auto;
}

.quote-totals .price-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    padding: 5px 0;
    font-size: 0.95rem;
    align-items: center;
    color: #ccc;
}

.quote-totals .price-row .total-label {
    text-align: right;
    font-weight: 500;
    color: #ccc;
}

.quote-totals .price-row .total-value {
    text-align: right;
    font-weight: 600;
    min-width: 80px;
    color: #ffffff;
}

.quote-totals .price-row.discount-row .total-label {
    color: #28a745;
}

.quote-totals .price-row.discount-row .total-value {
    color: #28a745;
    font-weight: 600;
}

.quote-totals .price-row.total {
    border-top: 1px solid #333;
    margin-top: 10px;
    padding-top: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #28a745;
}

.quote-totals .price-row.total .total-label {
    font-weight: 700;
    color: #28a745;
}

.quote-totals .price-row.total .total-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: #28a745;
}

/* Help Icons */
.help-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    margin-left: 4px;
    cursor: help;
    transition: all 0.3s ease;
}

/* Sign Link Styling */
.sign-link {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sign-link:hover,
.sign-link:visited,
.sign-link:active {
    color: #e91e63;
    text-decoration: underline;
}

/* Smooth scrolling for the entire document */
html {
    scroll-behavior: smooth;
}

/* Ensure sign cards have proper IDs for targeting */
.sign-wrapper {
    scroll-margin-top: 20px;
    /* Offset for fixed headers if any */
}

/* Validation Header */
.validation-header {
    /* Additional styling for validation headers if needed */
}

/* Summary Column Classes */
.summary-col-1 {
    /* Sign name column */
}

.summary-col-2 {
    /* Power validation column */
}

.summary-col-3 {
    /* Fixings validation column */
}

.summary-col-4 {
    /* Unit price column */
}

.summary-col-5 {
    /* Quantity column */
}

.summary-col-6 {
    /* Total column */
    font-weight: 600;
}

/* Selected/Not Selected Styles */
.selected-tick {
    color: var(--primary-green);
    background: var(--primary-green-bg);
    border-radius: 12px;
    border: 1px solid var(--primary-green);
    padding: 4px 10px 2px 8px;
    font-weight: 800;
}

.not-selected-cross {
    color: var(--primary-red);
    background: var(--primary-red-bg);
    border-radius: 12px;
    border: 1px solid var(--primary-red);
    padding: 4px 10px;
}

/* Add missing no-requirement class */
.no-requirement {
    color: #666;
    font-style: italic;
}

/* Validation indicators in summary */
.removed-validation {
    color: #666;
    font-style: italic;
}

/* Removed item styling in order summary */
.subtotal-row.removed-item {
    position: relative;
    opacity: 0.6;
    background-color: #2a2a2a;
}

.removed-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(220, 53, 69, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 4px;
}

.removed-text {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ensure removed items don't affect hover states */
.subtotal-row.removed-item:hover {
    background-color: #2a2a2a;
}

.subtotal-row.removed-item .sign-link {
    color: #666;
    text-decoration: line-through;
}

.restore-sign-btn {
    background: white;
    color: #dc3545;
    border: 2px solid white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restore-sign-btn:hover {
    background: #f8f9fa;
}

/* Sign wrapper when removed */
.sign-wrapper.quote-item-removed {
    position: relative;
    opacity: 0.7;
}

.sign-wrapper.quote-item-removed .spec-box {
    pointer-events: none;
}

.sign-wrapper.quote-item-removed .remove-overlay {
    pointer-events: all;
}

/* Alignment Utilities */
.center-align {
    text-align: center;
}

.right-align {
    text-align: right;
}

/* Discount row styling */
.discount-row {
    color: #28a745;
    font-weight: 600;
}

.discount-value {
    color: #28a745;
}

/* Quote validation message in summary box */
.quote-validation-message {
    background: #dc3545 !important;
    color: white !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-align: center !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .quote-totals {
        max-width: 100%;
        margin-left: 0;
    }

    .quote-totals .price-row {
        grid-template-columns: 1fr auto;
        gap: 50px;
        font-size: 0.9rem;
    }

    .quote-totals .price-row .total-value {
        min-width: 70px;
    }

    .quote-totals .price-row.total {
        font-size: 1rem;
    }

    .quote-totals .price-row.total .total-value {
        font-size: 1.1rem;
    }

    .subtotal-content {
        padding: 15px;
    }

    .subtotal-header {
        padding: 12px 15px;
    }

    .subtotal-headers {
        font-size: 0.85rem;
        color: #ffffff;
    }

    .subtotal-row {
        font-size: 0.85rem;
        color: #ccc;
    }
}

@media (max-width: 480px) {
    .quote-totals .price-row {
        gap: 40px;
        font-size: 0.85rem;
    }

    .quote-totals .price-row .total-value {
        min-width: 65px;
    }

    .quote-totals .price-row.total {
        font-size: 0.95rem;
    }

    .quote-totals .price-row.total .total-value {
        font-size: 1rem;
    }

    .subtotal-header {
        padding: 10px 12px;
    }

    .subtotal-headers {
        font-size: 0.8rem;
    }

    .subtotal-row {
        font-size: 0.8rem;
    }
}