/* InlineSmartPackage.css */ .inline-smart-package { max-width: 1400px; margin: 0 auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f8f9fa; min-height: 100vh; } .package-header { text-align: center; margin-bottom: 30px; padding: 20px; background: linear-gradient(135deg, #2c5530, #4a7c59); color: white; border-radius: 12px; } .package-header h2 { margin: 0 0 10px 0; font-size: 2rem; font-weight: 700; } .package-header p { margin: 0; font-size: 1.1rem; opacity: 0.9; } /* Calculation Info Box Styles */ .calculation-info-box { background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%); border: 3px solid #10b981; border-radius: 16px; padding: 30px; margin-bottom: 30px; box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15); } .calculation-info-box h3 { text-align: center; font-size: 24px; color: #1a1a1a; margin-bottom: 25px; } .package-description-box { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border: 2px solid #0284c7; border-radius: 12px; padding: 20px; margin-bottom: 25px; } .package-description-box h4 { font-size: 16px; color: #0369a1; margin-bottom: 12px; font-weight: bold; } .package-description-box ul { margin: 5px 0 0 20px; color: #6b7280; line-height: 1.8; list-style-type: disc; } .package-description-box li { margin: 4px 0; } .calculation-method { background: white; padding: 20px; border-radius: 10px; border: 2px solid #6ee7b7; margin-bottom: 20px; } .calculation-method h5 { color: #047857; font-size: 15px; margin-bottom: 10px; font-weight: bold; } .calculation-method ul { font-size: 13px; color: #374151; line-height: 1.8; margin: 0 0 0 20px; list-style-type: disc; } .calculation-method li { margin: 6px 0; } .calculation-method li strong { color: #059669; } .real-data-highlight { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); border: 3px solid #059669; border-radius: 12px; padding: 25px; margin-bottom: 30px; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2); } .real-data-highlight h4 { font-size: 18px; color: #065f46; margin-bottom: 20px; text-align: center; } .project-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin: 20px 0; } .category-item { background: white; padding: 15px; border-radius: 8px; text-align: center; border: 2px solid #6ee7b7; transition: all 0.3s; } .category-item:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3); } .category-label { display: block; font-size: 13px; color: #047857; font-weight: bold; margin-bottom: 8px; } .category-value { display: block; font-size: 16px; color: #065f46; font-weight: bold; } .info-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 25px 0; } .info-step { display: flex; align-items: flex-start; gap: 15px; background: white; padding: 20px; border-radius: 10px; border: 2px solid #e5e7eb; transition: all 0.3s; } .info-step:hover { border-color: #10b981; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15); } .step-number { flex-shrink: 0; width: 40px; height: 40px; background: linear-gradient(135deg, #10b981, #059669); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; } .step-content h4 { margin: 0 0 8px 0; font-size: 16px; color: #1f2937; } .step-content p { margin: 0; font-size: 14px; color: #6b7280; line-height: 1.5; } .calc-section { background: #f0f9ff; padding: 20px; border-radius: 8px; border: 2px solid #bae6fd; margin-top: 25px; } .calc-section h4 { color: #0369a1; margin-bottom: 15px; font-size: 16px; } .calc-details { display: flex; flex-direction: column; gap: 12px; } .calc-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #bae6fd; } .calc-label { font-size: 14px; color: #374151; } .calc-value { font-size: 16px; font-weight: bold; color: #0369a1; } .calc-result { border-bottom: none; padding-top: 15px; margin-top: 10px; border-top: 3px solid #0369a1; } .example-total { font-size: 20px; color: #047857; } .reliability-note { background: #eff6ff; padding: 15px; border-radius: 8px; border: 1px solid #bfdbfe; margin-top: 20px; } .reliability-note p { margin: 0; font-size: 13px; color: #1e40af; } .package-sections { display: grid; gap: 30px; grid-template-columns: 1fr; } .section { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); border: 1px solid #e0e0e0; } .section h3 { margin: 0 0 20px 0; font-size: 1.4rem; color: #2c5530; font-weight: 600; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; } /* Package Selector */ .package-selector { border-left: 4px solid #6f42c1; } .package-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; } .package-option { background: #f8f9fa; border: 2px solid #e0e0e0; border-radius: 8px; padding: 20px; cursor: pointer; transition: all 0.3s ease; } .package-option:hover { border-color: #6f42c1; box-shadow: 0 2px 8px rgba(111, 66, 193, 0.2); } .package-option.selected { border-color: #6f42c1; background: linear-gradient(135deg, #f8f4ff, #fff); box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3); } .package-option h4 { margin: 0 0 8px 0; color: #2c5530; font-size: 1.1rem; } .package-option p { margin: 0 0 10px 0; color: #666; font-size: 0.9rem; line-height: 1.4; } .package-info { font-size: 0.8rem; color: #6f42c1; font-weight: 500; } /* Profit Section */ .profit-section { border-left: 4px solid #28a745; } .profit-controls { background: #f8f9fa; padding: 20px; border-radius: 8px; } .profit-controls label { display: block; margin-bottom: 10px; font-weight: 600; color: #2c5530; } .profit-slider { width: 100%; height: 8px; border-radius: 5px; background: #ddd; outline: none; margin-bottom: 15px; -webkit-appearance: none; appearance: none; } .profit-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #28a745; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.2); } .profit-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #28a745; cursor: pointer; border: none; box-shadow: 0 2px 4px rgba(0,0,0,0.2); } .profit-info { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.95rem; } .profit-info span { background: white; padding: 8px 12px; border-radius: 4px; border: 1px solid #e0e0e0; } .total-highlight { background: linear-gradient(135deg, #28a745, #20c997) !important; color: white !important; font-weight: 600 !important; border: none !important; } /* Materials Section */ .materials-section { border-left: 4px solid #4a90e2; min-height: 500px; overflow: visible; } .materials-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; min-height: 400px; max-height: none; overflow: visible; } .material-item { background: #f8f9fa; border-radius: 8px; padding: 15px; border: 1px solid #e0e0e0; } .material-info { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding: 0; flex-wrap: wrap; } .material-name { flex: 1; min-width: 200px; padding: 12px 15px; border: 2px solid #ddd; border-radius: 6px; font-size: 1.1rem; font-weight: 500; background: white; color: #333; transition: border-color 0.2s ease; } .material-name:focus { outline: none; border-color: #4a90e2; box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1); } .calculation { font-size: 0.9rem; color: #666; font-style: italic; background: #f1f3f5; padding: 8px 12px; border-radius: 6px; border: 1px solid #e9ecef; white-space: nowrap; min-width: 120px; } .material-inputs { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; padding: 10px 0; min-height: 50px; } .quantity-input, .price-input { width: 100px; padding: 10px 12px; border: 2px solid #ddd; border-radius: 6px; font-size: 1rem; text-align: right; background: white; color: #333; font-weight: 500; transition: border-color 0.2s ease; } .quantity-input:focus, .price-input:focus { outline: none; border-color: #4a90e2; box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1); } .unit, .currency { font-size: 0.95rem; color: #666; white-space: nowrap; font-weight: 500; min-width: 80px; padding: 0 5px; } .total { font-weight: 700; color: #28a745; font-size: 1.1rem; margin-left: auto; background: #f8f9fa; padding: 8px 15px; border-radius: 6px; border: 1px solid #e9ecef; min-width: 120px; text-align: center; } .remove-btn { padding: 8px 12px; background: #dc3545; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 1rem; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2); } .remove-btn:hover { background: #c82333; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3); } .no-materials { text-align: center; padding: 40px; color: #666; background: #f8f9fa; border-radius: 8px; border: 2px dashed #dee2e6; } .add-material-btn { padding: 12px 24px; background: linear-gradient(135deg, #28a745, #20c997); color: white; border: none; border-radius: 6px; font-size: 1rem; cursor: pointer; transition: transform 0.2s ease; } .add-material-btn:hover { transform: translateY(-2px); } .materials-total { text-align: right; padding: 15px 0; border-top: 2px solid #f0f0f0; font-size: 1.1rem; } /* Material categorization styles */ .material-category { margin-bottom: 30px; border: 1px solid #e0e0e0; border-radius: 8px; overflow: visible; box-shadow: 0 2px 4px rgba(0,0,0,0.05); width: 100%; display: block; } .category-header { background: linear-gradient(135deg, #4a90e2, #357abd); padding: 15px 20px; margin: 0; font-size: 1.1rem; font-weight: 600; color: white; border-bottom: 1px solid #e0e0e0; display: flex; align-items: center; gap: 10px; text-shadow: 0 1px 2px rgba(0,0,0,0.1); min-height: 50px; } .category-icon { font-size: 1.2em; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2)); } .material-category .material-item { margin: 0; border: none; border-bottom: 1px solid #f0f0f0; border-radius: 0; background: white; padding: 20px; transition: background-color 0.2s ease; min-height: 120px; display: block; width: 100%; box-sizing: border-box; } .material-category .material-item:hover { background: #f8f9fa; } .material-category .material-item:last-child { border-bottom: none; } .source-badge { font-size: 0.75rem; padding: 4px 8px; border-radius: 12px; font-weight: 600; margin-left: 8px; border: 1px solid transparent; text-transform: uppercase; letter-spacing: 0.5px; } .source-badge.dynamic_database { background: #d4edda; color: #155724; border-color: #c3e6cb; } .source-badge.static { background: white; color: #6c757d; border: 1px solid #dee2e6; } /* Detailed material item styles */ .material-item-detailed { background: white; border: 2px solid #e9ecef; border-radius: 10px; margin-bottom: 20px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all 0.3s ease; } .material-item-detailed:hover { border-color: #4a90e2; box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15); } .material-header { background: linear-gradient(135deg, #f8f9fa, #e9ecef); padding: 12px 20px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #dee2e6; } .material-number { background: #4a90e2; color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; } .material-category-badge { background: #fff; padding: 6px 12px; border-radius: 20px; border: 1px solid #dee2e6; font-size: 0.85rem; font-weight: 600; color: #495057; display: flex; align-items: center; gap: 6px; } .material-content { padding: 20px; } .input-group { display: flex; flex-direction: column; gap: 5px; min-width: 150px; } .input-group label { font-size: 0.85rem; font-weight: 600; color: #495057; margin-bottom: 5px; } .total-section { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-left: auto; padding: 10px 20px; background: #f8f9fa; border-radius: 8px; border: 1px solid #e9ecef; } .total-label { font-size: 0.85rem; font-weight: 600; color: #495057; } .material-item-detailed .total { font-weight: 700; color: #28a745; font-size: 1.2rem; } /* Komplet materialer liste styling */ .complete-materials-list { display: block; width: 100%; background: #ffffff; border: 1px solid #e0e0e0; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .material-list-item { border-bottom: 1px solid #f0f0f0; padding: 20px; transition: background-color 0.2s ease; background: white; } .material-list-item:last-child { border-bottom: none; } .material-list-item:hover { background-color: #f8f9fa; } .material-header-row { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; } .material-number { background: #3498db; color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1rem; flex-shrink: 0; box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3); } .material-name-title { margin: 0; color: #2c3e50; font-size: 1.3rem; font-weight: 600; flex-grow: 1; } .material-category-label { background: #ecf0f1; color: #7f8c8d; padding: 6px 12px; border-radius: 15px; font-size: 0.85rem; font-weight: 500; border: 1px solid #bdc3c7; } .material-calculation { margin-bottom: 15px; padding: 10px 15px; background: #f8f9fa; border-left: 4px solid #3498db; color: #555; font-size: 0.95rem; border-radius: 0 6px 6px 0; } .material-calculation strong { color: #2c3e50; } .material-inputs-row { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; min-height: 50px; } .input-section { display: flex; align-items: center; gap: 8px; } .input-section label { font-weight: 600; color: #555; font-size: 0.95rem; min-width: 100px; } .material-input { width: 80px; padding: 8px 12px; border: 2px solid #ddd; border-radius: 6px; font-size: 1rem; text-align: center; background: white; transition: all 0.2s ease; } .material-input:focus { outline: none; border-color: #3498db; box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); } .input-unit { color: #777; font-size: 0.9rem; font-weight: 500; min-width: 30px; } .total-section { margin-left: auto; display: flex; align-items: center; gap: 10px; background: #e8f5e8; padding: 8px 15px; border-radius: 8px; border: 1px solid #d4edda; box-shadow: 0 1px 3px rgba(40, 167, 69, 0.2); } .total-label { font-weight: 600; color: #2d5a2d; font-size: 0.95rem; } .material-total { font-weight: bold; color: #27ae60; font-size: 1.15rem; } .remove-material-btn { background: #e74c3c; color: white; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3); } .remove-material-btn:hover { background: #c0392b; transform: scale(1.05); box-shadow: 0 3px 6px rgba(231, 76, 60, 0.4); } /* Responsiv design for materiale liste */ @media (max-width: 768px) { .material-inputs-row { flex-direction: column; align-items: stretch; gap: 15px; } .input-section { justify-content: space-between; width: 100%; } .total-section { margin-left: 0; justify-content: center; } .material-input { width: 100px; } } /* Labor Section */ .labor-section { border-left: 4px solid #fd7e14; } .drag-instruction { background: #e6f3ff; border: 1px solid #007bff; border-radius: 6px; padding: 10px 15px; margin-bottom: 15px; color: #0056b3; font-size: 0.9rem; font-style: italic; } .tasks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin-bottom: 20px; } .task-card { background: #f8f9fa; border: 2px solid #e0e0e0; border-radius: 8px; padding: 15px; transition: all 0.3s ease; cursor: grab; position: relative; } .task-card:hover { border-color: #fd7e14; box-shadow: 0 2px 8px rgba(253, 126, 20, 0.2); } .task-card.selected { border-color: #fd7e14; background: linear-gradient(135deg, #fff5f0, #fff); box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3); } .task-card.dragging { opacity: 0.5; transform: rotate(2deg); cursor: grabbing; border-color: #007bff; box-shadow: 0 8px 16px rgba(0, 123, 255, 0.4); } .task-card:active { cursor: grabbing; } .task-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .drag-handle { font-size: 1.2rem; color: #666; cursor: grab; padding: 2px; user-select: none; } .drag-handle:hover { color: #fd7e14; } .drag-handle:active { cursor: grabbing; } .task-order { background: #fd7e14; color: white; font-size: 0.8rem; font-weight: bold; padding: 4px 8px; border-radius: 50%; min-width: 24px; text-align: center; line-height: 1; } .task-header input[type="checkbox"] { transform: scale(1.2); } .task-header h4 { margin: 0; font-size: 1rem; color: #2c5530; flex-grow: 1; } .task-description { margin: 8px 0; font-size: 0.9rem; color: #666; line-height: 1.4; } .task-details { font-size: 0.85rem; color: #555; } .task-calculation { margin-top: 8px; padding: 8px; background: #e9ecef; border-radius: 4px; font-size: 0.8rem; } .task-total { font-weight: 600; color: #fd7e14; } .labor-total { text-align: right; padding: 15px 0; border-top: 2px solid #f0f0f0; font-size: 1.1rem; } /* Summary Section */ .summary-section { border-left: 4px solid #6f42c1; } .summary-breakdown { margin-bottom: 25px; } .summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 1rem; } .subtotal-row { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; margin: 10px 0; padding: 12px 0; font-weight: 600; } .profit-row { color: #28a745; font-weight: 500; } .summary-total { display: flex; justify-content: space-between; padding: 15px 0; border-top: 2px solid #6f42c1; font-size: 1.2rem; color: #6f42c1; } .package-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; } .save-package-btn, .next-btn { padding: 15px 30px; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; min-width: 180px; } .save-package-btn { background: linear-gradient(135deg, #28a745, #20c997); color: white; } .save-package-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4); } .next-btn { background: linear-gradient(135deg, #6f42c1, #5a32a3); color: white; } .next-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(111, 66, 193, 0.4); } .next-btn:disabled { background: #6c757d; cursor: not-allowed; opacity: 0.6; } /* Responsive Design */ @media (max-width: 768px) { .inline-smart-package { padding: 15px; } .package-header h2 { font-size: 1.5rem; } .material-inputs { flex-direction: column; align-items: stretch; } .tasks-grid { grid-template-columns: 1fr; } .package-actions { flex-direction: column; } .save-package-btn, .next-btn { min-width: auto; width: 100%; } } /* Animation */ @keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .section { animation: slideIn 0.6s ease-out; } .material-item, .task-card { transition: all 0.3s ease; } .material-item:hover, .task-card:hover { transform: translateY(-1px); }