shoc-frontend-new/src/pages/workorders/view/WorkOrderViewPage.css

308 lines
4.6 KiB
CSS
Raw Normal View History

.woViewPage {
padding: 0;
}
.woViewHeader {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 0 20px 20px;
border-bottom: 1px solid #e5e5e5;
margin-bottom: 20px;
}
.woViewTitle h2 {
margin: 0 0 8px 0;
font-size: 22px;
font-weight: 600;
color: #333;
}
.woStatusBadge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 500;
color: #fff;
background: #6c757d;
}
.woStatusBadge.open { background: #007bff; }
.woStatusBadge.in-progress { background: #ffc107; color: #333; }
.woStatusBadge.on-hold { background: #fd7e14; }
.woStatusBadge.done, .woStatusBadge.completed { background: #28a745; }
.woStatusBadge.cancelled { background: #dc3545; }
.woStatusDropdown {
position: relative;
display: inline-block;
}
.woStatusClickable {
cursor: pointer;
user-select: none;
}
.woStatusClickable:hover {
filter: brightness(0.9);
}
.woStatusCaret {
font-size: 10px;
margin-left: 4px;
}
.woStatusMenu {
position: absolute;
top: 100%;
left: 0;
margin-top: 4px;
background: #ffffff;
border: 1px solid #ddd;
border-radius: 6px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
z-index: 1000;
min-width: 160px;
overflow: hidden;
}
.woStatusOption {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 8px 14px;
border: none;
background: #ffffff;
font-size: 13px;
color: #333;
cursor: pointer;
text-align: left;
}
.woStatusOption:hover {
background: #f0f0f0;
}
.woStatusOption.active {
font-weight: 600;
background: #e6f0ff;
}
.woStatusDot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.woStatusDot.open { background: #007bff; }
.woStatusDot.in-progress { background: #ffc107; }
.woStatusDot.on-hold { background: #fd7e14; }
.woStatusDot.done { background: #28a745; }
.woStatusDot.cancelled { background: #dc3545; }
.woViewActions {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.woViewGrid {
padding: 0 20px;
}
.woViewSection {
margin-bottom: 24px;
}
.woViewSection h4 {
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
color: #666;
margin: 0 0 12px 0;
padding-bottom: 8px;
border-bottom: 1px solid #eee;
}
.woFieldGrid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.woField {
display: flex;
flex-direction: column;
}
.woFieldLabel {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
color: #999;
margin-bottom: 2px;
}
.woFieldValue {
font-size: 14px;
color: #333;
}
.woDescription {
font-size: 14px;
color: #333;
line-height: 1.6;
margin: 0;
white-space: pre-wrap;
}
.woTimeline {
display: flex;
flex-direction: column;
gap: 12px;
}
.woTimelineItem {
padding: 12px;
background: #f8f9fa;
border-radius: 6px;
border-left: 3px solid #007bff;
}
.woTimelineHeader {
display: flex;
justify-content: space-between;
margin-bottom: 6px;
}
.woTimelineAuthor {
font-weight: 600;
font-size: 13px;
color: #333;
}
.woTimelineDate {
font-size: 12px;
color: #999;
}
.woTimelineBody {
font-size: 13px;
color: #555;
line-height: 1.5;
}
.woTabContainer {
display: flex;
flex-direction: column;
height: 400px;
border: 1px solid #e5e5e5;
border-radius: 0 0 6px 6px;
}
.woTabScroll {
flex: 1;
overflow-y: auto;
padding: 16px;
}
.woCommentTabs {
display: flex;
gap: 0;
border-bottom: 2px solid #e5e5e5;
}
.woCommentTab {
padding: 8px 20px;
border: none;
background: none;
font-size: 13px;
font-weight: 600;
color: #999;
cursor: pointer;
border-bottom: 2px solid transparent;
margin-bottom: -2px;
}
.woCommentTab:hover {
color: #333;
}
.woCommentTab.active {
color: #007bff;
border-bottom-color: #007bff;
}
.woNoComments {
font-size: 13px;
color: #999;
padding: 20px 0;
text-align: center;
}
.woAuditItem {
border-left-color: #6c757d;
}
.woAuditField {
font-weight: 600;
color: #333;
margin-right: 8px;
}
.woAuditOld {
color: #dc3545;
text-decoration: line-through;
margin-right: 4px;
}
.woAuditArrow {
color: #999;
margin: 0 4px;
}
.woAuditNew {
color: #28a745;
font-weight: 500;
}
.woCommentInput {
display: flex;
gap: 8px;
padding: 12px 16px;
border-top: 1px solid #e5e5e5;
background: #f8f9fa;
flex-shrink: 0;
}
.woCommentTextarea {
flex: 1;
border: 1px solid #ddd;
border-radius: 4px;
padding: 8px 12px;
font-size: 13px;
font-family: inherit;
resize: none;
line-height: 1.4;
}
.woCommentTextarea:focus {
outline: none;
border-color: #007bff;
}
.woCommentSend {
align-self: flex-end;
padding: 8px 16px;
font-size: 13px;
}
.loading {
padding: 40px;
text-align: center;
color: #999;
}