
* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    body {
        font-family: "Figtree", sans-serif !important;
        font-size: 14px;
        background: #f5f7fa;
        min-height: 100vh;
        padding: 0 0 20px 0;
        color: #0d2655;
    }
        a{ color: #1794ff; text-decoration: none; }
        a:hover { color: #0e2655 !important; }
        .hideReseller{ border: 2px solid #7e2525 !important; display:none !important; }
        .text-red{ color: #7e2525; }
        .d-none{ display: none; }
        .container {
            margin: 0 auto;
            border-radius: 10px;
        }
            .content {
                display: grid;
                grid-template-columns: 1fr 1.25fr;
                gap: 30px;
            }
                .controls-panel {
                    height: fit-content;
                }
                    .control-group {
                        margin-bottom: 20px;
                        padding: 20px;
                        background: #fff;
                        border-radius: 10px;
                    }
                        .control-group h3 {
                            margin: -10px -10px 25px -10px;
                            font-size: 16px;
                            padding: 10px;
                            background: #0e2655;
                            border-radius: 5px;
                            color: #fff;
                            font-weight: 600;
                        }
        .input-row {
            margin: 10px 0 0 0;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
        .input-group {
            display: flex;
            flex-direction: column;
        }
        .toggle-switch-container {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
        }
            .toggle-switch {
                width: 32%;
                margin-bottom: 0;
                display: flex;
                align-items: center;
                /*cursor: pointer;*/
                padding: 10px 12px;
                border: 1px solid #dfe5ec;
                border-radius: 8px;
                background: white;
                transition: all 0.3s ease;
            }
                .toggle-switch:hover {
                    border-color: #1794ff;
                    background: #f8fbff;
                }
                .toggle-switch input[type="radio"] {
                    margin-right: 8px;
                    /*cursor: pointer;*/
                }
                .toggle-switch input[type="radio"]:checked + .toggle-option {
                    color: #1794ff;
                }
                .toggle-switch:has(input:checked) {
                    border-color: #1794ff;
                    background: #e3f2fd;
                }
            .toggle-option {
                font-size: 14px;
                color: #34495e;
                transition: all 0.3s ease;
            }
            #manualFilterTable,
            #replacementFilterTable {
                width: 100%;
                margin-top: 15px;
            }
                #manualFilterTable th,
                #replacementFilterTable th {
                    background: #0e2655;
                    color: white;
                    padding: 10px;
                    text-align: left;
                    font-size: 12px;
                }
                    #manualFilterTable td,
                    #replacementFilterTable td {
                        padding: 8px 10px;
                        border-bottom: 1px solid #e0e0e0;
                        font-size: 13px;
                        width: 25%;
                    }
                        #manualFilterTable input[type="number"],
                        #replacementFilterTable input[type="number"] {
                            width: 80px;
                            padding: 6px;
                        }

        .selectModel {
            width: 100%;
            font-size: 12px;
        }
            [data-tooltip] {
                position: relative;
                cursor: help;
                padding: 0 0 5px 0;
            }
                [data-tooltip] span{
                    border-bottom: 1px dashed #0e2655;
                }
            [data-tooltip]:hover::before {
                content: attr(data-tooltip);
                position: absolute;
                bottom: 100%;
                left: 50%;
                transform: translateX(-50%);
                background: #2c3e50;
                color: white;
                padding: 8px 12px;
                border-radius: 4px;
                font-size: 12px;
                white-space: nowrap;
                z-index: 1000;
                opacity: 1;
                pointer-events: none;
            }
            [data-tooltip]:hover::after {
                content: '';
                position: absolute;
                bottom: 100%;
                left: 50%;
                transform: translateX(-50%) translateY(100%);
                border: 5px solid transparent;
                border-top-color: #2c3e50;
                z-index: 1000;
                pointer-events: none;
            }
            [data-tooltip]::before,
            [data-tooltip]::after { opacity: 0; transition: opacity 0.2s ease-in-out; }
            [data-tooltip]:hover::before,
            [data-tooltip]:hover::after { opacity: 1; }
            .selectModel--sizes { display: none; }
            .basic-link{
                margin-top: 20px;
                display: inline-block;
            }

        label {
            color: #34495e;
            margin-bottom: 5px;
        }

        input, select, textarea {
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            transition: all 0.3s ease;
            font-family: "Figtree", sans-serif !important;
        }

        input:focus, select:focus {
            outline: none;
            border-color: #1794ff;
        }

        button {
            background: #dfe5ec;
            color: #34495e;
            border: none;
            padding: 12px 20px;
            border-radius: 8px; 
            /*cursor: pointer;*/
            font-weight: 600;
            transition: all 0.3s ease;
            font-family: "Figtree", sans-serif !important;
            box-shadow: 0 3px 0px rgba(0, 0, 0, 0.05);
        }

        .rectangle-types {
            max-height: 300px;
            overflow-y: auto;
        }

        .rectangle-type {
            background: white;
            border: 2px solid #ecf0f1;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            transition: all 0.3s ease;
        }

        .rectangle-type:hover {
            border-color: #1794ff;
        }

        .visualization-panel {
            border-radius: 15px;
            padding: 0;
        }

        .canvas-container {
            overflow: hidden;
            background: #fff;
            position: relative;
            margin-bottom: 0;
            width: 100%;
            aspect-ratio: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
        }

        #canvas {
            display: block;
            background: white;
            width: 100%;
            height: 100%;
        }
            .canvas-button-wrap{
                padding: 0 20px 20px 20px;
                margin-top: 0;
                background: #fff;
                border-bottom-left-radius: 20px;
                border-bottom-right-radius: 20px;
                z-index: 5;
                box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
                position: relative;
            }
                .disclaim{
                    font-size: 12px;
                    display: block;
                    padding: 10px 0 0 0;
                    color: #b5bdc6;
                }
                .canvas-buttons{
                    display: grid;
                    grid-template-columns: 1fr 1fr 1fr 1fr;
                    gap: 10px;
                }
                    .canvas-buttons button{
                        font-size: 12px;
                        padding: 10px;
                    }
                    .arrowWrap{
                        width: 30px;
                        text-align: center;
                        display: inline-block;
                        font-weight: bold;
                        display: block;
                        margin: 0 auto;
                    }
        .output-section {
            background: #fff;
            border-radius: 10px;
            padding: 20px;
            margin-top: 15px;
            box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
        }

        .output-section h3 {
            margin-bottom: 15px;
            font-size: 1.2rem;
            border-bottom: 2px solid #1794ff;
            padding-bottom: 5px;
        }

        .output-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #e0e0e0;
            text-align: right;
        }
        body[data-mode="replacement"] .hide-replacement-mode {
            display: none !important;
        }

        .gapFill {
            flex-flow: wrap;
        }

        .output-item:last-child {
            border-bottom: none;
        }

        .output-label {
            font-weight: 600;
            color: #34495e;
        }

        .output-value {
            font-weight: bold;
            color: #1794ff;
            white-space: pre-line;
        }

        .marketing-modal {
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1000;
            display: none;
            padding: 0;
            border-radius: 20px;
        }
            .marketing-button-wrap{
                padding: 15px;
                background: white;
                border-radius: 15px;
                box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
            }

            .marketing-content {
                max-width: none;
                margin: 0;
                border-radius: 0;
                position: relative;
                width: 100%;
                height: 100%;
                font-size: 14px;
            }

            .marketing-header {
                background: #0d2655;
                color: white;
                padding: 25px;
                border-radius: 0;
                text-align: center;
            }

            .marketing-header h1 {
                font-size: 2.2rem;
                margin-bottom: 10px;
            }

            .marketing-header .subtitle {
                opacity: 0.9;
            }

            .close-btn {
                position: absolute;
                top: 15px;
                right: 20px;
                background: rgba(255, 255, 255, 0.2);
                border: none;
                color: white;
                font-size: 1.5rem;
                /*cursor: pointer;*/
                padding: 8px 12px;
                border-radius: 5px;
                transition: background 0.3s ease;
                z-index: 1001;
            }

            .close-btn:hover {
                background: rgba(255, 255, 255, 0.3);
            }

        .back-button {
            z-index: 1001;
            background: #6c757d;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            /*cursor: pointer;*/
            font-weight: 600;
            transition: all 0.3s ease;
            margin: 30px 0 0 30px;
        }

        .back-button:hover {
            background: #5a6268;
            transform: translateY(-1px);
        }

        .marketing-body {
            margin: 0 auto;
        }
            .marketing-body h2 {
                color: #0d2655 !important;
                margin-bottom: 15px !important;
                font-size: 18px !important;
                text-align: center !important;
            }
            .marketing-body h3 {
                color: #0d2655 !important;
                margin-bottom: 30px !important;
                font-size: 18px !important;
                text-align: center !important;
            }

        .marketing-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .config-section {
            background: #f8f9fa;
            padding: 25px;
            border-radius: 15px;
        }

        .config-section h2 {
            margin-bottom: 20px;
            font-size: 1.4rem;
            border-bottom: 2px solid #1794ff;
            padding-bottom: 8px;
        }

        .config-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #e0e0e0;
        }

        .config-item:last-child {
            border-bottom: none;
        }

        .config-label {
            font-weight: 600;
            color: #34495e;
        }

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

        .visualization-section {
            text-align: center;
        }

        .marketing-canvas-image {
            max-width: 100%;
            border: 3px solid #34495e;
            border-radius: 10px;
            background: white;
        }

        .filter-sizes-info {
            margin-top: 15px;
            font-size: 0.9rem;
            color: #666;
            background: #f8f9fa;
            padding: 10px;
            border-radius: 8px;
        }
        .specs{
            width: 100%;
            background: #f8f9fa;
            border: 1px solid #dddddd;
            padding: 15px;
            border-radius: 15px;
        }
        
        
        .parts-list{
            margin: 20px 0;
            padding: 20px;
            border-radius: 15px;
            background: white;
            box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
        }


        .benefits-section {
            margin: 20px 0;
            padding: 20px;
            border-radius: 15px;
            background: white;
            box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
        }


            .benefits-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                gap: 20px;
            }

            .benefit-item {
                background: #f8f9fa;
                padding: 15px;
                border-radius: 8px;
                border: 1px solid #e0e0e0;
            }

            .benefit-item h3 {
                margin-bottom: 8px;
            }

            .benefit-item p {
                color: #34495e;
            }

        .energy-savings {
            background: #2c5aa0;
            color: white;
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            margin-bottom: 20px;
        }

        .energy-savings h2 {
            margin-bottom: 15px;
        }

        .energy-savings .highlight {
            font-size: 1.5rem;
            font-weight: bold;
            color: #1794ff;
        }

        .marketing-footer {
            text-align: center;
            padding: 15px;
            color: #666;
            font-size: 0.9rem;
            border-top: 1px solid #e0e0e0;
        }

        .energy-performance {
            text-align: center;
            /* background: #f0f1f2;
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 20px;
            border: 1px solid #dbdbdb; */
        }

        .energy-performance h2 {
            color: white;
            margin-bottom: 15px;
        }

        .energy-performance p {
            margin-bottom: 10px;
        }

        .energy-performance .highlight {
            font-weight: bold;
            color: #1794ff;
        }

        .print-btn {
            display: inline-block;
            padding: 12px 20px;
            margin: 0;
            border: none;
            border-radius: 8px;
            /*cursor: pointer;*/
            transition: all 0.3s ease;
            align-items: center;
            background: #1794ff !important;
            color: #fff !important;
            width: calc(25% - 6px);
            text-align: center;
        }
            .back-to-config{
                background: #eff6ff !important;
                color: #34495e !important;
            }
            .complete-quote{
                /* border: 2px solid #218365;
                background: #299877 !important;
                color: white !important; */
                background: #299877 !important;
            }
            .export-pdf{
                background: #fff;
                color: #34495e;
            }
            .generate-submittal{
                background: #fff;
                color: #34495e;
            }

        td { 
            padding: 5px; 
        }

        /* System Tabs Styling */
        .system-tabs {
            background: #fff;
            display: flex;
            align-items: flex-end;
            gap: 10px;
            margin: 0;
            padding: 10px;
            border-radius: 10px;
            margin: 0 0 20px 0;
        }

            .system-tabs,
            .control-group,
            .canvas-container{
                box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
            }

            .tabs-container {
                display: flex;
                gap: 5px;
                flex: 1;
  overflow-x: auto;
            }

            .system-tab {
                margin-bottom: 0px;
                padding: 9px 10px 8px;
                border-radius: 5px;
                /*cursor: pointer;*/
                font-weight: 600;
                transition: all 0.3s ease;
                position: relative;
                display: flex;
                align-items: center;
                gap: 8px;
                min-width: 120px;
                justify-content: space-between;
                border: 2px solid #e3e9f2;
                color: #0e2655;
                opacity: 1;
                transform: translateY(0);
            }

            .system-tab:hover {
                background: #f5f7fa;
            }

            .system-tab.active {
                background: #0e2655;		
                margin-bottom: 0px;				
                color: #fff;
                border: none;	
                opacity: 1;
                transform: translateY(0);
            }

            .system-tab-name {
                flex: 1;
                text-align: left;
            }

            .system-tab-delete {
                color: #ccc;
                font-weight: bold;
                font-size: 16px;
                width: 20px;
                height: 20px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                transition: all 0.3s ease;
                line-height: 1em;
            }

            .system-tab:hover .system-tab-delete {
                opacity: 1;
            }

            .system-tab-delete:hover {
                background: #dc3545;
                color: white;
            }

        .add-system-btn {
            background: #299877;
            color: white;
            border-radius: 5px;
            padding: 10px;
            /*cursor: pointer;*/
            font-weight: 600;
            font-size: 14px;
        }

            .add-system-btn:hover {
                background: #1d7d60;
            }

        /* Quote Metadata Styles */
        .quote-info-panel-wrap {
            padding: 2%;
            max-width: 20%;
            background: #fff;
            display: inline-block;
        }
        .quote-info-panel {
            padding: 10px 0;
            margin-bottom: 20px;
            max-width: 1300px;
            margin: 0 auto;
        }

        .quote-info-header {
            /*display: flex;*/
            justify-content: space-between;
            align-items: center;
            margin: 20px 0;
        }

        .edit-quote-info-btn {
            /*cursor: pointer;
            text-align: left;
            padding: 15px 15px;
            color: #34495e;
            background: #1794ff0a;
            border: none;
            border-bottom: 1px solid #eee;
            border-bottom: 1px solid #eee; */
            margin: 0 0 5px 0px;
            border-radius: 10px;
            padding: 12px 10px;
            width: 100%;
            background: #e3f2fd;
            color: #1794ff;
            font-size: 14px;
            text-align: center;
            border: 1px solid #a8d7ff;
            box-shadow: none;
            transition: all 0.3s ease;
        }




