/* * CSS for WorkorderMph Table Row Highlighting */ /* Urgent: Deadline passed or less than 1 week away */ .table-hover .tt-mph-workorder-urgent:hover, .tt-mph-workorder-urgent { background-color: #fbe9e7 !important; /* Soft Red */ } /* Medium: Deadline less than 3 weeks away */ .table-hover .tt-mph-workorder-medium:hover, .tt-mph-workorder-medium { background-color: #fff8e1 !important; /* Soft Yellow */ } /* On Track: Deadline more than 3 weeks away */ .table-hover .tt-mph-workorder-ontrack:hover, .tt-mph-workorder-ontrack { background-color: #e8f5e9 !important; /* Soft Green */ } /* Irrelevant: No deadline or status makes it not applicable */ .table-hover .tt-mph-workorder-irrelevant:hover, .tt-mph-workorder-irrelevant { background-color: #fafafa !important; /* Very light grey */ } .table-hover .tt-mph-workorder-high:hover, .tt-mph-workorder-high { background-color: #f8d7da !important; /* A slightly more intense red for high priority issues */ } /* * Wohneinheit Manager - Dense Table Layout */ .wohneinheit-manager-container { min-height: 500px; max-height: 800px; overflow-y: auto; border-bottom: 1px solid #dee2e6; } .wohneinheit-manager .we-splice .we-splice-checkbox .checkmark:after { left: 5px; top: 1px; } .wohneinheit-manager .we-table { display: table; width: 100%; border-collapse: collapse; table-layout: fixed; } .wohneinheit-manager .we-header { display: table-header-group; } .wohneinheit-manager .we-header-row { display: table-row; background-color: #f8f9fa; position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 2px rgba(0,0,0,0.05); } .wohneinheit-manager .we-header .we-cell { display: table-cell; padding: 8px 6px; color: #495057; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3px; border-bottom: 2px solid #dee2e6; background-color: #f8f9fa; /* Needed for sticky */ } .wohneinheit-manager .we-row { display: table-row; border-bottom: 1px solid #e9ecef; transition: background-color 0.15s ease; } .wohneinheit-manager .we-row:hover { background-color: #f8f9fa; } .wohneinheit-manager .we-row.locked-row { background-color: #e7f5ff; } .wohneinheit-manager .we-row.locked-row:hover { background-color: #d0ebff; } .wohneinheit-manager .we-cell { display: table-cell; padding: 6px 6px; vertical-align: top; font-size: 0.85rem; } .wohneinheit-manager .we-zusatz { width: 30%; } .wohneinheit-manager .we-tuer { width: 15%; } .wohneinheit-manager .we-status { width: 20%; } .wohneinheit-manager .we-splice { width: 12%; text-align: center; } .wohneinheit-manager .we-documents { width: 12%; text-align: center; } .wohneinheit-manager .we-actions { width: 8%; text-align: center; } /* Input Sizing for Dense View */ .wohneinheit-manager .form-control-sm { height: calc(1.4em + 0.5rem + 2px); padding: 0.25rem 0.5rem; font-size: 0.8rem; } .wohneinheit-manager .we-splice .we-splice-checkbox .checkmark { width: 18px; height: 18px; } .wohneinheit-manager .badge { font-size: 0.65rem; padding: 2px 4px; } .workorder-mph-button { padding: 2px !important; } /* * Custom Checkboxes - Compact */ .custom-checkbox-item { display: flex; align-items: center; cursor: pointer; user-select: none; } .custom-checkbox-item input[type="checkbox"] { position: absolute; opacity: 0; cursor: pointer; } .custom-checkbox-item .checkmark { position: relative; height: 20px; width: 20px; background-color: #fff; border: 2px solid #adb5bd; border-radius: 4px; margin-right: 0; transition: all 0.2s ease; } .custom-checkbox-item input[type="checkbox"]:checked ~ .checkmark { background-color: #28a745; border-color: #28a745; } .custom-checkbox-item .checkmark:after { content: ""; position: absolute; display: none; left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); } .custom-checkbox-item input[type="checkbox"]:checked ~ .checkmark:after { display: block; } /* * Expanded View Layout */ .workorder-mph-expanded-wrapper { background: #f1f3f5; padding: 16px; border-radius: 8px; margin: -8px; } .workorder-mph-expanded-wrapper .row.g-2 { margin-right: -0.5rem; margin-left: -0.5rem; } .workorder-mph-expanded-wrapper .row.g-2 > .col, .workorder-mph-expanded-wrapper .row.g-2 > [class*="col-"] { padding-right: 0.5rem; padding-left: 0.5rem; } /* Card Styling */ .workorder-mph-card { background: white; border: 1px solid #dee2e6; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); margin-bottom: 16px; display: flex; flex-direction: column; } .workorder-mph-card:last-child { margin-bottom: 0; } .workorder-mph-card-header { padding: 8px 12px; background: linear-gradient(to bottom, #ffffff, #f8f9fa); border-bottom: 1px solid #e9ecef; font-weight: 600; font-size: 0.85rem; color: #495057; display: flex; align-items: center; justify-content: flex-start; /* Changed from space-between */ } .workorder-mph-card-header > div:last-child, .workorder-mph-card-header > span:last-child:not(:first-child) { margin-left: auto; } /* Drag and Drop Zone */ .mph-drop-zone { border: 2px dashed #ced4da; border-radius: 6px; padding: 16px; text-align: center; background: #f8f9fa; transition: all 0.2s ease; cursor: pointer; position: relative; min-height: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center; } .mph-drop-zone:hover, .mph-drop-zone.dragging { background: #e9ecef; border-color: #007bff; } .mph-drop-zone input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 10; } .mph-drop-zone-icon { font-size: 1.8rem; color: #adb5bd; margin-bottom: 8px; transition: color 0.2s; } .mph-drop-zone:hover .mph-drop-zone-icon { color: #007bff; } .mph-drop-zone-text { color: #495057; font-weight: 500; font-size: 0.85rem; } .mph-drop-zone-hint { color: #6c757d; font-size: 0.75rem; } .mph-file-list { margin-top: 10px; text-align: left; width: 100%; } .mph-file-item { display: flex; align-items: center; padding: 6px 10px; background: white; border: 1px solid #dee2e6; border-radius: 4px; margin-bottom: 4px; font-size: 0.85rem; } .mph-file-item:last-child { margin-bottom: 0; } .mph-file-item .remove-file { margin-left: auto; color: #dc3545; cursor: pointer; padding: 2px 6px; } .mph-file-item .remove-file:hover { background: #ffe3e3; border-radius: 4px; } .workorder-mph-card-header i { margin-right: 8px; color: #6c757d; } .workorder-mph-card-body { padding: 12px; flex: 1; } .workorder-mph-card-body-compact { padding: 8px; } /* Documentation Checkboxes - Vertical List for Side Panel */ .mph-checkbox-vertical { display: flex; flex-direction: column; gap: 4px; } .mph-checkbox-item { display: flex; align-items: center; padding: 6px 8px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 4px; cursor: pointer; transition: all 0.15s ease; } .mph-checkbox-item:hover:not(.disabled) { background: #e9ecef; border-color: #ced4da; } .mph-checkbox-item .checkmark { width: 16px; height: 16px; border-radius: 3px; margin-right: 8px; } .mph-checkbox-item .checkmark:after { left: 4px; top: 0px; width: 4px; height: 8px; } .mph-checkbox-item .label { font-size: 0.8rem; line-height: 1.2; } /* Details Stack */ .mph-details-stack { display: flex; flex-direction: column; gap: 12px; } /* Admin Review Checklist */ .mph-doc-checklist { display: flex; flex-direction: column; gap: 4px; } .mph-doc-check-item { display: flex; align-items: center; padding: 4px 8px; background: #f8f9fa; border-radius: 4px; font-size: 0.8rem; border: 1px solid transparent; } .mph-doc-check-item.has-doc { background-color: #f0fff4; border-color: #c3e6cb; } /* Journal List */ .mph-journal-list { max-height: 200px; overflow-y: auto; margin: -12px; } /* Custom Scrollbar for Journal */ .mph-journal-list::-webkit-scrollbar { width: 8px; } .mph-journal-list::-webkit-scrollbar-track { background: #f1f3f5; border-radius: 4px; } .mph-journal-list::-webkit-scrollbar-thumb { background: #adb5bd; border-radius: 4px; } .mph-journal-list::-webkit-scrollbar-thumb:hover { background: #868e96; } .mph-journal-item { padding: 8px 12px; border-bottom: 1px solid #f1f3f5; font-size: 0.8rem; } .mph-journal-item-header { font-size: 0.75rem; color: #868e96; margin-bottom: 2px; } /* File Gallery Adjustments */ .mph-docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }