.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; } .woStatusClickable { cursor: pointer; user-select: none; border: none; } .woStatusClickable:hover { filter: brightness(0.9); } .woStatusCaret { font-size: 10px; margin-left: 4px; } .woStatusMenu { position: fixed; background: #fff; border: 1px solid #ccc; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.2); z-index: 99999; min-width: 170px; padding: 4px 0; } .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; } .woAssignBtn { background: none; border: 1px solid transparent; border-radius: 4px; padding: 2px 8px; font-size: 14px; color: #333; cursor: pointer; white-space: nowrap; } .woAssignBtn:hover { border-color: #ccc; background: #f5f5f5; } .woAssignMenu { position: fixed; background: #fff; border: 1px solid #ccc; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.2); z-index: 99999; min-width: 180px; max-height: 250px; overflow-y: auto; padding: 4px 0; } .woAssignOption { display: block; width: 100%; padding: 8px 14px; border: none; background: #fff; font-size: 13px; color: #333; cursor: pointer; text-align: left; } .woAssignOption:hover { background: #f0f0f0; } .woAssignOption.active { font-weight: 600; background: #e6f0ff; } .woSectionToggle { cursor: pointer; user-select: none; } .woSectionToggle:hover { color: #007bff; } .woSectionArrow { display: inline-block; margin-right: 6px; transition: transform 0.15s; font-size: 12px; } .woSectionArrow.open { transform: rotate(90deg); } .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; } .woFieldPlaceholder { color: #ccc; font-style: italic; } .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; } .btn-success { background: #28a745; color: #fff; border: none; border-radius: 4px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; } .btn-success:hover { background: #218838; } .woDispatchOverlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99999; display: flex; align-items: center; justify-content: center; } .woDispatchModal { background: #fff; border-radius: 8px; width: 560px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,0.2); } .woDispatchHeader { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; } .woDispatchHeader h3 { margin: 0; font-size: 16px; font-weight: 600; } .woDispatchClose { background: none; border: none; font-size: 22px; color: #999; cursor: pointer; } .woDispatchBody { padding: 20px; overflow-y: auto; flex: 1; } .woDispatchField { margin-bottom: 16px; } .woDispatchField label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #333; } .woDispatchSearch { width: 100%; height: 36px; padding: 6px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; margin-bottom: 8px; box-sizing: border-box; } .woDispatchSearch:focus { border-color: #66afe9; outline: none; } .woDispatchSelected { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .woDispatchSelectedChip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; background: #e6f0ff; border-radius: 12px; font-size: 12px; color: #007bff; } .woDispatchSelectedChip button { background: none; border: none; color: #007bff; cursor: pointer; font-size: 14px; padding: 0; line-height: 1; } .woDispatchFieldRow { display: flex; gap: 12px; } .woDispatchFieldHalf { flex: 1; } .woDispatchVendorList { max-height: 200px; overflow-y: auto; border: 1px solid #ddd; border-radius: 4px; } .woDispatchVendorItem { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #f0f0f0; } .woDispatchVendorItem:last-child { border-bottom: none; } .woDispatchVendorItem:hover { background: #f8f9fa; } .woDispatchVendorItem.selected { background: #e6f0ff; } .woDispatchVendorInfo { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .woDispatchVendorName { font-size: 13px; font-weight: 500; } .woDispatchVendorAddr { font-size: 11px; color: #666; } .woDispatchVendorMeta { display: flex; gap: 8px; font-size: 11px; color: #999; } .woDispatchVendorDist { font-weight: 600; color: #007bff; } .woDispatchLoading { padding: 20px; text-align: center; color: #999; font-size: 13px; } .woDispatchFooter { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px; border-top: 1px solid #eee; } .woDispatchTable { width: 100%; border-collapse: collapse; font-size: 13px; } .woDispatchTable th { text-align: left; padding: 8px 12px; font-weight: 600; color: #666; border-bottom: 1px solid #ddd; font-size: 11px; text-transform: uppercase; } .woDispatchTable td { padding: 8px 12px; border-bottom: 1px solid #eee; } .woDispatchStatus { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 500; color: #fff; background: #6c757d; } .woDispatchStatus.sent { background: #007bff; } .woDispatchStatus.acknowledged { background: #ffc107; color: #333; } .woDispatchStatus.completed { background: #28a745; } .woDispatchStatus.cancelled { background: #dc3545; } .loading { padding: 40px; text-align: center; color: #999; }