.hover, button{
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    overflow: hidden;
}
.hover:before, button:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #00000000;
    border-radius: 10px;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    pointer-events: none;
}
.edit-quote-info-btn:before{
    background: #1794ff26;
}
.hover:hover, .hover:focus, .hover:active {
    color: white;
}
.hover:hover:before, .hover:focus:before, .hover:active:before,
button:hover:before, button:focus:before, button:active:before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    background: #00000030;
}


            .edit-quote-info-btn svg {
                float: left;
            }
            .edit-quote-info-btn:hover {
                background: #1794ff;
                color: #fff;
            }
            
            .edit-quote-info-btn svg{
                max-height: 20px;
                max-width: 20px;
                margin: 0 10px 0 0;
            }
            .edit-button{
                width: 100%;
            }
                .edit-button svg{
                    max-height: 20px;
                    max-width: 20px;
                    margin: 0 10px 0 0;
                }


        .edit-quote-info-btn:disabled {
            opacity: 0.3 !important;
            cursor: not-allowed !important;
            pointer-events: none;
        }

        .edit-quote-info-btn:disabled:hover {
            background: inherit !important;
            transform: none !important;
        }

            .quote-info-details {		
                background: #f5f7fa;		
                border: 1px solid #00000014;		
                color: #0d2655;
                padding: 15px;
                border-radius: 10px;
                /*background: #fbfbfb14;
                color: #fff;*/
            }
                .quote-info-details h3{
                    margin: 0 0 20px 0;
                }
                .quote-info-item {
                    padding: 1px 0;
                    display: grid;
                    grid-template-columns: 1fr 1fr;
                }
                    .quote-info-label {
                        font-weight: 500;
                    }
                    .quote-info-value {
                        color: #8493a2 !important;
                    }
            .quote-info-label,
            .quote-info-value {
                padding: 10px 0;
            }



        /* Quote Modal Styles */
        .quote-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            display: none;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .quote-modal-content {
            background: white;
            border-radius: 15px;
            padding: 25px;
            max-width: 500px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
        }

        .quote-modal-header {
            margin-bottom: 20px;
            text-align: center;
        }

        .quote-modal-header h2 {
            margin-bottom: 5px;
        }

        .quote-modal-header p {
            color: #6c757d;
            margin: 0;
        }

        .quote-form-group {
            margin-bottom: 15px;
        }

        .quote-form-group label {
            display: block;
            font-weight: 600;
            color: #1794ff;
            margin-bottom: 5px;
        }

        .quote-form-group input,
        .quote-form-group textarea,
        .quote-form-group select {
            width: 100%;
            padding: 10px;
            border: 2px solid #ddd;
            border-radius: 5px;
            transition: border-color 0.3s ease;
        }

        .quote-form-group input:focus,
        .quote-form-group textarea:focus,
        .quote-form-group select:focus {
            outline: none;
            border-color: #1794ff;
        }

        .quote-form-group textarea {
            resize: vertical;
            min-height: 80px;
        }

        .quote-form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .quote-modal-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #e0e0e0;
        }

        .quote-modal-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            /*cursor: pointer;*/
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .quote-modal-btn.primary {
            background: #1794ff;
            color: white;
        }

        .quote-modal-btn.primary:hover {
            background: #0d7ce6;
        }

        .quote-modal-btn.secondary {
            background: #6c757d;
            color: white;
        }

        .quote-modal-btn.secondary:hover {
            background: #5a6268;
        }
        /* Style for required field indicators */
        .quote-form-group label .required-asterisk,
        .quote-form-group label:contains('*') {
            color: #e74c3c;
        }

        /* Add visual emphasis to required form fields */
        .quote-form-group input[required],
        .quote-form-group select[required],
        .quote-form-group textarea[required] {
            border-left: 3px solid #e74c3c;
        }

        .quote-form-group input[required]:focus,
        .quote-form-group select[required]:focus,
        .quote-form-group textarea[required]:focus {
            border-left: 3px solid #1794ff;
        }

        /* Form validation styling */
        .quote-form-group input:invalid,
        .quote-form-group select:invalid,
        .quote-form-group textarea:invalid {
            border-color: #e74c3c;
        }

        .quote-form-group input:valid,
        .quote-form-group select:valid,
        .quote-form-group textarea:valid {
            border-color: #299877;
        }

        /* Custom validation message styling */
        .validation-message {
            color: #e74c3c;
            font-size: 0.8rem;
            margin-top: 5px;
            display: none;
        }

        .quote-form-group.error .validation-message {
            display: block;
        }

        .quote-form-group.error input,
        .quote-form-group.error select,
        .quote-form-group.error textarea {
            border-color: #e74c3c;
        }


        .status-badge.inprogress {
            color: #ffc107;
        }

        .status-badge.quotecomplete,
        .status-badge.complete
         {
            color: #299877;
        }

        .status-badge.submittalcreated {
            color: #6f42c1;
        }

        .status-badge.closedlost {
            color: #dc3545;
        }

        .status-badge.closedwon {
            color: #28a745;
        }

        .quote-header-pricing-wrap,
        .individual-system-section {
            margin: 20px 0;
            padding: 20px;
            /* border: 1px solid #e0e0e0; */
            border-radius: 15px;
            background: white;
            box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
        }
        .quote-header-pricing-wrap,
        .system-details-grid {
            page-break-inside: avoid;
            display: grid;
            gap: 20px; 
        }
        .quote-header-pricing-wrap {
            grid-template-columns: 1fr 2fr;
        }
        .system-details-grid {
            grid-template-columns: 2fr 1fr;
        }
            /* .quote-header-pricing-wrap > :first-child { grid-column: 2; }   
            .quote-header-pricing-wrap > :last-child  { grid-column: 1; } */


        /* Quote Header Styles */
        .quote-header-section {
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            border: 1px solid #ddd;
        }

        

        .quote-header-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }
        .quote-header-item {
            align-items: center;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #e0e0e0;
            page-break-inside: avoid;
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .quote-header-item:last-child {
            border-bottom: none;
        }

        .quote-header-label {
            font-weight: 600;
            color: #495057;
        }

        .quote-header-value {
            color: #1794ff;
            font-weight: 500;
            margin: 0 0 0 5px;
        }

        .quote-notes-section {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #e0e0e0;
        }

        .quote-notes-section h4 {
            margin: 0 0 8px 0;
            font-weight: 600;
        }

        .quote-notes-section p {
            color: #34495e;
            margin: 0;
            font-style: italic;
            line-height: 1.4;
        }

        /* Multi-System PDF Styles */
        .systems-overview-section {
            padding: 20px;
            border-radius: 10px;
            border: 1px solid #ddd;
        }

        .overview-table-container {
            overflow-x: auto;
            border: 1px solid #dddddd;
            border-radius: 10px;
        }

        .systems-overview-table {
            width: 100%;
            border-collapse: collapse;
        }

        .systems-overview-table th,
        .systems-overview-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        .systems-overview-table th {
            background: #0d2655;
            color: white;
            font-weight: 600;
        }

        .systems-overview-table tbody tr:hover {
            background: #f8f9fa;
        }
            .shipping-row button:hover:before {
                border-radius: 0px;
                background: #f4f4f4;
            }
        .total-row{
            background: #f8f9fa;
        }

        .total-row td {
            border-bottom: none;
        }

        .project-summary {
            margin: 10px 0 40px 0;
            padding: 0 15px 10px 15px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            border-bottom: 1px solid #ddd;
            /*background: #ffffff;
            padding: 20px;
            border-radius: 10px;
            border: 2px solid #e0e0e0;*/
        }

            .summary-item {
                /* display: flex;
                justify-content: space-between; */
                align-items: center;
                padding: 8px 0;
            }

                .summary-label {
                    font-weight: 600;
                    color: #0d2655;
                }

        .summary-value {
            font-weight: bold;
        }


        .system-page-header {
            margin-bottom: 20px;
        }

        .system-config-section {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            border: 1px solid #ddd;
        }

        .system-visualization-section {
            text-align: center;
        }

        .system-canvas {
            border: 2px solid #34495e;
            border-radius: 8px;
            background: white;
            width: 100%;
            max-width: 300px;
            height: 200px;
        }

        .system-filter-info {
            margin-top: 15px;
            color: #666;
            background: #f8f9fa;
            padding: 10px;
            border-radius: 8px;
            text-align: left;
        }


    .hide-manual-mode {
        display: flex !important;
    }

    body[data-config-mode="manual"] .hide-manual-mode
    body[data-mode="manual"] .output-item.gapFill,
    body[data-mode="manual"] #gapDiagram,
    body[data-mode="manual"] #gapTopBtn,
    body[data-mode="manual"] #gapBottomBtn,
    body[data-mode="manual"] #gapLeftBtn,
    body[data-mode="manual"] #gapRightBtn {
        display: none !important;
    }










        @media (max-width: 768px) {
            .marketing-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            .benefits-grid {
                grid-template-columns: 1fr;
            }
            .marketing-content {
                margin: 10px;
            }
            .marketing-body {
                padding: 20px;
            }
        }








