2187 lines
39 KiB
CSS
2187 lines
39 KiB
CSS
/* MaterialPackages.css */
|
|
|
|
.material-packages {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: auto;
|
|
background: transparent;
|
|
position: relative;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.material-packages::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.05) 2px, transparent 2px),
|
|
radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 1px, transparent 1px);
|
|
background-size: 60px 60px, 40px 40px;
|
|
opacity: 0.7;
|
|
border-radius: 20px;
|
|
pointer-events: none; /* Tillad clicks gennem baggrunden */
|
|
}
|
|
|
|
.packages-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
padding: 8px 10px 6px 10px;
|
|
border-bottom: 1px solid rgba(0,0,0,0.06);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.packages-header h2 {
|
|
color: #2c3e50;
|
|
font-size: 18px;
|
|
margin: 0;
|
|
}
|
|
|
|
.create-package-btn {
|
|
background: linear-gradient(135deg, #27ae60, #2ecc71);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 14px;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.create-package-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
/* Form Overlay */
|
|
.form-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0,0,0,0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Create Package Form */
|
|
.create-package-form,
|
|
.create-form {
|
|
background: #ffffff;
|
|
border: 2px solid #e1e8ed;
|
|
border-radius: 12px;
|
|
padding: 30px;
|
|
margin-bottom: 30px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
|
|
max-width: 90vw;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
width: 800px;
|
|
}
|
|
|
|
.create-package-form h3 {
|
|
color: #2c3e50;
|
|
margin-bottom: 25px;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
color: #34495e;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group textarea,
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border: 2px solid #ddd;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group textarea:focus,
|
|
.form-group select:focus {
|
|
outline: none;
|
|
border-color: #3498db;
|
|
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
|
|
}
|
|
|
|
/* Materials Section */
|
|
.materials-section {
|
|
margin-top: 30px;
|
|
padding-top: 30px;
|
|
border-top: 2px solid #ecf0f1;
|
|
}
|
|
|
|
.materials-section h4 {
|
|
color: #2c3e50;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.material-form {
|
|
background: #f8f9fa;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 3fr 1.5fr 0.8fr 0.8fr 1fr 1fr 0.8fr;
|
|
gap: 10px;
|
|
margin-bottom: 10px;
|
|
align-items: start;
|
|
}
|
|
|
|
.form-row input,
|
|
.form-row select {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Material Search */
|
|
.material-search-container {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
min-width: 300px;
|
|
}
|
|
|
|
.material-search-results {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: white;
|
|
border: 2px solid #ddd;
|
|
border-top: none;
|
|
border-radius: 0 0 8px 8px;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
z-index: 1000;
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.search-result-item {
|
|
padding: 12px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.search-result-item:hover {
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
/* Editable Materials */
|
|
.material-item.editable {
|
|
border: 1px solid #e0e0e0;
|
|
padding: 15px;
|
|
margin-bottom: 10px;
|
|
border-radius: 6px;
|
|
background: #f9f9f9;
|
|
}
|
|
|
|
.material-name-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.remove-material-btn {
|
|
background: #dc3545;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 25px;
|
|
height: 25px;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.remove-material-btn:hover {
|
|
background: #c82333;
|
|
}
|
|
|
|
.editable-details {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
align-items: center;
|
|
}
|
|
|
|
.detail-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.detail-group label {
|
|
font-weight: 500;
|
|
color: #333;
|
|
}
|
|
|
|
.detail-group input {
|
|
padding: 4px 8px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
width: 80px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.detail-group input:focus {
|
|
outline: none;
|
|
border-color: #007bff;
|
|
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
}
|
|
|
|
.search-result-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.result-name {
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.result-details {
|
|
font-size: 12px;
|
|
color: #666;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.bygma-badge {
|
|
background: #ff6b35;
|
|
color: white;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.search-loading,
|
|
.no-search-results {
|
|
padding: 12px;
|
|
text-align: center;
|
|
color: #666;
|
|
font-style: italic;
|
|
}
|
|
|
|
.form-row button {
|
|
background: #3498db;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 16px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.form-row button:hover {
|
|
background: #2980b9;
|
|
}
|
|
|
|
/* Materials List/Table */
|
|
.materials-list {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.materials-list h4 {
|
|
color: #2c5530;
|
|
font-size: 1.3rem;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid #f0f0f0;
|
|
}
|
|
|
|
.material-category {
|
|
margin-bottom: 25px;
|
|
background: white;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.material-category h5 {
|
|
background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
|
|
color: #1a1a1a;
|
|
padding: 12px 15px;
|
|
margin: 0;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
border-bottom: 2px solid #c0c0c0;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
/* Excel-style materials table */
|
|
.materials-table {
|
|
background: white;
|
|
border: none;
|
|
box-shadow: none;
|
|
font-family: "Calibri", "Segoe UI", system-ui, sans-serif;
|
|
overflow: visible;
|
|
}
|
|
|
|
/* Material row - Excel style */
|
|
.material-row {
|
|
display: grid;
|
|
grid-template-columns: 3fr 1fr;
|
|
padding: 0;
|
|
border-bottom: 1px solid #d0d0d0;
|
|
align-items: center;
|
|
transition: background-color 0.1s;
|
|
background: white;
|
|
}
|
|
|
|
.material-row:nth-child(even) {
|
|
background: #fafafa;
|
|
}
|
|
|
|
.material-row:hover {
|
|
background: #f0f8ff;
|
|
}
|
|
|
|
.material-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 12px 15px;
|
|
gap: 4px;
|
|
border-right: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.material-info strong {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.material-info span {
|
|
font-size: 13px;
|
|
color: #555;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.material-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
padding: 8px 12px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.material-total {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: #000;
|
|
font-variant-numeric: tabular-nums;
|
|
min-width: 100px;
|
|
text-align: right;
|
|
margin-right: auto;
|
|
padding-right: 12px;
|
|
}
|
|
|
|
.manual-btn,
|
|
.edit-btn,
|
|
.remove-btn {
|
|
padding: 6px 12px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.manual-btn {
|
|
background: #17a2b8;
|
|
color: white;
|
|
}
|
|
|
|
.manual-btn:hover {
|
|
background: #138496;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.edit-btn {
|
|
background: #ffc107;
|
|
color: #000;
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.edit-btn:hover {
|
|
background: #e0a800;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.remove-btn {
|
|
background: #e74c3c;
|
|
color: white;
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.remove-btn:hover {
|
|
background: #c0392b;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Material edit form - also Excel styled */
|
|
.material-edit-form {
|
|
padding: 15px;
|
|
background: #fff8e1;
|
|
border: 2px solid #ffc107;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.edit-row {
|
|
display: flex;
|
|
gap: 15px;
|
|
margin-bottom: 12px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.edit-row strong {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.edit-inputs {
|
|
display: flex;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
flex: 1;
|
|
}
|
|
|
|
.input-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.input-group label {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: #555;
|
|
min-width: 70px;
|
|
}
|
|
|
|
.input-group input {
|
|
padding: 6px 10px;
|
|
border: 1px solid #c0c0c0;
|
|
border-radius: 0;
|
|
font-size: 13px;
|
|
font-family: "Calibri", "Segoe UI", system-ui, sans-serif;
|
|
background: white;
|
|
width: 100px;
|
|
}
|
|
|
|
.input-group input:focus {
|
|
outline: 2px solid #2e75b6;
|
|
outline-offset: -2px;
|
|
border-color: #2e75b6;
|
|
}
|
|
|
|
.input-group span {
|
|
font-size: 13px;
|
|
color: #555;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.edit-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: flex-end;
|
|
margin-top: 8px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.save-btn {
|
|
background: #28a745;
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 20px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.save-btn:hover:not(:disabled) {
|
|
background: #218838;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.save-btn:disabled {
|
|
background: #95a5a6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Materials summary - Excel total row style */
|
|
.materials-summary {
|
|
background: linear-gradient(180deg, #e0e0e0 0%, #d0d0d0 100%);
|
|
border-top: 2px solid #808080;
|
|
padding: 12px 15px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.summary-item {
|
|
font-size: 13px;
|
|
color: #000;
|
|
}
|
|
|
|
.summary-item.total {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: #000;
|
|
}
|
|
|
|
/* Old table styling - kept for backwards compatibility */
|
|
.old-table-header {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1.5fr 0.8fr 0.8fr 1fr 1fr 0.8fr;
|
|
background: #34495e;
|
|
color: white;
|
|
font-weight: 600;
|
|
padding: 15px 10px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.old-table-row {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1.5fr 0.8fr 0.8fr 1fr 1fr 0.8fr;
|
|
padding: 15px 10px;
|
|
gap: 10px;
|
|
border-bottom: 1px solid #ecf0f1;
|
|
align-items: center;
|
|
}
|
|
|
|
.total-price {
|
|
padding: 15px;
|
|
background: #ecf0f1;
|
|
text-align: right;
|
|
font-size: 18px;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
/* Form Actions */
|
|
.form-actions {
|
|
display: flex;
|
|
gap: 15px;
|
|
justify-content: flex-end;
|
|
margin-top: 30px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #ecf0f1;
|
|
}
|
|
|
|
.cancel-btn {
|
|
background: #95a5a6;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.cancel-btn:hover {
|
|
background: #7f8c8d;
|
|
}
|
|
|
|
.create-btn {
|
|
background: linear-gradient(135deg, #27ae60, #2ecc71);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.create-btn:hover:not(:disabled) {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.create-btn:disabled {
|
|
background: #bdc3c7;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Packages List */
|
|
.packages-list {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
/* New: Table-like list layout for Materiale Pakker
|
|
Columns: Produktnavn | Kategori | Leverandør | Enhedspris | Enhed | Beskrivelse | Handlinger
|
|
This creates a responsive CSS grid that visually matches a table while keeping existing card styles
|
|
*/
|
|
/* Make the packages table behave like the main materials table: full-width
|
|
header + many rows. Rows are grid-aligned and stretch across the content area. */
|
|
.packages-table {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
margin: 8px 0 18px 0;
|
|
display: block;
|
|
background: transparent;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.packages-table .table-header {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr 1fr 0.8fr 1fr 1.2fr 2.2fr;
|
|
font-weight: 700;
|
|
color: #2c3e50;
|
|
text-transform: none;
|
|
font-size: 13px;
|
|
padding: 10px 8px;
|
|
background: #fafafa;
|
|
border-bottom: 2px solid rgba(0,0,0,0.04);
|
|
}
|
|
|
|
/* Each package row is a grid row matching the header columns */
|
|
.packages-table .package-row-wrapper {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr 1fr 0.8fr 1fr 1.2fr 2.2fr;
|
|
gap: 12px;
|
|
align-items: center;
|
|
padding: 12px 8px;
|
|
border-bottom: 1px solid rgba(0,0,0,0.04);
|
|
background: #fff;
|
|
}
|
|
|
|
.package-cell {
|
|
padding: 0 6px;
|
|
font-size: 13px;
|
|
color: #34495e;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: normal; /* allow wrapping for long names/descriptions */
|
|
}
|
|
|
|
.package-cell.description {
|
|
white-space: normal;
|
|
max-height: 3.2em; /* approx 2 lines */
|
|
overflow: hidden;
|
|
}
|
|
|
|
.package-cell.actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
min-width: 260px;
|
|
}
|
|
|
|
/* Replace card view for wide screens when using table mode */
|
|
.packages-grid {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.packages-table {
|
|
grid-template-columns: 1fr;
|
|
padding: 8px;
|
|
}
|
|
.packages-table .table-header {
|
|
display: none;
|
|
}
|
|
.packages-table .package-cell {
|
|
white-space: normal;
|
|
padding: 8px 6px;
|
|
}
|
|
.packages-table .package-row-wrapper {
|
|
display: grid;
|
|
grid-template-columns: 1fr 0.9fr;
|
|
gap: 8px;
|
|
align-items: start;
|
|
padding: 10px 6px;
|
|
border-bottom: 1px solid rgba(0,0,0,0.04);
|
|
}
|
|
.packages-grid {
|
|
display: grid; /* fall back to card grid on small screens */
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
}
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 40px;
|
|
font-size: 18px;
|
|
color: #7f8c8d;
|
|
}
|
|
|
|
.no-packages {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: #7f8c8d;
|
|
}
|
|
|
|
.no-packages p {
|
|
font-size: 18px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.packages-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
|
gap: 25px;
|
|
}
|
|
|
|
/* Package Cards */
|
|
.package-card {
|
|
background: white;
|
|
border: 2px solid #e1e8ed;
|
|
border-radius: 12px;
|
|
padding: 25px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.package-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 15px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.package-header {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.package-header h3 {
|
|
color: #2c3e50;
|
|
margin: 0 0 8px 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.package-category {
|
|
background: #3498db;
|
|
color: white;
|
|
padding: 4px 12px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.package-info p {
|
|
color: #7f8c8d;
|
|
margin-bottom: 15px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.package-stats {
|
|
display: flex;
|
|
gap: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.package-stats span {
|
|
color: #34495e;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.package-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.details-btn {
|
|
background: #3498db;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 16px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
transition: background-color 0.3s ease;
|
|
flex: 1;
|
|
}
|
|
|
|
.details-btn:hover {
|
|
background: #2980b9;
|
|
}
|
|
|
|
.add-to-project-btn {
|
|
background: #27ae60;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 16px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
transition: background-color 0.3s ease;
|
|
flex: 1;
|
|
}
|
|
|
|
.add-to-project-btn:hover {
|
|
background: #229954;
|
|
}
|
|
|
|
/* Package Details Modal */
|
|
.package-details-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0,0,0,0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-content {
|
|
background: white;
|
|
border-radius: 12px;
|
|
width: 90%;
|
|
max-width: 800px;
|
|
max-height: 80vh;
|
|
overflow: hidden;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 25px 30px;
|
|
background: #f8f9fa;
|
|
border-bottom: 1px solid #e1e8ed;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
color: #2c3e50;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.close-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
color: #7f8c8d;
|
|
padding: 0;
|
|
width: 30px;
|
|
height: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.close-btn:hover {
|
|
background: #e74c3c;
|
|
color: white;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 30px;
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.modal-body p {
|
|
margin-bottom: 15px;
|
|
color: #34495e;
|
|
}
|
|
|
|
.modal-body h4 {
|
|
color: #2c3e50;
|
|
margin: 25px 0 15px 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.material-packages {
|
|
padding: 15px;
|
|
}
|
|
|
|
.packages-header {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.table-header,
|
|
.table-row {
|
|
grid-template-columns: 1fr;
|
|
gap: 5px;
|
|
}
|
|
|
|
.packages-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.package-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-content {
|
|
width: 95%;
|
|
margin: 20px;
|
|
}
|
|
|
|
.modal-header,
|
|
.modal-body {
|
|
padding: 20px;
|
|
}
|
|
}
|
|
|
|
/* Package Management Button Styling */
|
|
/* Make the packages display as a full-width list like the materials table */
|
|
.material-packages-section,
|
|
.material-packages {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
text-align: left;
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.manage-packages-btn {
|
|
background: linear-gradient(135deg, #3498db, #2980b9);
|
|
color: white;
|
|
border: none;
|
|
padding: 15px 30px;
|
|
border-radius: 12px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.manage-packages-btn:hover {
|
|
background: linear-gradient(135deg, #2980b9, #21618c);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
|
|
}
|
|
|
|
.packages-integration {
|
|
/* Constrain the inner integration box to a comfortable main-column width
|
|
and center it. This mirrors the search/list layout used elsewhere. */
|
|
display: block;
|
|
width: 100% !important;
|
|
max-width: 980px !important;
|
|
margin-left: auto !important;
|
|
margin-right: auto !important;
|
|
padding: 0 18px; /* small horizontal padding for breathing room */
|
|
|
|
|
|
/* Target the listing container directly - full width like materials table */
|
|
.packages-list-container,
|
|
.packages-centered-list {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: block;
|
|
text-align: left;
|
|
}
|
|
|
|
/* Package items as simple table rows */
|
|
.package-list-item {
|
|
margin: 0;
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: #ffffff;
|
|
border-radius: 0;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
/* Make the overall panel full width like materials table */
|
|
.material-packages,
|
|
.packages-centered-list {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.material-packages,
|
|
.packages-centered-list,
|
|
.packages-list-container {
|
|
width: 100%;
|
|
padding: 0;
|
|
}
|
|
.package-list-item {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.material-packages,
|
|
.packages-centered-list,
|
|
.packages-list-container {
|
|
width: 100%;
|
|
padding: 0;
|
|
}
|
|
.package-list-item {
|
|
padding: 12px 0;
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
|
|
}
|
|
70% {
|
|
box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
|
|
}
|
|
100% {
|
|
box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
|
|
}
|
|
}
|
|
|
|
/* Full-width List Layout */
|
|
.packages-list-container {
|
|
width: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.packages-centered-list {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
background: transparent;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.packages-centered-list h3 {
|
|
text-align: left;
|
|
color: #2c3e50;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
margin-bottom: 12px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid rgba(0,0,0,0.06);
|
|
background: none;
|
|
position: relative;
|
|
}
|
|
|
|
.packages-centered-list h3::after {
|
|
display: none;
|
|
}
|
|
|
|
.package-list-item {
|
|
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
|
|
border: 2px solid rgba(52, 152, 219, 0.1);
|
|
border-radius: 16px;
|
|
padding: 25px;
|
|
margin-bottom: 25px;
|
|
box-shadow: 0 8px 25px rgba(0,0,0,0.08);
|
|
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
position: relative;
|
|
opacity: 1;
|
|
}
|
|
|
|
.package-list-item:hover {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.package-main-info {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.package-title-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.package-title-section h4 {
|
|
color: #2c3e50;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
flex-grow: 1;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.package-category-tag {
|
|
background: linear-gradient(135deg, #3498db, #2980b9);
|
|
color: white;
|
|
padding: 8px 16px;
|
|
border-radius: 25px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
|
|
border: 2px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.package-description {
|
|
color: #6c757d;
|
|
font-size: 15px;
|
|
margin: 15px 0;
|
|
line-height: 1.6;
|
|
font-style: italic;
|
|
}
|
|
|
|
.package-quick-stats {
|
|
display: flex;
|
|
gap: 25px;
|
|
margin: 20px 0;
|
|
padding: 15px;
|
|
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
|
border-radius: 12px;
|
|
border-left: 4px solid #3498db;
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: #2c3e50;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
padding: 5px 10px;
|
|
background: rgba(255, 255, 255, 0.7);
|
|
border-radius: 20px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.package-list-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
justify-content: center;
|
|
padding-top: 20px;
|
|
margin-top: 20px;
|
|
border-top: 2px solid rgba(52, 152, 219, 0.1);
|
|
}
|
|
|
|
.edit-package-btn {
|
|
background: linear-gradient(135deg, #f39c12, #e67e22);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 20px;
|
|
border-radius: 25px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
|
|
min-width: 120px;
|
|
}
|
|
|
|
.edit-package-btn:hover {
|
|
background: linear-gradient(135deg, #e67e22, #d35400);
|
|
transform: translateY(-2px) scale(1.05);
|
|
box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
|
|
}
|
|
|
|
.details-btn {
|
|
background: linear-gradient(135deg, #3498db, #2980b9);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 20px;
|
|
border-radius: 25px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
|
|
min-width: 120px;
|
|
}
|
|
|
|
.details-btn:hover {
|
|
background: linear-gradient(135deg, #2980b9, #21618c);
|
|
transform: translateY(-2px) scale(1.05);
|
|
box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
|
|
}
|
|
|
|
.delete-package-btn {
|
|
background: linear-gradient(135deg, #e74c3c, #c0392b);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.delete-package-btn:hover {
|
|
background: linear-gradient(135deg, #c0392b, #a93226);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* View Package Button */
|
|
.view-package-btn {
|
|
background: linear-gradient(135deg, #17a2b8, #138496);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.view-package-btn:hover {
|
|
background: linear-gradient(135deg, #138496, #117a8b);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Smaller button styles for table actions */
|
|
.packages-table .edit-package-btn,
|
|
.packages-table .view-package-btn,
|
|
.packages-table .delete-package-btn {
|
|
padding: 6px 10px;
|
|
font-size: 11px;
|
|
border-radius: 4px;
|
|
min-width: auto;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.packages-table .edit-package-btn {
|
|
background: #f39c12;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.packages-table .edit-package-btn:hover {
|
|
background: #e67e22;
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.packages-table .view-package-btn {
|
|
background: #17a2b8;
|
|
}
|
|
|
|
.packages-table .view-package-btn:hover {
|
|
background: #138496;
|
|
transform: none;
|
|
}
|
|
|
|
.packages-table .delete-package-btn {
|
|
background: #e74c3c;
|
|
}
|
|
|
|
.packages-table .delete-package-btn:hover {
|
|
background: #c0392b;
|
|
transform: none;
|
|
}
|
|
|
|
/* Select Package Button */
|
|
.select-package-btn {
|
|
background: linear-gradient(135deg, #28a745, #20c997);
|
|
color: white;
|
|
border: none;
|
|
padding: 6px 10px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
white-space: nowrap;
|
|
min-width: 60px;
|
|
}
|
|
|
|
.select-package-btn:hover {
|
|
background: linear-gradient(135deg, #20c997, #17a2b8);
|
|
}
|
|
|
|
.select-package-btn.selected {
|
|
background: linear-gradient(135deg, #007bff, #0056b3);
|
|
box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
|
|
}
|
|
|
|
.select-package-btn.selected:hover {
|
|
background: linear-gradient(135deg, #0056b3, #004085);
|
|
}
|
|
|
|
.add-to-project-btn {
|
|
background: linear-gradient(135deg, #27ae60, #2ecc71);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 20px;
|
|
border-radius: 25px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
|
|
min-width: 120px;
|
|
}
|
|
|
|
.add-to-project-btn:hover {
|
|
background: linear-gradient(135deg, #2ecc71, #27ae60);
|
|
transform: translateY(-2px) scale(1.05);
|
|
box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
|
|
}
|
|
|
|
/* No packages and loading states */
|
|
.loading {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
font-size: 18px;
|
|
color: #6c757d;
|
|
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
|
border-radius: 16px;
|
|
margin: 20px auto;
|
|
max-width: 400px;
|
|
box-shadow: 0 8px 25px rgba(0,0,0,0.08);
|
|
}
|
|
|
|
.no-packages {
|
|
text-align: center;
|
|
padding: 80px 40px;
|
|
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
|
|
border-radius: 20px;
|
|
margin: 40px auto;
|
|
max-width: 500px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
|
border: 2px solid rgba(52, 152, 219, 0.1);
|
|
}
|
|
|
|
.no-packages p:first-child {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: #2c3e50;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.no-packages p:last-child {
|
|
font-size: 16px;
|
|
color: #6c757d;
|
|
line-height: 1.6;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Responsive Design for List */
|
|
@media (max-width: 768px) {
|
|
.packages-list-container {
|
|
padding: 20px 10px;
|
|
}
|
|
|
|
.packages-centered-list {
|
|
max-width: 100%;
|
|
padding: 20px;
|
|
margin: 0 10px;
|
|
}
|
|
|
|
.packages-centered-list h3 {
|
|
font-size: 24px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.package-title-section {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 15px;
|
|
}
|
|
|
|
.package-title-section h4 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.package-list-actions {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.edit-package-btn,
|
|
.details-btn,
|
|
.add-to-project-btn {
|
|
width: 100%;
|
|
text-align: center;
|
|
min-width: auto;
|
|
}
|
|
|
|
.package-quick-stats {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.stat-item {
|
|
justify-content: center;
|
|
}
|
|
|
|
.no-packages {
|
|
padding: 60px 30px;
|
|
margin: 20px 10px;
|
|
}
|
|
|
|
.no-packages p:first-child {
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
|
|
/* Smart Packages Section */
|
|
.smart-packages-section {
|
|
margin-top: 40px;
|
|
padding-top: 20px;
|
|
border-top: 2px solid rgba(52, 152, 219, 0.1);
|
|
position: relative;
|
|
}
|
|
|
|
.smart-packages-section h2 {
|
|
color: #2c3e50;
|
|
font-size: 20px;
|
|
margin: 0 0 20px 0;
|
|
padding: 0 10px;
|
|
font-weight: 600;
|
|
text-align: left;
|
|
border-bottom: 1px solid rgba(0,0,0,0.06);
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
/* Smart Packages Component */
|
|
.smart-packages {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.smart-filters {
|
|
display: flex;
|
|
gap: 15px;
|
|
margin-bottom: 20px;
|
|
padding: 15px;
|
|
background: rgba(52, 152, 219, 0.05);
|
|
border-radius: 8px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.smart-filters > div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.smart-filters label {
|
|
font-size: 12px;
|
|
color: #666;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.smart-filters select,
|
|
.smart-filters input {
|
|
padding: 8px 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.smart-filters button {
|
|
padding: 8px 12px;
|
|
background: linear-gradient(135deg, #3498db, #2980b9);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.smart-filters button:hover {
|
|
background: linear-gradient(135deg, #2980b9, #21618c);
|
|
}
|
|
|
|
.search-filter {
|
|
display: flex !important;
|
|
flex-direction: row !important;
|
|
gap: 5px !important;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.search-filter input {
|
|
min-width: 200px;
|
|
}
|
|
|
|
.create-smart-package-btn {
|
|
background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 16px;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.create-smart-package-btn:hover {
|
|
background: linear-gradient(135deg, #229954, #27ae60) !important;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Smart Package Edit Modal */
|
|
.modal-content {
|
|
background: white;
|
|
border-radius: 12px;
|
|
width: 90%;
|
|
max-width: 700px;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid #eee;
|
|
background: linear-gradient(135deg, #3498db, #2980b9);
|
|
color: white;
|
|
border-radius: 12px 12px 0 0;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.close-btn {
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
padding: 5px;
|
|
border-radius: 4px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.close-btn:hover {
|
|
background: rgba(255,255,255,0.2);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px;
|
|
}
|
|
|
|
.package-info {
|
|
margin-bottom: 24px;
|
|
padding: 16px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.package-info h4 {
|
|
margin: 0 0 12px 0;
|
|
color: #2c3e50;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.package-info p {
|
|
margin: 8px 0;
|
|
color: #5a6c7d;
|
|
}
|
|
|
|
.materials-info h4 {
|
|
margin: 0 0 16px 0;
|
|
color: #2c3e50;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.materials-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.material-item {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto auto;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
background: white;
|
|
border: 1px solid #e1e8ed;
|
|
border-radius: 6px;
|
|
align-items: center;
|
|
}
|
|
|
|
.material-name {
|
|
font-weight: 500;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.material-qty {
|
|
color: #7f8c8d;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.material-price {
|
|
font-weight: 600;
|
|
color: #27ae60;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
padding: 20px 24px;
|
|
border-top: 1px solid #eee;
|
|
background: #f8f9fa;
|
|
border-radius: 0 0 12px 12px;
|
|
}
|
|
|
|
.primary-btn, .secondary-btn {
|
|
padding: 10px 20px;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
border: none;
|
|
}
|
|
|
|
.primary-btn {
|
|
background: linear-gradient(135deg, #3498db, #2980b9);
|
|
color: white;
|
|
}
|
|
|
|
.primary-btn:hover {
|
|
background: linear-gradient(135deg, #2980b9, #21618c);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.secondary-btn {
|
|
background: #95a5a6;
|
|
color: white;
|
|
}
|
|
|
|
.secondary-btn:hover {
|
|
background: #7f8c8d;
|
|
}
|
|
|
|
/* Add Materials Section */
|
|
.add-materials-section {
|
|
margin-top: 24px;
|
|
padding: 16px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
border: 1px solid #e1e8ed;
|
|
}
|
|
|
|
.add-materials-section h4 {
|
|
margin: 0 0 16px 0;
|
|
color: #2c3e50;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.material-search-container {
|
|
position: relative;
|
|
}
|
|
|
|
.material-search-input {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
border: 2px solid #ddd;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.material-search-input:focus {
|
|
outline: none;
|
|
border-color: #3498db;
|
|
}
|
|
|
|
.search-loading {
|
|
padding: 8px 12px;
|
|
color: #7f8c8d;
|
|
font-style: italic;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.search-results-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: white;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
z-index: 1001;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.search-result-item {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid #f1f2f6;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.search-result-item:hover {
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.search-result-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.result-name {
|
|
font-weight: 500;
|
|
color: #2c3e50;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.result-details {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.result-category {
|
|
color: #7f8c8d;
|
|
}
|
|
|
|
.result-price {
|
|
color: #27ae60;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.no-results {
|
|
padding: 12px 16px;
|
|
color: #7f8c8d;
|
|
font-style: italic;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Installation Manual Modal Styles */
|
|
.manual-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 2000;
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.manual-modal {
|
|
background: white;
|
|
border-radius: 12px;
|
|
max-width: 900px;
|
|
width: 100%;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
|
animation: slideIn 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.manual-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 25px;
|
|
border-bottom: 2px solid #e1e8ed;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border-radius: 12px 12px 0 0;
|
|
}
|
|
|
|
.manual-header h3 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.close-modal-btn {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: none;
|
|
color: white;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
width: 35px;
|
|
height: 35px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.close-modal-btn:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.manual-content {
|
|
padding: 25px;
|
|
}
|
|
|
|
.manual-section {
|
|
margin-bottom: 25px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 1px solid #e1e8ed;
|
|
}
|
|
|
|
.manual-section:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.manual-section h4 {
|
|
color: #2c3e50;
|
|
font-size: 16px;
|
|
margin: 0 0 12px 0;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.manual-section p {
|
|
margin: 8px 0;
|
|
color: #34495e;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.time-estimate {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
}
|
|
|
|
.time-estimate h4 {
|
|
color: white;
|
|
justify-content: center;
|
|
}
|
|
|
|
.time-estimate p {
|
|
color: white;
|
|
font-size: 18px;
|
|
margin: 8px 0 0 0;
|
|
}
|
|
|
|
/* Billable and non-billable notes */
|
|
.billable-note {
|
|
display: inline-block;
|
|
background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
|
|
color: white;
|
|
padding: 4px 12px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
margin: 0 0 12px 0;
|
|
box-shadow: 0 2px 4px rgba(39, 174, 96, 0.2);
|
|
}
|
|
|
|
.non-billable-note {
|
|
display: inline-block;
|
|
background: #e9ecef;
|
|
color: #6c757d;
|
|
padding: 4px 12px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
margin: 0 0 12px 0;
|
|
font-style: italic;
|
|
}
|
|
|
|
.installation-steps {
|
|
list-style: none;
|
|
counter-reset: step-counter;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.installation-steps li {
|
|
counter-increment: step-counter;
|
|
position: relative;
|
|
padding: 12px 12px 12px 45px;
|
|
margin-bottom: 10px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
border-left: 3px solid #667eea;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.installation-steps li:hover {
|
|
background: #e9ecef;
|
|
transform: translateX(3px);
|
|
}
|
|
|
|
.installation-steps li::before {
|
|
content: counter(step-counter);
|
|
position: absolute;
|
|
left: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tools-list,
|
|
.materials-list,
|
|
.key-points-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.tools-list li,
|
|
.materials-list li,
|
|
.key-points-list li {
|
|
padding: 10px 12px;
|
|
margin-bottom: 8px;
|
|
background: #f8f9fa;
|
|
border-radius: 6px;
|
|
border-left: 3px solid #27ae60;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.tools-list li::before {
|
|
content: "🛠️";
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.materials-list li::before {
|
|
content: "📦";
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.key-points-list li::before {
|
|
content: "💡";
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.safety-section {
|
|
background: #fff3cd;
|
|
border: 2px solid #ffc107;
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
}
|
|
|
|
.safety-section h4 {
|
|
color: #856404;
|
|
}
|
|
|
|
.safety-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.safety-list li {
|
|
padding: 10px 12px;
|
|
margin-bottom: 8px;
|
|
background: white;
|
|
border-radius: 6px;
|
|
border-left: 3px solid #dc3545;
|
|
display: flex;
|
|
align-items: center;
|
|
color: #721c24;
|
|
}
|
|
|
|
.safety-list li::before {
|
|
content: "⚠️";
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.manual-source {
|
|
margin-top: 10px;
|
|
padding: 12px;
|
|
background: #e9ecef;
|
|
border-radius: 6px;
|
|
text-align: center;
|
|
}
|
|
|
|
.manual-source a {
|
|
color: #667eea;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.manual-source a:hover {
|
|
color: #764ba2;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.manual-loading-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1999;
|
|
}
|
|
|
|
.loading-spinner {
|
|
background: white;
|
|
padding: 30px 40px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
|
text-align: center;
|
|
}
|
|
|
|
.loading-spinner p {
|
|
margin: 0;
|
|
color: #2c3e50;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Manual button in material actions */
|
|
.material-actions .manual-btn {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.material-actions .manual-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
background: linear-gradient(135deg, #5568d3 0%, #6941a3 100%);
|
|
}
|
|
|
|
/* Responsive design for mobile */
|
|
@media (max-width: 768px) {
|
|
.manual-modal {
|
|
max-width: 100%;
|
|
max-height: 100vh;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.manual-header {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.manual-content {
|
|
padding: 15px;
|
|
}
|
|
|
|
.installation-steps li {
|
|
padding: 10px 10px 10px 40px;
|
|
}
|
|
} |