shoc-frontend-new/src/pages/workorders/list/styles.css

347 lines
5.5 KiB
CSS
Raw Normal View History

/* Modal styles for Work Orders module */
.modalRoot {
position: fixed;
inset: 0;
z-index: 1000;
}
.modalScrim {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.3);
}
.modalCard {
position: relative;
margin: 10% auto;
padding: 20px;
background: #fff;
width: 400px;
}
/* Override listPage padding for this module */
.listPage {
padding: 0 !important;
background: white !important;
min-height: auto !important;
}
/* Breadcrumb */
.breadcrumb {
background: white;
padding: 10px 20px;
margin: 0;
border-bottom: 1px solid #e5e5e5;
font-size: 13px;
}
.breadcrumbItem {
color: #333;
}
.breadcrumbItem.active {
cursor: default;
font-weight: bold;
color: #00a0d1;
}
/* Search Section Styles */
.searchSection {
background: white;
padding: 20px;
margin-bottom: 0;
border-bottom: 1px solid #e5e5e5;
position: relative;
z-index: 1;
}
.searchHeader {
margin-bottom: 20px;
}
.searchHeading {
font-size: 24px;
font-weight: 300;
margin: 0 0 8px 0;
display: flex;
align-items: center;
gap: 10px;
}
.iconStack {
font-size: 0.9em;
}
.text-primary {
color: #0088cc;
}
.fa-inverse {
color: white;
}
.searchSubheading {
color: #666;
font-size: 14px;
display: block;
margin-left: 45px;
}
.searchControls {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.searchLeft {
display: flex;
align-items: center;
gap: 15px;
flex: 1;
}
.searchInputGroup {
display: flex;
align-items: center;
gap: 0;
flex: 1;
max-width: 600px;
}
.searchDropdown {
height: 38px;
padding: 6px 12px;
border: 1px solid #ccc;
border-right: none;
border-radius: 4px 0 0 4px;
background: white;
font-size: 14px;
min-width: 120px;
}
.searchInput {
height: 38px;
padding: 6px 12px;
border: 1px solid #ccc;
flex: 1;
font-size: 14px;
outline: none;
}
.searchInput:focus {
border-color: #66afe9;
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
.woSearchInput {
height: 38px;
padding: 6px 12px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
outline: none;
width: 100%;
box-sizing: border-box;
}
.woSearchInput:focus {
border-color: #66afe9;
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
.searchButton {
height: 38px;
padding: 6px 20px;
background: #0088cc;
color: white;
border: 1px solid #0088cc;
border-radius: 0 4px 4px 0;
font-size: 14px;
cursor: pointer;
white-space: nowrap;
margin-left: 20px;
}
.searchButton:hover {
background: #0077b3;
border-color: #0077b3;
}
.viewToggle {
display: flex;
border: 1px solid #0088cc;
border-radius: 4px;
overflow: hidden;
}
.viewBtn {
width: 40px;
height: 38px;
background: white;
border: none;
border-right: 1px solid #0088cc;
color: #0088cc;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.viewBtn:last-child {
border-right: none;
}
.viewBtn.active {
background: #0088cc;
color: white;
}
.viewBtn:hover:not(.active) {
background: #e6f2f8;
}
.searchRight {
display: flex;
align-items: center;
}
.paginationTop {
display: flex;
align-items: center;
gap: 5px;
background: white;
border: 1px solid #ddd;
border-radius: 4px;
padding: 0;
}
.pageBtn {
width: 35px;
height: 36px;
background: white;
border: none;
cursor: pointer;
font-size: 14px;
color: #0088cc;
display: flex;
align-items: center;
justify-content: center;
}
.pageBtn:hover:not(:disabled) {
background: #e6f2f8;
}
.pageBtn:disabled {
color: #ccc;
cursor: not-allowed;
}
.pageNumber {
min-width: 35px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
background: #0088cc;
color: white;
font-size: 14px;
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
}
.assignDropdownBtn {
background: none;
border: 1px solid transparent;
border-radius: 4px;
padding: 2px 8px;
font-size: 13px;
color: #333;
cursor: pointer;
white-space: nowrap;
}
.assignDropdownBtn:hover {
border-color: #ccc;
background: #f5f5f5;
}
.assignDropdownMenu {
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;
}
.assignDropdownOption {
display: block;
width: 100%;
padding: 8px 14px;
border: none;
background: #fff;
font-size: 13px;
color: #333;
cursor: pointer;
text-align: left;
}
.assignDropdownOption:hover {
background: #f0f0f0;
}
.assignDropdownOption.active {
font-weight: 600;
background: #e6f0ff;
}
.woStatusDot.open { background: #007bff; }
.woStatusDot.in-progress { background: #ffc107; }
.woStatusDot.on-hold { background: #fd7e14; }
.woStatusDot.done { background: #28a745; }
.woStatusDot.cancelled { background: #dc3545; }
.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 { background: #28a745; }
.woStatusBadge.cancelled { background: #dc3545; }
.woStatusClickable {
cursor: pointer;
}
.woStatusClickable:hover {
filter: brightness(0.9);
}
.woStatusCaret {
font-size: 10px;
margin-left: 4px;
}
/* Table wrapper */
.tableContainer {
background: white;
border: 1px solid #ddd;
border-radius: 0;
margin: 0;
}