/* STYLES FOR DISABLED GAP BUTTONS */
/* .gap-button-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #03a9f4;
    color: #fff;
} */

.gap-button-active {
    opacity: 1;
    /*cursor: pointer;*/
    background: #dfe5ec;
    color: #0e2655;
}

/* Gap button grid styling */
.gap-buttons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.gap-buttons-container button {
    background: #0d2655;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    /*cursor: pointer;*/
    font-weight: 600;
    transition: all 0.3s ease;
}

.gap-buttons-container button:hover:not(.gap-button-disabled) {
    background: #0d2655;
    transform: translateY(-1px);
}










/* Load Quotes Modal Styles */
.quote-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    /*cursor: pointer;*/
    transition: all 0.3s ease;
    background: white;
}

.quote-item:hover {
    border-color: #1794ff !important;
    background-color: #f8f9fa !important;
    transform: translateY(-1px);
}

.quote-item:active {
    transform: translateY(0);
}

/* Loading states for quote list */
.quotes-loading {
    text-align: center;
    padding: 30px;
    color: #1794ff;
}

.quotes-empty {
    text-align: center;
    padding: 30px;
    color: #666;
}

.quotes-error {
    text-align: center;
    padding: 30px;
    color: #e74c3c;
}

/* Improve modal content max height on smaller screens */
@media (max-height: 600px) {
    #loadQuotesContent {
        max-height: 300px !important;
    }
}

/* Enhanced Generate Project Submittal button styling */
#generateSummaryBtn, #generateMarketingBtn{
    color: #fff;
    width: 49.5%;
    margin: 0 0 10px 0;
}
#generateSummaryBtn{
    background: #1794ff;
}  
#generateMarketingBtn {
    background: #299877;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#generateMarketingBtn:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
}

#generateMarketingBtn:disabled:hover {
    background: #6c757d !important;
    transform: none !important;
}
.disclaimer{ font-size: 12px; text-align: center; padding: 10px; }


#validationErrorModal button {
    transition: all 0.3s ease;
}

#validationErrorModal button:hover {
    transform: translateY(-1px);
}

/* Quote info completion indicator */
.quote-info-panel.incomplete {
    border-color: #e74c3c;
    background: linear-gradient(45deg, #fff, #fff5f5);
}

.quote-info-panel.complete {
    border-color: #1794ff;
    background: linear-gradient(45deg, #fff, #f0f8ff);
}

/* Tooltip for disabled submittal button */
#generateMarketingBtn[disabled]::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

#generateMarketingBtn[disabled]:hover::after {
    opacity: 1;
}






/* Collapsible quote info */

.quote-info-wrapper {
    position: relative;
    max-height: none;
    overflow: visible;
    transition: max-height 0.3s ease;
}

.quote-info-wrapper.collapsed {
    max-height: 180px;
    overflow: hidden;
}

.quote-info-wrapper.expanded {
    max-height: none;
}

.quote-info-gradient {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, #ffffff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quote-info-wrapper:not(.collapsed) .quote-info-gradient {
    opacity: 0;
}

.quote-info-toggle {
    background: #0d2655;
    border: none;
    color: #fff;
    /*cursor: pointer;*/
    padding: 10px 20px;
    margin-top: 10px;
}

    .quote-info-toggle:hover {
        color: #1794ff;
        background: #eee;
        transform: none;
    }








.page-break-avoid {
    page-break-inside: avoid;
}

.individual-system-section {
    page-break-before: always;
    page-break-inside: avoid;
}

.system-details-grid {
    page-break-inside: avoid;
}

.system-visualization-section {
    page-break-inside: avoid;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.parts-list {
    page-break-before: always;
}

.benefits-section {
    page-break-before: always;
}











/* PDF Export Specific Styles - Applied via JavaScript */
.pdf-export-mode {
    font-size: 9pt !important;
}

.pdf-export-mode .marketing-header h1 {
    font-size: 18pt !important;
}

.pdf-export-mode .quote-header-item {
    font-size: 7pt !important;
}

.pdf-export-mode .systems-overview-table th,
.pdf-export-mode .systems-overview-table td {
    font-size: 8pt !important;
}

.pdf-export-mode .config-item {
    font-size: 8pt !important;
}

.pdf-export-mode .quote-header-pricing-wrap,
.pdf-export-mode .system-details-grid {
    page-break-inside: avoid;
    display: block;
    grid-template-columns: 1fr 1fr;
    gap: 10px; 
}

.pdf-export-mode .systems-overview-section,
.pdf-export-mode .system-visualization-section {
    margin-bottom: 10px;
}
        .pdf-export-mode .marketing-body h2,
        .pdf-export-mode .marketing-body h3 {
            font-size: 14px !important;
        }
        .pdf-export-mode .systems-overview-table th,
        .pdf-export-mode .systems-overview-table td {
            padding: 6px 15px;
        }
        .pdf-export-mode .quote-header-item,
        .pdf-export-mode .config-item{
            padding: 4px 0;
        }
        .marketing-footer .quote-header-item {
            padding: 4px 0;
        }

/* Add more as needed - these will now appear in the PDF */






















.system-tab{
	background: #f5f7fa;
	border: none;
	gap: 6px;
}
    .system-tab-edit{
        font-size: 14px;
    }
    .system-tab-edit,
    .system-tab-delete{
        padding: 4px;
        border-radius: 20px;
        width: 20px;
        height: 20px;
        color: #ccc;
        font-weight:  300;	
        text-align: center;
        line-height: 1em;
        background: #fff;
        transition: all 0.3s ease;
    }

    .system-tab.active .system-tab-edit,
    .system-tab.active .system-tab-delete{
        background: #3d5a91 !important;
        color: #dfeaff;
    }
    .system-tab.active .system-tab-edit:hover{
        background: #1794ff !important;
        color: #fff;
    }
    .system-tab.active .system-tab-delete:hover{
        background: rgb(215, 0, 0) !important;
        color: #fff;
    }


    .system-tab-name[contenteditable="true"] {
        background: #ffffff;
        border: 1px solid #6079a8;
        border-radius: 3px;
        padding: 1px 3px;
        outline: none;
    }
    .system-tab.active .system-tab-name[contenteditable="true"] {
        background: #3d5a91;
        border: 1px solid #6079a8;
        border-radius: 3px;
        padding: 1px 3px;
        outline: none;
    }






      

        @media print {
            /* Hide navigation buttons for print */
            .back-button,
            .close-btn,
            .print-btn,
            .discount-controls {
                display: none !important;
            }
            
            /* Reset print styles */
            * {
                box-sizing: border-box;
            }
            
            html, body {
                margin: 0 !important;
                padding: 0 !important;
                background: white !important;
                color: black !important;
                font-size: 6pt !important;
                line-height: 1.3 !important;
            }
            
            /* Full screen layout becomes normal document flow */
            .marketing-modal {
                position: static !important;
                background: white !important;
                padding: 0 !important;
                margin: 0 !important;
                width: 100% !important;
                height: auto !important;
                overflow: visible !important;
                display: block !important;
            }
            
            .marketing-content {
                width: 100% !important;
                height: auto !important;
                margin: 0 !important;
                padding: 0 !important;
            }
            
            /* Compact header */
            .marketing-header {
                background: #0d2655 !important;
                color: white !important;
                padding: 15px !important;
                margin: 0 0 20px 0 !important;
                text-align: center !important;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
                page-break-after: avoid;
            }
            .marketing-body h3,
            .marketing-header h1 {
                font-size: 28pt !important;
                margin: 0 0 5px 0 !important;
                font-weight: bold !important;
                color: white !important;
            }
            
            .marketing-header .subtitle {
                font-size: 10pt !important;
                margin: 0 !important;
                color: white !important;
            }
            
            /* Marketing body */
            .marketing-body {
                padding: 15px !important;
                margin: 0 !important;
            }
            
            /* Quote Header Section */
            .quote-header-section {
                background: #f8f9fa !important;
                border: 1px solid #1794ff !important;
                padding: 15px !important;
                margin-bottom: 20px !important;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
                page-break-inside: avoid;
            }
            
            
            .quote-header-grid {
                display: grid !important;
                grid-template-columns: 1fr 1fr 1fr !important;
                gap: 8px !important;
                margin-bottom: 10px !important;
            }
            
            .quote-header-item {
                display: flex !important;
                justify-content: space-between !important;
                align-items: center !important;
                padding: 3px 0 !important;
                border-bottom: 1px solid #e0e0e0 !important;
                font-size: 5pt !important;
            }
            
            .quote-header-item:last-child {
                border-bottom: none !important;
            }
            
            .quote-header-label {
                font-weight: bold !important;
                color: #495057 !important;
            }
            
            .quote-header-value {
                color: #1794ff !important;
                font-weight: bold !important;
                text-align: right !important;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
            }
            
            .quote-notes-section {
                margin-top: 10px !important;
                padding-top: 10px !important;
                border-top: 1px solid #e0e0e0 !important;
            }
            
            .quote-notes-section h4 {
                color: #0d2655 !important;
                margin: 0 0 5px 0 !important;
                font-size: 8pt !important;
                font-weight: bold !important;
            }
            
            .quote-notes-section p {
                color: #34495e !important;
                margin: 0 !important;
                font-style: italic !important;
                line-height: 1.2 !important;
                font-size: 7pt !important;
            }
            
            /* Systems Overview Section */
            .systems-overview-section {
                margin-bottom: 25px !important;
                page-break-after: avoid;
            }
            
            
            
            .overview-table-container {
                margin-bottom: 15px !important;
            }
            
            .systems-overview-table {
                width: 100% !important;
                border-collapse: collapse !important;
                margin-bottom: 15px !important;
                font-size: 8pt !important;
                page-break-inside: avoid;
            }
            
            .systems-overview-table th,
            .systems-overview-table td {
                padding: 6px 8px !important;
                text-align: left !important;
                border: 1px solid #ddd !important;
                font-size: 7pt !important;
            }
            
            .systems-overview-table th {
                background: #0d2655 !important;
                color: white !important;
                font-weight: bold !important;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
            }
            
            .systems-overview-table td {
                background: white !important;
            }
            
            /* Project Summary */
            .project-summary {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                gap: 10px !important;
                background: #f8f9fa !important;
                padding: 12px !important;
                border: 1px solid #1794ff !important;
                margin-bottom: 20px !important;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
                page-break-inside: avoid;
            }
            
            .summary-item {
                /* display: flex !important;
                justify-content: space-between !important; */
                padding: 3px 0 !important;
            }
            
            .summary-label {
                font-weight: bold !important;
                color: #34495e !important;
            }
            
            .summary-value {
                font-weight: bold !important;
                color: #1794ff !important;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
            }
            
            /* Individual System Sections */
            .individual-system-section {
                margin: 20px 0 !important;
                padding: 15px !important;
                border: 1px solid #e0e0e0 !important;
                background: white !important;
                page-break-before: auto;
                page-break-inside: avoid;
                page-break-after: auto;
            }
            
            .individual-system-section:first-of-type {
                page-break-before: always;
            }
            
           
            
            /* System Details Grid - Side by side */
            .system-details-grid {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                gap: 15px !important;
                margin-bottom: 15px !important;
            }
            
            .system-config-section {
                background: #f8f9fa !important;
                padding: 10px !important;
                border: 1px solid #ddd !important;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
            }
            
            .system-config-section h3 {
                color: #0d2655 !important;
                margin-bottom: 8px !important;
                font-size: 10pt !important;
                font-weight: bold !important;
            }
            
            .config-item {
                display: flex !important;
                justify-content: space-between !important;
                padding: 2px 0 !important;
                border-bottom: 1px solid #e0e0e0 !important;
                font-size: 7pt !important;
            }
            
            .config-item:last-child {
                border-bottom: none !important;
            }
            
            .config-label {
                font-weight: bold !important;
                color: #34495e !important;
            }
            
            .config-value {
                font-weight: bold !important;
                color: #1794ff !important;
                text-align: right !important;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
            }
            
            /* System Visualization */
            .system-visualization-section {
                text-align: center !important;
            }
            
            .system-visualization-section h3 {
                color: #0d2655 !important;
                margin-bottom: 8px !important;
                font-size: 10pt !important;
                font-weight: bold !important;
            }
            
            .system-canvas {
                border: 1px solid #34495e !important;
                background: white !important;
                width: 100% !important;
                max-width: 250px !important;
                height: 160px !important;
                margin: 0 auto !important;
                display: block !important;
            }
            
            .system-filter-info {
                margin-top: 8px !important;
                font-size: 6pt !important;
                color: #666 !important;
                background: #f8f9fa !important;
                padding: 6px !important;
                text-align: left !important;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
            }
            
            /* Benefits section - Compact */
            .benefits-section {
                background: white !important;
                color: #0d2655 !important;
                padding: 15px !important;
                margin: 20px 0 !important;
                border: 1px solid #1794ff !important;
                page-break-inside: avoid;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
            }
            
            
            
            .benefits-grid {
                display: grid !important;
                grid-template-columns: 1fr 1fr 1fr !important;
                gap: 8px !important;
            }
            
            .benefit-item {
                background: #f8f9fa !important;
                padding: 8px !important;
                border: 1px solid #e0e0e0 !important;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
            }
            
            .benefit-item h3 {
                font-size: 8pt !important;
                margin: 0 0 4px 0 !important;
                color: #0d2655 !important;
                font-weight: bold !important;
            }
            
            .benefit-item p {
                font-size: 7pt !important;
                color: #34495e !important;
                margin: 0 !important;
                line-height: 1.2 !important;
            }
            
            /* Energy performance */
            .energy-performance {
                background: #1794ff !important;
                color: white !important;
                padding: 10px !important;
                margin: 15px 0 !important;
                text-align: center !important;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
                page-break-inside: avoid;
            }
            
            
            
            .energy-performance p {
                color: white !important;
                margin: 0 0 4px 0 !important;
                font-size: 8pt !important;
            }
            
            .energy-performance .highlight {
                font-size: 9pt !important;
                font-weight: bold !important;
                color: #ffd700 !important;
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
            }
            
            /* Footer */
            .marketing-footer {
                margin: 15px 0 0 0 !important;
                padding: 10px !important;
                text-align: center !important;
                color: #666 !important;
                font-size: 7pt !important;
                border-top: 1px solid #e0e0e0 !important;
                page-break-inside: avoid;
            }
            
            .marketing-footer p {
                margin: 0 0 3px 0 !important;
                line-height: 1.2 !important;
            }            

            .parts-list .config-item {
                display: grid !important;
                grid-template-columns: 2fr 1fr 1fr 1fr !important;
            }


            /* Page setup */
            @page {
                margin: 0.75in;
                size: letter;
            }
            
            /* Ensure proper page breaks */
            .systems-overview-section,
            .individual-system-section,
            .benefits-section,
            .energy-performance {
                page-break-inside: avoid;
            }
        }

        
.pdf-export-mode .discount-controls {
    display: none !important;
}


.pdf-logo {
    display: none;
    text-align: center;
    margin-bottom: 30px;
}

.pdf-export-mode .pdf-logo {
    display: block;
}
.pdf-export-mode .pdf-logo img{
    max-width: 200px; max-height: 60px;
}
























/*****   VISUAL BUILDER   *****/

.setup-panel {
    background: #ecf0f1;
    padding: 20px;
    border-bottom: 2px solid #bdc3c7;
    border-radius: 8px 8px 0 0;
}
.setup-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}
.setup-group {
    display: flex;
    flex-direction: column;
}
.setup-group label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.setup-group input {
    padding: 8px 12px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    width: 100px;
}
.setup-group input:focus {
    outline: none;
    border-color: #3498db;
}
.apply-btn {
    padding: 10px 24px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.apply-btn:hover {
    background: #229954;
}
.action-btn {
    padding: 8px 16px;
    border: 2px solid #7f8c8d;
    background: white;
    color: #7f8c8d;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.action-btn:hover {
    background: #7f8c8d;
    color: white;
}
.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.action-btn.danger {
    border-color: #e74c3c;
    color: #e74c3c;
}
.action-btn.danger:hover {
    background: #e74c3c;
    color: white;
}
.create-main {
    display: flex;
    height: 700px;
}
.create-sidebar {
    width: 300px;
    background: #34495e;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.create-sidebar h2 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.filter-palette {
    margin-bottom: 30px;
}
.accordion-section {
    margin-bottom: 10px;
}
.accordion-header {
    background: #2c3e50;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    user-select: none;
}
.accordion-header:hover {
    background: #3498db;
}
.accordion-header.active {
    background: #3498db;
}
.accordion-title {
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
    margin: 0 5px 0 0;
}
.accordion-subtitle {
    font-size: 12px;
    display: inline-block;
}
.accordion-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}
.accordion-arrow.open {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #2c3e50;
    border-radius: 0 0 4px 4px;
}
.accordion-content.open {
    max-height: 2000px;
    padding: 10px;
}
.filter-item-wrapper{
    margin-bottom: 10px;
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}
.filter-item {
    background: #34495e;
    border: 2px dashed #3498db;
    border-radius: 4px;
    cursor: grab;
    transition: all 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2px;
    margin-bottom: 5px;
}
.filter-item:hover {
    background: #3498db;
    border-style: solid;
}
.filter-item:active {
    cursor: grabbing;
}
    .filter-item-col:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
    .filter-item-col:nth-child(2) { grid-area: 1 / 2 / 2 / 3; padding: 10px 0; }

.filter-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.filter-name {
    font-weight: bold;
    font-size: 10px;
}
.filter-specs {
    font-size: 9px;
    color: #bdc3c7;
}
.qty-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}
.qty-controls input {
    width: 30px;
    padding: 4px 0px;
    border: 1px solid #3498db;
    border-radius: 4px;
    background: #2c3e50;
    color: white;
    font-size: 12px;
    text-align: center;
}
.qty-controls input:focus {
    outline: none;
    border-color: #2ecc71;
    background: #34495e;
}
.qty-controls label {
    font-size: 11px;
    color: #bdc3c7;
}
.place-btn {
    padding: 4px 5px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
}
.place-btn:hover {
    background: #229954;
}
.summary-panel {
    padding-top: 20px;
    border-top: 1px solid #2c3e50;
}
.summary-panel h3 {
    font-size: 14px;
    color: #ecf0f1;
    margin-bottom: 10px;
}
.summary-item {
    font-size: 13px;
    color: #bdc3c7;
    padding: 6px 8px;
    background: #2c3e50;
    border-radius: 4px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}
.summary-total {
    font-weight: bold;
    color: #ecf0f1;
    border-top: 1px solid #34495e;
    padding-top: 8px;
    margin-top: 8px;
}
.canvas-area {
    flex: 1;
    background: #ecf0f1;
    padding: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
    z-index: 10;
}
.zoom-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid #3498db;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.zoom-btn:hover {
    background: #3498db;
    color: white;
}
.zoom-level {
    background: white;
    border: 2px solid #95a5a6;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #7f8c8d;
    border-radius: 4px;
    min-width: 60px;
}
.canvas-scroll {
    flex: 1;
    overflow: auto;
    position: relative;
}
.canvas-wrapper {
    display: inline-block;
    position: relative;
    margin: 40px;
}
.canvas {
    background: white;
    border: 2px solid #95a5a6;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.canvas-labels {
    position: absolute;
}
.canvas-labels.top {
    top: -25px;
    left: 0;
    right: 0;
    height: 20px;
}
.canvas-labels.left {
    left: -35px;
    top: 0;
    bottom: 0;
    width: 30px;
}
.label-mark {
    position: absolute;
    font-size: 10px;
    color: #7f8c8d;
}

.instructions {
    background: #fff3cd;
    padding: 12px 15px;
    font-size: 13px;
    color: #856404;
}
.instructions strong {
    color: #856404;
}











/* ===== VISUAL BUILDER STYLES ===== */
.visual-builder-panel {
    border-radius: 15px;
    padding: 0;
    background: #fff;
}

.visual-builder-main {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
}

/* Canvas Area - Top */
.visual-canvas-area {
    background: #ecf0f1;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.visual-canvas-scroll {
    flex: 1;
    overflow: auto;
    position: relative;
    background: white;
    border-radius: 8px;
}

.visual-canvas-wrapper {
    display: inline-block;
    position: relative;
    margin: 40px;
}

.visual-canvas {
    background: white;
    border: 2px solid #95a5a6;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Canvas Labels */
.canvas-labels {
    position: absolute;
}

.canvas-labels.top {
    top: -25px;
    left: 0;
    right: 0;
    height: 20px;
}

.canvas-labels.left {
    left: -35px;
    top: 0;
    bottom: 0;
    width: 30px;
}

.label-mark {
    position: absolute;
    font-size: 10px;
    color: #7f8c8d;
}

/* Controls Area - Bottom - FULL WIDTH STACKED */
.visual-controls-area {
    background: #f5f7fa;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visual-toolbar {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.visual-tool-btn {
    padding: 8px 16px;
    border: 2px solid #7f8c8d;
    background: white;
    color: #7f8c8d;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.visual-tool-btn:hover {
    background: #7f8c8d;
    color: white;
}

.visual-tool-btn.danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.visual-tool-btn.danger:hover {
    background: #e74c3c;
    color: white;
}

/* Sidebar - Filter Palette - FULL WIDTH */
.visual-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-height: 500px;
    overflow-y: auto;
    width: 100%;
}

.visual-sidebar h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #0d2655;
}

/* Filter Palette */
.filter-palette {
    margin-bottom: 20px;
}

.accordion-section {
    margin-bottom: 10px;
}

.accordion-header {
    background: #e3e9f2;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    user-select: none;
    border-radius: 4px;
}

.accordion-header:hover {
    background: #1794ff;
    color: white;
}

.accordion-header.active {
    background: #1794ff;
    color: white;
}

.accordion-title {
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
    margin: 0 5px 0 0;
}

.accordion-subtitle {
    font-size: 11px;
    display: inline-block;
    opacity: 0.8;
}

.accordion-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.accordion-arrow.open {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8f9fa;
    border-radius: 0 0 4px 4px;
}

.accordion-content.open {
    max-height: 2000px;
    padding: 10px;
}

.filter-item-wrapper {
    margin-bottom: 10px;
    gap: 10px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.filter-item-col:nth-child(1) {
    grid-area: 1 / 1 / 2 / 2;
}

.filter-item-col:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-item {
    background: #fff;
    border: 2px dashed #1794ff;
    border-radius: 4px;
    cursor: grab;
    transition: all 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    min-height: 60px;
}

.filter-item:hover {
    background: #e3f2fd;
    border-style: solid;
}

.filter-item:active {
    cursor: grabbing;
}

.filter-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-name {
    font-weight: bold;
    font-size: 10px;
    color: #0d2655;
}

.filter-specs {
    font-size: 9px;
    color: #666;
}

.qty-controls {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.qty-controls label {
    font-size: 10px;
    color: #666;
    width: 100%;
}

.qty-controls input {
    width: 50px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #0d2655;
    font-size: 11px;
    text-align: center;
}

.qty-controls input:focus {
    outline: none;
    border-color: #1794ff;
}

.place-btn {
    padding: 5px 8px;
    background: #299877;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1;
}

.place-btn:hover {
    background: #1d7d60;
}

/* Summary Panel */
.visual-summary {
    padding: 20px;
    background: white;
    border-radius: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.visual-summary h4 {
    font-size: 14px;
    color: #0d2655;
    margin-bottom: 10px;
}

.visual-summary .summary-item {
    font-size: 12px;
    color: #666;
    padding: 5px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.visual-summary .summary-total {
    font-weight: bold;
    color: #0d2655;
    border-top: 1px solid #ddd;
    padding-top: 8px;
    margin-top: 8px;
}