Loading...
No posts found in history.
- {postHistory.map(post => (
-
-
-
{stripHtml(post.content)}
-
📅 {formatScheduledTime(post.created_at)}
-
- ❤️ {post.favourites_count}
- 🔄 {post.reblogs_count}
-
- {post.media_attachments?.length > 0 && (
-
- {post.media_attachments.map((media, idx) => (
-

- ))}
-
+ {loadingHistory ? (
+
Loading...
+ ) : postHistory.length === 0 ? (
+
No post history found.
+ ) : (
+ postHistory.map((post, idx) => (
+
+
+
{formatDate(post.createdTime)}
+
+ {post.postMethod && (
+
+ {post.postMethod === 'direct' ? '⚡ Direct' : '📅 Scheduled'}
+
)}
-
- View on Mastodon →
-
+ {post.status === 'sent' ? '✔ Sent' : '✗ Failed'}
+
- ))}
-
+
+ {post.message}
+
+ {post.lastError && (
+
+ Error: {post.lastError}
+
+ )}
+ {post.permalinkUrl && (
+
+ View on Facebook ↗
+
+ )}
+
+ ))
)}
)}
- {activeSubTab === 'details' && (
-
-
- {platform}-Specific Details
-
-
- - Max characters: {charLimit}
- - Supports hashtags: Yes
- - Image support: Yes
- - Alt text support: Yes (up to 1500 characters)
- - Recommended dimensions: 1200x675 px
- - Max image size: 5MB
-
+ {/* SETTINGS TAB */}
+ {activeSubTab === 'settings' && (
+
+
Facebook Settings
+
+
-
Confirmation Preferences
-
-
+
+ )}
+
+ {/* EDIT MODAL */}
+ {editingPost && (
+
)}
@@ -807,100 +1349,6 @@ export default function SocialMediaComposer({ platform }) {
showDontShowAgain={modalConfig.showDontShowAgain}
onDontShowAgainChange={() => handleDontShowAgainChange(modalConfig.preferenceKey)}
/>
-
-
setPreviewOpen(false)} size="lg" centered>
- setPreviewOpen(false)}>Post Preview
-
- {previewData && (
-
-
-

-
-
Your Account
-
- {previewData.scheduledTime
- ? `Scheduled for ${formatScheduledTime(previewData.scheduledTime)}`
- : 'Posting now'}
-
-
-
-
- {previewData.content}
-
- {previewData.image && (
-
-

- {previewData.altText && (
-
- Alt text: {previewData.altText}
-
- )}
-
- )}
- {previewData.crossPostTo.length > 0 && (
-
- 📤 Will also be selected for:{' '}
- {previewData.crossPostTo.join(', ')}
-
- )}
-
- Character count: {previewData.content.length} / {charLimit}
-
-
- )}
-
-
-
- {previewData?.scheduledTime ? (
-
- ) : (
-
- )}
-
-
);
}
diff --git a/src/components/Announcements/SocialMediaComposer.module.css b/src/components/Announcements/SocialMediaComposer.module.css
index ace613aced..53be78c0a4 100644
--- a/src/components/Announcements/SocialMediaComposer.module.css
+++ b/src/components/Announcements/SocialMediaComposer.module.css
@@ -3,16 +3,16 @@
/* Main Container - WHITE background in light mode */
.social-media-composer {
padding: 1.5rem;
- background: #ffffff;
+ background: #fff;
border-radius: 8px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}
.platform-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1rem;
- color: #333333;
+ color: #333;
text-transform: capitalize;
}
@@ -34,7 +34,7 @@
cursor: pointer;
font-size: 0.95rem;
font-weight: 500;
- color: #666666;
+ color: #666;
transition: all 0.2s;
white-space: nowrap;
min-width: 120px;
@@ -66,13 +66,14 @@
width: 100%;
min-height: 150px;
padding: 12px;
- border: 1px solid #cccccc;
+ border: 1px solid #ccc;
border-radius: 6px;
font-family: inherit;
font-size: 1rem;
resize: vertical;
- background: #ffffff;
- color: #000000;
+ background: #fff;
+ color: #000;
+
/* BLACK TEXT */
box-sizing: border-box;
}
@@ -80,11 +81,11 @@
.post-textarea:focus {
outline: none;
border-color: #007bff;
- box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
+ box-shadow: 0 0 0 3px rgb(0 123 255 / 10%);
}
.post-textarea::placeholder {
- color: #999999;
+ color: #999;
}
/* Upload Section */
@@ -97,15 +98,15 @@
.section-label {
font-weight: 500;
font-size: 0.9rem;
- color: #333333;
+ color: #333;
}
.file-input {
padding: 0.5rem;
- border: 1px solid #cccccc;
+ border: 1px solid #ccc;
border-radius: 4px;
- background: #ffffff;
- color: #333333;
+ background: #fff;
+ color: #333;
cursor: pointer;
}
@@ -137,7 +138,7 @@
display: flex;
align-items: center;
justify-content: center;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
transition: background 0.2s;
}
@@ -154,9 +155,10 @@
width: 100%;
padding: 8px 12px;
border-radius: 4px;
- border: 1px solid #cccccc;
- background: #ffffff;
- color: #000000;
+ border: 1px solid #ccc;
+ background: #fff;
+ color: #000;
+
/* BLACK TEXT */
font-family: inherit;
font-size: 0.9rem;
@@ -169,7 +171,7 @@
}
.alt-text-input::placeholder {
- color: #999999;
+ color: #999;
}
/* Schedule Section */
@@ -187,11 +189,12 @@
.datetime-input {
flex: 1;
padding: 0.5rem;
- border: 1px solid #cccccc;
+ border: 1px solid #ccc;
border-radius: 4px;
font-family: inherit;
- background: #ffffff;
- color: #000000;
+ background: #fff;
+ color: #000;
+
/* BLACK TEXT */
}
@@ -268,11 +271,11 @@
position: absolute;
bottom: calc(100% + 8px);
left: 0;
- background: #ffffff;
- border: 1px solid #cccccc;
+ background: #fff;
+ border: 1px solid #ccc;
border-radius: 6px;
padding: 1rem;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
z-index: 1000;
min-width: 200px;
}
@@ -283,7 +286,7 @@
gap: 0.5rem;
padding: 0.5rem;
cursor: pointer;
- color: #333333;
+ color: #333;
}
.crosspost-option:hover {
@@ -301,7 +304,7 @@
padding-top: 0.5rem;
border-top: 1px solid #e0e0e0;
font-size: 0.75rem;
- color: #666666;
+ color: #666;
}
/* Edit Banner */
@@ -338,14 +341,14 @@
.history-content,
.details-content {
padding: 1rem;
- background: #ffffff;
- color: #333333;
+ background: #fff;
+ color: #333;
}
.scheduled-content h4,
.history-content h4 {
margin-bottom: 1rem;
- color: #333333;
+ color: #333;
}
.posts-list {
@@ -369,14 +372,14 @@
}
.post-text {
- color: #333333;
+ color: #333;
margin-bottom: 0.5rem;
line-height: 1.5;
}
.post-meta {
font-size: 0.85rem;
- color: #666666;
+ color: #666;
margin-bottom: 0.5rem;
}
@@ -437,7 +440,7 @@
gap: 1rem;
margin: 0.5rem 0;
font-size: 0.9rem;
- color: #666666;
+ color: #666;
}
.post-media {
@@ -460,23 +463,23 @@
/* Details Content */
.details-content {
- color: #333333;
+ color: #333;
}
.details-content ul {
padding-left: 1.5rem;
line-height: 1.8;
- color: #333333;
+ color: #333;
}
.details-content strong {
- color: #333333;
+ color: #333;
}
/* Preview Modal Content */
.preview-container {
padding: 1rem;
- background: #ffffff;
+ background: #fff;
}
.preview-header {
@@ -492,11 +495,11 @@
border-radius: 6px;
white-space: pre-wrap;
line-height: 1.6;
- color: #333333;
+ color: #333;
}
/* Mobile Responsiveness */
-@media (max-width: 768px) {
+@media (width <= 768px) {
.tabs-container {
overflow-x: auto;
}
@@ -551,7 +554,7 @@
}
}
-@media (max-width: 480px) {
+@media (width <= 480px) {
.social-media-composer {
padding: 1rem;
}
@@ -588,7 +591,7 @@
}
.tabs-container {
- border-bottom-color: #444444;
+ border-bottom-color: #444;
}
.tab-button {
@@ -608,12 +611,12 @@
.post-textarea {
background: #2a2a2a;
- border-color: #444444;
+ border-color: #444;
color: #e0e0e0;
}
.post-textarea::placeholder {
- color: #666666;
+ color: #666;
}
.section-label {
@@ -622,29 +625,29 @@
.file-input {
background: #2a2a2a;
- border-color: #444444;
+ border-color: #444;
color: #e0e0e0;
}
.alt-text-input {
background: #2a2a2a;
- border-color: #444444;
+ border-color: #444;
color: #e0e0e0;
}
.alt-text-input::placeholder {
- color: #666666;
+ color: #666;
}
.datetime-input {
background: #2a2a2a;
- border-color: #444444;
+ border-color: #444;
color: #e0e0e0;
}
.crosspost-dropdown {
background: #2a2a2a;
- border-color: #444444;
+ border-color: #444;
}
.crosspost-option {
@@ -652,12 +655,12 @@
}
.crosspost-option:hover {
- background: #333333;
+ background: #333;
}
.crosspost-note {
color: #a0a0a0;
- border-top-color: #444444;
+ border-top-color: #444;
}
.edit-banner {
@@ -680,7 +683,7 @@
.post-card {
background: #2a2a2a;
- border-color: #444444;
+ border-color: #444;
}
.post-text {
@@ -713,7 +716,7 @@
.preview-content {
background: #2a2a2a;
- border-color: #444444;
+ border-color: #444;
color: #e0e0e0;
}
}
diff --git a/src/components/Announcements/platforms/email/index.jsx b/src/components/Announcements/platforms/email/index.jsx
index 4adaf446be..55835ea1c0 100644
--- a/src/components/Announcements/platforms/email/index.jsx
+++ b/src/components/Announcements/platforms/email/index.jsx
@@ -106,10 +106,22 @@ export default function EmailPanel({ title, initialEmail }) {
selector: 'Editor#email-editor',
height: 500,
plugins: [
- 'advlist autolink lists link image',
- 'charmap print preview anchor help',
- 'searchreplace visualblocks code',
- 'insertdatetime media table wordcount',
+ 'advlist',
+ 'autolink',
+ 'lists',
+ 'link',
+ 'image',
+ 'charmap',
+ 'preview',
+ 'anchor',
+ 'help',
+ 'searchreplace',
+ 'visualblocks',
+ 'code',
+ 'insertdatetime',
+ 'media',
+ 'table',
+ 'wordcount',
],
menubar: false,
branding: false,
diff --git a/src/components/Announcements/platforms/slashdot/Slashdot.module.css b/src/components/Announcements/platforms/slashdot/Slashdot.module.css
index 8046d7e059..e731f371d1 100644
--- a/src/components/Announcements/platforms/slashdot/Slashdot.module.css
+++ b/src/components/Announcements/platforms/slashdot/Slashdot.module.css
@@ -48,7 +48,7 @@
background: #d7ecff;
color: #0d6efd;
border-color: #99c8ff;
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
+ box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%);
}
.slashdot-autoposter.dark .slashdot-subtab {
@@ -68,7 +68,7 @@
border: 1px solid #d6dde7;
border-radius: 12px;
padding: 20px 22px;
- box-shadow: 0 10px 24px rgba(15, 37, 80, 0.08);
+ box-shadow: 0 10px 24px rgb(15 37 80 / 8%);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@@ -80,7 +80,7 @@
.slashdot-card.invalid {
border-color: #d9534f;
- box-shadow: 0 0 0 1px rgba(217, 83, 79, 0.18);
+ box-shadow: 0 0 0 1px rgb(217 83 79 / 18%);
}
.slashdot-autoposter.dark .slashdot-card.invalid {
@@ -114,6 +114,7 @@
.slashdot-autoposter.dark .slashdot-field__meta {
color: #9aa9c6;
}
+
.slashdot-field__required {
color: #d9534f;
margin-left: 4px;
@@ -122,6 +123,7 @@
.slashdot-autoposter.dark .slashdot-field__required {
color: #ff9384;
}
+
.slashdot-field__input {
width: 100%;
border: 1px solid #c7d1e5;
@@ -141,13 +143,14 @@
.slashdot-field__input--invalid {
border-color: #d9534f;
- box-shadow: 0 0 0 1px rgba(217, 83, 79, 0.2);
+ box-shadow: 0 0 0 1px rgb(217 83 79 / 20%);
}
.slashdot-autoposter.dark .slashdot-field__input--invalid {
border-color: #ff9384;
- box-shadow: 0 0 0 1px rgba(255, 147, 132, 0.3);
+ box-shadow: 0 0 0 1px rgb(255 147 132 / 30%);
}
+
.slashdot-field__textarea {
resize: vertical;
min-height: 110px;
@@ -201,7 +204,7 @@
}
.slashdot-autoposter.dark .slashdot-chip {
- background: rgba(13, 110, 253, 0.22);
+ background: rgb(13 110 253 / 22%);
color: #cfe0ff;
}
@@ -251,7 +254,7 @@
.slashdot-preview__body {
white-space: pre-wrap;
- font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
+ font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
monospace;
background: #f8f9fb;
border: 1px solid #d6dde7;
@@ -365,12 +368,12 @@
.slashdot-saved__item--active {
border-color: #0d6efd;
- box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.24);
+ box-shadow: 0 0 0 1px rgb(13 110 253 / 24%);
}
.slashdot-autoposter.dark .slashdot-saved__item--active {
border-color: #4785ff;
- box-shadow: 0 0 0 1px rgba(71, 133, 255, 0.32);
+ box-shadow: 0 0 0 1px rgb(71 133 255 / 32%);
}
.slashdot-saved__header {
@@ -416,13 +419,13 @@
gap: 10px;
}
-@media (max-width: 960px) {
+@media (width <= 960px) {
.slashdot-scheduler__grid {
grid-template-columns: 1fr;
}
}
-@media (max-width: 640px) {
+@media (width <= 640px) {
.slashdot-autoposter {
gap: 18px;
}
diff --git a/src/components/Announcements/tinyMCE.jsx b/src/components/Announcements/tinyMCE.jsx
index 9d3d793b73..a07a1b5caa 100644
--- a/src/components/Announcements/tinyMCE.jsx
+++ b/src/components/Announcements/tinyMCE.jsx
@@ -34,9 +34,23 @@ export default function TinyMCEEditor() {
height: 500,
menubar: false,
plugins: [
- 'mentions advlist autolink lists link image charmap print preview anchor',
- 'searchreplace visualblocks code fullscreen',
- 'insertdatetime media code help wordcount',
+ 'mentions',
+ 'advlist',
+ 'autolink',
+ 'lists',
+ 'link',
+ 'image',
+ 'charmap',
+ 'preview',
+ 'anchor',
+ 'searchreplace',
+ 'visualblocks',
+ 'code',
+ 'fullscreen',
+ 'insertdatetime',
+ 'media',
+ 'help',
+ 'wordcount',
],
toolbar:
'undo redo | formatselect | ' +
diff --git a/src/components/ApplicantSourceDonutChart/ApplicantSourceDonutChart.module.css b/src/components/ApplicantSourceDonutChart/ApplicantSourceDonutChart.module.css
index 7208b34309..37b14aed5c 100644
--- a/src/components/ApplicantSourceDonutChart/ApplicantSourceDonutChart.module.css
+++ b/src/components/ApplicantSourceDonutChart/ApplicantSourceDonutChart.module.css
@@ -46,7 +46,7 @@
.darkContainer {
background-color: #111827;
border-radius: 12px;
- box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.08);
+ box-shadow: 0 0 0 1px rgb(148 163 184 / 8%);
padding-bottom: 2rem;
}
@@ -65,14 +65,14 @@
border-color: #3b82f6 !important;
}
-@media (max-width: 1024px) {
+@media (width <= 1024px) {
.applicantChartContainer {
padding: 1.5rem 1.75rem;
max-width: 100%;
}
}
-@media (max-width: 768px) {
+@media (width <= 768px) {
.page {
padding: 1.5rem 0.75rem;
}
@@ -111,7 +111,7 @@
background-color: #1e293b !important;
border: 1px solid #475569 !important;
border-radius: 6px !important;
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2) !important;
+ box-shadow: 0 4px 6px -1px rgb(0 0 0 / 30%), 0 2px 4px -1px rgb(0 0 0 / 20%) !important;
}
.dark :global(.recharts-tooltip-label) {
diff --git a/src/components/ApplicantVolunteerRatio/ApplicantVolunteerRatio.module.css b/src/components/ApplicantVolunteerRatio/ApplicantVolunteerRatio.module.css
index 7893a740d3..d5d5a566a6 100644
--- a/src/components/ApplicantVolunteerRatio/ApplicantVolunteerRatio.module.css
+++ b/src/components/ApplicantVolunteerRatio/ApplicantVolunteerRatio.module.css
@@ -56,7 +56,7 @@
/* Validation Error */
.validationError {
- color: #ffcc00;
+ color: #fc0;
margin-top: 8px;
font-weight: bold;
}
@@ -88,7 +88,7 @@
.dark :global(.react-datepicker__input-container input) {
background-color: #0b2434;
border-color: #2b4a6b;
- color: #ffffff;
+ color: #fff;
}
.dark :global(.react-datepicker) {
@@ -104,100 +104,100 @@
.dark :global(.react-datepicker__current-month),
.dark :global(.react-datepicker__day-name),
.dark :global(.react-datepicker__day) {
- color: #ffffff;
+ color: #fff;
}
.dark :global(.react-datepicker__day:hover) {
- background-color: rgba(255, 255, 255, 0.1);
+ background-color: rgb(255 255 255 / 10%);
}
.dark :global(.react-datepicker__day--selected) {
- background-color: rgba(67, 160, 71, 0.22);
+ background-color: rgb(67 160 71 / 22%);
}
/* React Select Dark Mode Overrides */
.dark :global(.custom-select__control) {
background-color: #0b2434 !important;
border-color: #2b4a6b !important;
- color: #ffffff !important;
+ color: #fff !important;
}
.dark :global(.custom-select__menu) {
background-color: #0b2434 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
/* Target menu when it's portaled to body in dark mode */
:global(.dark-mode-body) :global(.custom-select__menu) {
background-color: #0b2434 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
.dark :global(.custom-select__option) {
background-color: transparent !important;
- color: #ffffff !important;
+ color: #fff !important;
}
:global(.dark-mode-body) :global(.custom-select__option) {
background-color: transparent !important;
- color: #ffffff !important;
+ color: #fff !important;
}
.dark :global(.custom-select__option--is-focused) {
- background-color: rgba(255, 255, 255, 0.06) !important;
+ background-color: rgb(255 255 255 / 6%) !important;
}
:global(.dark-mode-body) :global(.custom-select__option--is-focused) {
- background-color: rgba(255, 255, 255, 0.06) !important;
+ background-color: rgb(255 255 255 / 6%) !important;
}
.dark :global(.custom-select__option--is-selected) {
- background-color: rgba(67, 160, 71, 0.22) !important;
+ background-color: rgb(67 160 71 / 22%) !important;
}
:global(.dark-mode-body) :global(.custom-select__option--is-selected) {
- background-color: rgba(67, 160, 71, 0.22) !important;
+ background-color: rgb(67 160 71 / 22%) !important;
}
.dark :global(.custom-select__multi-value) {
- background-color: rgba(255, 255, 255, 0.06) !important;
+ background-color: rgb(255 255 255 / 6%) !important;
}
.dark :global(.custom-select__multi-value__label) {
- color: #ffffff !important;
+ color: #fff !important;
}
.dark :global(.custom-select__multi-value__remove) {
- color: #ffffff !important;
+ color: #fff !important;
}
.dark :global(.custom-select__multi-value__remove:hover) {
- background-color: rgba(255, 255, 255, 0.1) !important;
- color: #ffffff !important;
+ background-color: rgb(255 255 255 / 10%) !important;
+ color: #fff !important;
}
.dark :global(.custom-select__placeholder) {
- color: rgba(224, 224, 224, 0.9) !important;
+ color: rgb(224 224 224 / 90%) !important;
}
.dark :global(.custom-select__single-value) {
- color: #ffffff !important;
+ color: #fff !important;
}
.dark :global(.custom-select__input-container) {
- color: #ffffff !important;
+ color: #fff !important;
}
.dark :global(.custom-select__dropdown-indicator) {
- color: #ffffff !important;
+ color: #fff !important;
}
.dark :global(.custom-select__clear-indicator) {
- color: #ffffff !important;
+ color: #fff !important;
}
.dark :global(.custom-select__indicator-separator) {
- background-color: rgba(255, 255, 255, 0.06) !important;
+ background-color: rgb(255 255 255 / 6%) !important;
}
/* Body Dark Mode */
diff --git a/src/components/ApplicantsChart/ApplicantsChart.module.css b/src/components/ApplicantsChart/ApplicantsChart.module.css
index 23c64f4cdf..da17a0df14 100644
--- a/src/components/ApplicantsChart/ApplicantsChart.module.css
+++ b/src/components/ApplicantsChart/ApplicantsChart.module.css
@@ -23,21 +23,21 @@
.text-light .hgn-datepicker-dark-calendar .react-datepicker__day:hover {
background-color: #374151 !important;
- color: #ffffff !important;
+ color: #fff !important;
border-radius: 0 !important;
}
.text-light .hgn-datepicker-dark-calendar .react-datepicker__day--selected,
.text-light .hgn-datepicker-dark-calendar .react-datepicker__day--keyboard-selected {
background-color: #2563eb !important;
- color: #ffffff !important;
+ color: #fff !important;
border-radius: 0 !important;
}
.text-light .hgn-datepicker-dark-calendar .react-datepicker__day--in-range,
.text-light .hgn-datepicker-dark-calendar .react-datepicker__day--in-selecting-range {
background-color: #1e3a8a !important;
- color: #ffffff !important;
+ color: #fff !important;
border-radius: 0 !important;
}
@@ -91,6 +91,7 @@
color: #9ca3af !important;
opacity: 1 !important;
}
+
.disabledDay {
color: #9ca3af !important; /* gray */
pointer-events: none;
@@ -154,42 +155,42 @@
/* Custom tooltip styles - ensure text is always visible */
.customTooltip {
- background-color: #ffffff !important;
- color: #000000 !important;
+ background-color: #fff !important;
+ color: #000 !important;
}
.customTooltip * {
- color: #000000 !important;
+ color: #000 !important;
}
.tooltipAgeGroup {
- color: #000000 !important;
+ color: #000 !important;
font-weight: 600 !important;
}
.tooltipApplicants {
- color: #000000 !important;
+ color: #000 !important;
}
.tooltipApplicants strong {
- color: #000000 !important;
+ color: #000 !important;
font-weight: 700 !important;
}
.tooltipChange {
- color: #000000 !important;
+ color: #000 !important;
}
/* Global tooltip styles to override any parent dark mode styles */
:global(.recharts-tooltip-wrapper) .customTooltip,
:global(.recharts-tooltip-wrapper) .customTooltip * {
- color: #000000 !important;
- background-color: #ffffff !important;
+ color: #000 !important;
+ background-color: #fff !important;
}
/* Override text-light class for tooltip */
:global(.text-light) :global(.recharts-tooltip-wrapper) .customTooltip,
:global(.text-light) :global(.recharts-tooltip-wrapper) .customTooltip * {
- color: #000000 !important;
- background-color: #ffffff !important;
+ color: #000 !important;
+ background-color: #fff !important;
}
diff --git a/src/components/AttendanceSystem/AttendanceNoShowCharts.module.css b/src/components/AttendanceSystem/AttendanceNoShowCharts.module.css
index 0059274f30..a01c542eef 100644
--- a/src/components/AttendanceSystem/AttendanceNoShowCharts.module.css
+++ b/src/components/AttendanceSystem/AttendanceNoShowCharts.module.css
@@ -90,14 +90,14 @@
border: 1px solid #d1d5db;
border-radius: 6px;
background-color: white;
- box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
outline: none;
}
.card {
background-color: white;
border-radius: 8px;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
padding: 24px;
margin-bottom: 24px;
}
@@ -105,7 +105,7 @@
.chartsCard {
background-color: white;
border-radius: 8px;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
padding: 24px;
}
@@ -241,7 +241,7 @@
.upcomingChartsCard {
background-color: white;
border-radius: 8px;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
padding: 24px;
text-align: center;
}
@@ -252,23 +252,26 @@
margin: 0;
}
-@media (min-width: 768px) {
+@media (width >= 768px) {
.chartsContainer {
flex-direction: row;
justify-content: space-between;
}
+
.chartWrapper {
width: 48%;
}
}
-@media (max-width: 480px) {
+@media (width <= 480px) {
.pageTitle {
font-size: 20px;
}
+
.cardTitle {
font-size: 20px;
}
+
.chartSectionTitle {
font-size: 16px;
}
@@ -304,7 +307,7 @@
:global(.dark-mode) .upcomingChartsCard,
:global(.dark-mode) .upcomingContainer {
background-color: #1f2937; /* Darker card background */
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
+ box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
color: #f9fafb;
}
diff --git a/src/components/AutoPoster/TruthSocialAutoPoster.module.css b/src/components/AutoPoster/TruthSocialAutoPoster.module.css
index f48828b85d..dfebd013ce 100644
--- a/src/components/AutoPoster/TruthSocialAutoPoster.module.css
+++ b/src/components/AutoPoster/TruthSocialAutoPoster.module.css
@@ -378,10 +378,10 @@
bottom: 100%;
left: 0;
margin-bottom: 4px;
- background-color: #ffffff;
+ background-color: #fff;
border: 1px solid #d1d5db;
border-radius: 6px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
z-index: 100;
min-width: 150px;
}
@@ -437,7 +437,7 @@
font-size: 14px;
line-height: 1.5;
margin-bottom: 10px;
- word-wrap: break-word;
+ overflow-wrap: break-word;
}
.postImage {
@@ -540,7 +540,7 @@
}
.darkMode .scheduleNote {
- background-color: rgba(245, 158, 11, 0.15);
+ background-color: rgb(245 158 11 / 15%);
border-color: #f59e0b;
color: #fbbf24;
}
@@ -558,7 +558,7 @@
}
.darkMode .scheduledNote {
- background-color: rgba(245, 158, 11, 0.15);
+ background-color: rgb(245 158 11 / 15%);
border-color: #f59e0b;
color: #fbbf24;
}
@@ -583,13 +583,13 @@
.settingsTitle {
font-size: 16px;
font-weight: 600;
- margin: 0 0 8px 0;
+ margin: 0 0 8px;
}
.settingsDescription {
font-size: 14px;
color: #6b7280;
- margin: 0 0 16px 0;
+ margin: 0 0 16px;
}
.tokenInputWrapper {
@@ -663,11 +663,8 @@
/* Confirmation Modal */
.modalOverlay {
position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.5);
+ inset: 0;
+ background-color: rgb(0 0 0 / 50%);
display: flex;
align-items: center;
justify-content: center;
@@ -675,12 +672,12 @@
}
.modalContent {
- background-color: #ffffff;
+ background-color: #fff;
border-radius: 12px;
padding: 24px;
max-width: 400px;
width: 90%;
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
+ box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
}
.darkMode .modalContent {
@@ -691,13 +688,13 @@
.modalTitle {
font-size: 18px;
font-weight: 600;
- margin: 0 0 12px 0;
+ margin: 0 0 12px;
}
.modalMessage {
font-size: 14px;
color: #6b7280;
- margin: 0 0 20px 0;
+ margin: 0 0 20px;
}
.modalActions {
@@ -764,12 +761,12 @@
/* Edit Modal */
.editModalContent {
- background-color: #ffffff;
+ background-color: #fff;
border-radius: 12px;
padding: 24px;
max-width: 500px;
width: 90%;
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
+ box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
}
.darkMode .editModalContent {
@@ -780,7 +777,7 @@
.editModalTitle {
font-size: 18px;
font-weight: 600;
- margin: 0 0 20px 0;
+ margin: 0 0 20px;
}
.editFieldGroup {
@@ -906,7 +903,7 @@
}
/* Responsive */
-@media (max-width: 600px) {
+@media (width <= 600px) {
.rowGroup {
flex-direction: column;
gap: 12px;
@@ -927,6 +924,7 @@
.editRow {
flex-direction: column;
}
+
.visuallyHidden {
position: absolute;
width: 1px;
diff --git a/src/components/BMDashboard/AddTeamMember/AddTeamMember.module.css b/src/components/BMDashboard/AddTeamMember/AddTeamMember.module.css
index 72f0dc8190..4a0f1fd4fa 100644
--- a/src/components/BMDashboard/AddTeamMember/AddTeamMember.module.css
+++ b/src/components/BMDashboard/AddTeamMember/AddTeamMember.module.css
@@ -138,7 +138,7 @@
border-radius: 5px;
font-size: 16px;
cursor: pointer;
- margin: 0px 50px;
+ margin: 0 50px;
}
.submitButton {
diff --git a/src/components/BMDashboard/BMDashboard.module.css b/src/components/BMDashboard/BMDashboard.module.css
index da2f47fea0..c33e529fd2 100644
--- a/src/components/BMDashboard/BMDashboard.module.css
+++ b/src/components/BMDashboard/BMDashboard.module.css
@@ -8,7 +8,7 @@
font-size: 1.5em;
text-align: center;
margin-top: 2em;
- color:#ffffff
+ color:#fff
}
.darkBmDashboardMain{
@@ -17,7 +17,7 @@
/* Light Mode Text Visibility - Ensure Dark Text */
.bm-dashboard-container:not(.bm-dashboard-dark) * {
- color: #333333 !important;
+ color: #333 !important;
}
.bm-dashboard-container:not(.bm-dashboard-dark) h1,
@@ -26,7 +26,7 @@
.bm-dashboard-container:not(.bm-dashboard-dark) h4,
.bm-dashboard-container:not(.bm-dashboard-dark) h5,
.bm-dashboard-container:not(.bm-dashboard-dark) h6 {
- color: #333333 !important;
+ color: #333 !important;
text-shadow: none !important;
font-weight: 600 !important;
}
@@ -41,16 +41,16 @@
.bm-dashboard-container:not(.bm-dashboard-dark) th,
.bm-dashboard-container:not(.bm-dashboard-dark) button,
.bm-dashboard-container:not(.bm-dashboard-dark) .btn {
- color: #333333 !important;
+ color: #333 !important;
text-shadow: none !important;
}
/* Enhanced text visibility for all BMDashboard dark mode elements - NUCLEAR LEVEL */
.bm-dashboard-dark *,
-.bm-dashboard-dark *:before,
-.bm-dashboard-dark *:after {
- color: #ffffff !important;
- text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
+.bm-dashboard-dark *::before,
+.bm-dashboard-dark *::after {
+ color: #fff !important;
+ text-shadow: 0 1px 3px rgb(0 0 0 / 80%) !important;
}
.bm-dashboard-dark h1,
@@ -59,8 +59,8 @@
.bm-dashboard-dark h4,
.bm-dashboard-dark h5,
.bm-dashboard-dark h6 {
- color: #ffffff !important;
- text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
+ color: #fff !important;
+ text-shadow: 0 2px 4px rgb(0 0 0 / 80%) !important;
font-weight: 600 !important;
}
@@ -74,33 +74,33 @@
.bm-dashboard-dark th,
.bm-dashboard-dark button,
.bm-dashboard-dark .btn {
- color: #ffffff !important;
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
+ color: #fff !important;
+ text-shadow: 0 1px 2px rgb(0 0 0 / 60%) !important;
}
.bm-dashboard-dark .text-muted,
.bm-dashboard-dark .text-secondary,
.bm-dashboard-dark .text-light {
- color: #ffffff !important;
+ color: #fff !important;
opacity: 0.9 !important;
}
.bm-dashboard-dark .form-control {
background-color: #2e5061 !important;
border-color: #3a506b !important;
- color: #ffffff !important;
+ color: #fff !important;
text-shadow: none !important;
}
.bm-dashboard-dark .form-control::placeholder {
- color: #ffffff !important;
+ color: #fff !important;
opacity: 0.7 !important;
}
/* Button Styles */
.bm-dashboard__button.btn.btn-secondary {
background-color: #6c757d;
- color: #ffffff;
+ color: #fff;
border-color: #6c757d;
transition: background-color 0.3s ease, color 0.3s ease;
}
@@ -112,18 +112,19 @@
.bm-dashboard-dark .bm-dashboard__button.btn.btn-secondary {
background-color: #3a506b;
- color: #ffffff;
+ color: #fff;
border: 1px solid #5a7a9b;
}
.bm-dashboard-dark .bm-dashboard__button.btn.btn-secondary:hover {
background-color: #4a607b;
border-color: #6a8aab;
+
.bmDashboardButton {
background-color: #2e5061;
}
-@media (min-width: 650px) {
+@media (width >= 650px) {
.bmDashboardButton {
padding-left: 0;
padding-right: 0;
@@ -162,13 +163,12 @@
max-width: 1200px;
list-style-type: none;
max-height: 80vh;
- overflow-x: hidden;
- overflow-y: auto;
+ overflow: hidden auto;
padding: 0;
margin: 1em auto;
border: 1px solid #ccc;
border-radius: 5px;
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
}
.darkProjectsList {
@@ -217,7 +217,7 @@
.invForm input,
.invForm select,
.invForm textarea {
- background-color: rgb(249, 249, 249);
+ background-color: rgb(249 249 249);
}
.invFormBtnGroup {
@@ -235,13 +235,13 @@
color: red;
}
-@media screen and (max-width: 800px) {
+@media screen and (width <= 800px) {
.invFormPageContainer {
width: 95%;
}
}
-@media screen and (max-width: 480px) {
+@media screen and (width <= 480px) {
.invFormPageContainer h2 {
font-size: 1.7rem;
}
@@ -328,8 +328,8 @@
.bm-dashboard-dark header *,
.bm-dashboard-dark main,
.bm-dashboard-dark main * {
- color: #ffffff !important;
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
+ color: #fff !important;
+ text-shadow: 0 1px 2px rgb(0 0 0 / 70%) !important;
}
/* Force background colors for better contrast */
@@ -339,7 +339,7 @@
.bm-dashboard-dark .inv-form-page-container,
.bm-dashboard-dark .bm-error-page {
background-color: #1b2a41 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
/* Override any Bootstrap or other framework styles */
@@ -353,7 +353,7 @@
.bm-dashboard-dark .text-dark,
.bm-dashboard-dark .text-body,
.bm-dashboard-dark .text-muted {
- color: #ffffff !important;
+ color: #fff !important;
}
/* Force all buttons and interactive elements */
@@ -370,14 +370,14 @@
.bm-dashboard-dark .btn-outline-primary,
.bm-dashboard-dark .btn-outline-secondary {
background-color: #3a506b !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #5a7a9b !important;
}
.bm-dashboard-dark button:hover,
.bm-dashboard-dark .btn:hover {
background-color: #4a607b !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #6a8aab !important;
}
@@ -385,30 +385,30 @@
.bm-dashboard-dark .log-bar,
.bm-dashboard-dark .log-bar-dark {
background-color: #1b2a41 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
.bm-dashboard-dark .log-bar h2,
.bm-dashboard-dark .log-bar-dark h2,
.bm-dashboard-dark .log-bar__section h2 {
- color: #ffffff !important;
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
+ color: #fff !important;
+ text-shadow: 0 1px 2px rgb(0 0 0 / 70%) !important;
}
.bm-dashboard-dark .log-bar .button.btn,
.bm-dashboard-dark .log-bar-dark .button.btn {
- color: #ffffff !important;
+ color: #fff !important;
}
/* Light mode LogBar overrides */
.bm-dashboard-container:not(.bm-dashboard-dark) .log-bar h2,
.bm-dashboard-container:not(.bm-dashboard-dark) .log-bar__section h2 {
- color: #333333 !important;
+ color: #333 !important;
text-shadow: none !important;
}
.bm-dashboard-container:not(.bm-dashboard-dark) .log-bar .button.btn {
- color: #ffffff !important;
+ color: #fff !important;
}
/* Image clarity improvements for BMDashboard */
@@ -416,7 +416,7 @@
.bm-dashboard-dark img,
.bm-dashboard-light img {
image-rendering: auto !important;
- -webkit-filter: none !important;
+ filter: none !important;
filter: none !important;
backface-visibility: hidden !important;
transform: translateZ(0) !important;
diff --git a/src/components/BMDashboard/BMHeader/BMHeader.module.css b/src/components/BMDashboard/BMHeader/BMHeader.module.css
index 9850d53a13..29aff204d7 100644
--- a/src/components/BMDashboard/BMHeader/BMHeader.module.css
+++ b/src/components/BMDashboard/BMHeader/BMHeader.module.css
@@ -41,7 +41,7 @@
margin-right: 3rem;
}
-@media (max-width: 1500px) {
+@media (width <= 1500px) {
.dashboardTextLink {
font-size: 14px;
}
@@ -51,7 +51,7 @@
}
}
-@media (max-width: 1400px) {
+@media (width <= 1400px) {
.timerMessageSection {
display: flex;
width: 0;
diff --git a/src/components/BMDashboard/BMTimeLogger/BMTimeLogCard.module.css b/src/components/BMDashboard/BMTimeLogger/BMTimeLogCard.module.css
index b9f740df3e..2de863dcf1 100644
--- a/src/components/BMDashboard/BMTimeLogger/BMTimeLogCard.module.css
+++ b/src/components/BMDashboard/BMTimeLogger/BMTimeLogCard.module.css
@@ -8,7 +8,7 @@
background-color: #2e5061;
}
-@media (min-width: 650px) {
+@media (width >= 650px) {
.bmDashboard_button.btn.btnSecondary {
padding-left: 0;
padding-right: 0;
@@ -86,13 +86,13 @@
border-radius: 10px !important;
width: 5rem;
}
+
/* project summaries */
.projectsList {
width: 80%;
list-style-type: none;
max-height: 80vh;
- overflow-x: hidden;
- overflow-y: auto;
+ overflow: hidden auto;
padding:0;
}
@@ -110,6 +110,7 @@
font-weight: bold;
text-align: center;
justify-content: center;
+
/* color: #3ea0cb; */
}
@@ -177,7 +178,7 @@
.invForm input,
.invForm select,
.invForm textarea {
- background-color: rgb(249, 249, 249);
+ background-color: rgb(249 249 249);
}
.invFormBtnGroup {
@@ -195,13 +196,13 @@
color: red;
}
-@media screen and (max-width: 800px) {
+@media screen and (width <= 800px) {
.invFormPageContainer {
width: 95%;
}
}
-@media screen and (max-width: 480px) {
+@media screen and (width <= 480px) {
.invFormPageContainer h2 {
font-size: 1.7rem;
}
diff --git a/src/components/BMDashboard/BMTimeLogger/BMTimeLogger.module.css b/src/components/BMDashboard/BMTimeLogger/BMTimeLogger.module.css
index 8575eacd76..1004a1dc60 100644
--- a/src/components/BMDashboard/BMTimeLogger/BMTimeLogger.module.css
+++ b/src/components/BMDashboard/BMTimeLogger/BMTimeLogger.module.css
@@ -8,7 +8,7 @@
background-color: #2e5061;
}
-@media (min-width: 650px) {
+@media (width >= 650px) {
.bmDashboard_button.btn.btnSecondary {
padding-left: 0;
padding-right: 0;
@@ -21,8 +21,7 @@
width: 80%;
list-style-type: none;
max-height: 80vh;
- overflow-x: hidden;
- overflow-y: auto;
+ overflow: hidden auto;
padding:0;
}
@@ -40,6 +39,7 @@
font-weight: bold;
text-align: center;
justify-content: center;
+
/* color: #3ea0cb; */
}
@@ -107,7 +107,7 @@
.invForm input,
.invForm select,
.invForm textarea {
- background-color: rgb(249, 249, 249);
+ background-color: rgb(249 249 249);
}
.invFormBtnGroup {
@@ -125,13 +125,13 @@
color: red;
}
-@media screen and (max-width: 800px) {
+@media screen and (width <= 800px) {
.invFormPageContainer {
width: 95%;
}
}
-@media screen and (max-width: 480px) {
+@media screen and (width <= 480px) {
.invFormPageContainer h2 {
font-size: 1.7rem;
}
diff --git a/src/components/BMDashboard/ConsumablePurchaseRequest/PurchaseConsumable.module.css b/src/components/BMDashboard/ConsumablePurchaseRequest/PurchaseConsumable.module.css
index 71036c51d5..f82f8f6ae3 100644
--- a/src/components/BMDashboard/ConsumablePurchaseRequest/PurchaseConsumable.module.css
+++ b/src/components/BMDashboard/ConsumablePurchaseRequest/PurchaseConsumable.module.css
@@ -11,7 +11,7 @@
margin: 1rem auto;
}
-@media screen and (max-width: 800px) {
+@media screen and (width <= 800px) {
.purchaseConsumableContainer {
width: 95%;
}
diff --git a/src/components/BMDashboard/ConsumablePurchaseRequest/PurchaseForm.module.css b/src/components/BMDashboard/ConsumablePurchaseRequest/PurchaseForm.module.css
index 3e3bc3d928..b59534caf4 100644
--- a/src/components/BMDashboard/ConsumablePurchaseRequest/PurchaseForm.module.css
+++ b/src/components/BMDashboard/ConsumablePurchaseRequest/PurchaseForm.module.css
@@ -4,7 +4,7 @@
.purchaseToolForm input,
.purchaseToolForm select {
- background-color: rgb(249, 249, 249);
+ background-color: rgb(249 249 249);
}
.purchaseToolFlexGroup {
@@ -41,7 +41,7 @@
color: red;
}
-@media screen and (max-width: 640px) {
+@media screen and (width <= 640px) {
.purchaseToolFlexGroup {
display: block;
}
diff --git a/src/components/BMDashboard/Equipment/Detail/EquipmentDetailPage.module.css b/src/components/BMDashboard/Equipment/Detail/EquipmentDetailPage.module.css
index 4cbb887a45..986d63f1ec 100644
--- a/src/components/BMDashboard/Equipment/Detail/EquipmentDetailPage.module.css
+++ b/src/components/BMDashboard/Equipment/Detail/EquipmentDetailPage.module.css
@@ -1,6 +1,6 @@
.equipmentDetailPage {
font-size: 0.95rem;
- margin: 1.5rem auto 3rem auto;
+ margin: 1.5rem auto 3rem;
max-width: 720px;
}
@@ -112,8 +112,8 @@ button.descriptionItem_button:hover {
/* Hide native select arrow to prevent double-chevron; use single custom arrow */
.editableField select {
appearance: none !important;
- -webkit-appearance: none !important;
- -moz-appearance: none !important;
+ appearance: none !important;
+ appearance: none !important;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23495057'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
background-repeat: no-repeat !important;
background-position: right 0.75rem center !important;
@@ -172,7 +172,7 @@ button.descriptionItem_button:hover {
:global(body.dark-mode) .equipmentDetailPageHeader h1,
:global(body.bm-dashboard-dark) .equipmentDetailPageHeader h1 {
- color: #ffffff;
+ color: #fff;
}
:global(body.dark-mode) :global(.EquipmentDetailPage__dashed_line),
@@ -227,8 +227,8 @@ button.descriptionItem_button:hover {
:global(body.dark-mode) .editableField select,
:global(body.bm-dashboard-dark) .editableField select {
appearance: none;
- -webkit-appearance: none;
- -moz-appearance: none;
+ appearance: none;
+ appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23e0eaf5'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0.75rem center;
diff --git a/src/components/BMDashboard/Equipment/EHistory.module.css b/src/components/BMDashboard/Equipment/EHistory.module.css
index 5d6497ae48..b9a0c8f3ea 100644
--- a/src/components/BMDashboard/Equipment/EHistory.module.css
+++ b/src/components/BMDashboard/Equipment/EHistory.module.css
@@ -4,6 +4,7 @@
font-weight: 600;
margin-bottom: 30px;
}
+
.history-title-dark{
color: white;
font-weight: 600;
@@ -51,6 +52,7 @@
.equipment-table td {
padding: 18px 0 !important;
}
+
.equipment-table-dark thead th {
background-color: #1b2a41;
border: none;
diff --git a/src/components/BMDashboard/Equipment/List/Equipments.module.css b/src/components/BMDashboard/Equipment/List/Equipments.module.css
index 6ba47d45f3..d51d551190 100644
--- a/src/components/BMDashboard/Equipment/List/Equipments.module.css
+++ b/src/components/BMDashboard/Equipment/List/Equipments.module.css
@@ -11,7 +11,7 @@
.Box {
border-radius: 12px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
+ box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
padding: 2rem;
transition: all 0.3s ease;
}
@@ -36,7 +36,7 @@
overflow-x: auto;
border-radius: 8px;
margin-top: 1.5rem;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
+ box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
}
.tableWrapper table {
@@ -49,7 +49,7 @@
/* Table Headers - Light Mode */
.BuildingTableHeaderLine th {
background-color: #4dabf7;
- color: #ffffff;
+ color: #fff;
font-weight: 600;
font-size: 0.875rem;
text-transform: uppercase;
@@ -144,7 +144,7 @@
.tableWrapper button[type="button"]:hover {
color: #0a58ca;
- background: rgba(13, 110, 253, 0.1);
+ background: rgb(13 110 253 / 10%);
}
.tableWrapper .btn {
@@ -159,9 +159,9 @@
.tableWrapper .btn:hover {
transform: translateY(-1px);
- box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
+ box-shadow: 0 2px 8px rgb(13 110 253 / 30%);
background-color: #0d6efd;
- color: #ffffff;
+ color: #fff;
}
/* Modal Styling - Light Mode */
@@ -172,7 +172,7 @@
.ModalViewContainer .modal-content {
border-radius: 12px;
border: none;
- box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 10px 40px rgb(0 0 0 / 15%);
}
.ModalViewContainer .modal-header {
@@ -207,7 +207,7 @@ body.bm-dashboard-dark table * {
body.dark-mode table,
body.bm-dashboard-dark table {
background-color: #2d2d2d !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #404040 !important;
}
@@ -219,7 +219,7 @@ body.bm-dashboard-dark table thead,
body.bm-dashboard-dark table thead tr,
body.bm-dashboard-dark table thead th {
background-color: #3d3d3d !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #404040 !important;
}
@@ -231,7 +231,7 @@ body.bm-dashboard-dark table tbody,
body.bm-dashboard-dark table tbody tr,
body.bm-dashboard-dark table tbody td {
background-color: #2d2d2d !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #404040 !important;
}
@@ -241,7 +241,7 @@ body.dark-mode table tbody tr:hover td,
body.bm-dashboard-dark table tbody tr:hover,
body.bm-dashboard-dark table tbody tr:hover td {
background-color: #4d4d4d !important;
- color: #ffffff !important;
+ color: #fff !important;
}
/* Reactstrap table classes */
@@ -250,16 +250,17 @@ body.dark-mode .table-responsive,
body.bm-dashboard-dark .table,
body.bm-dashboard-dark .table-responsive {
--bs-table-bg: #2d2d2d !important;
- --bs-table-color: #ffffff !important;
+ --bs-table-color: #fff !important;
--bs-table-border-color: #404040 !important;
--bs-table-striped-bg: #353535 !important;
- --bs-table-striped-color: #ffffff !important;
+ --bs-table-striped-color: #fff !important;
--bs-table-active-bg: #4d4d4d !important;
- --bs-table-active-color: #ffffff !important;
+ --bs-table-active-color: #fff !important;
--bs-table-hover-bg: #4d4d4d !important;
- --bs-table-hover-color: #ffffff !important;
+ --bs-table-hover-color: #fff !important;
+
background-color: #2d2d2d !important;
- color: #ffffff !important;
+ color: #fff !important;
}
/* Force all table descendants */
@@ -283,7 +284,7 @@ body.dark-mode table .btn:hover,
body.bm-dashboard-dark table button:hover,
body.bm-dashboard-dark table .btn:hover {
background-color: #4dabf7 !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #4dabf7 !important;
}
@@ -302,7 +303,7 @@ body.bm-dashboard-dark .btn-outline-primary:hover,
body.bm-dashboard-dark .btn-outline-primary:focus,
body.bm-dashboard-dark .btn-outline-primary:active {
background-color: #4dabf7 !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #4dabf7 !important;
}
@@ -349,7 +350,7 @@ body.bm-dashboard-dark .css-1fdsijx-ValueContainer,
body.bm-dashboard-dark .css-hlgwow {
background-color: #2d2d2d !important;
border-color: #404040 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
body.dark-mode .css-1dimb5e-singleValue,
@@ -358,7 +359,7 @@ body.dark-mode input,
body.bm-dashboard-dark .css-1dimb5e-singleValue,
body.bm-dashboard-dark .css-qbdosj-Input,
body.bm-dashboard-dark input {
- color: #ffffff !important;
+ color: #fff !important;
}
body.dark-mode .css-1nmdiq5-menu,
@@ -372,7 +373,7 @@ body.dark-mode .css-10wo9uf-option,
body.bm-dashboard-dark .css-d7l1ni-option,
body.bm-dashboard-dark .css-10wo9uf-option {
background-color: #2d2d2d !important;
- color: #ffffff !important;
+ color: #fff !important;
}
body.dark-mode .css-d7l1ni-option:hover,
@@ -392,7 +393,7 @@ body.bm-dashboard-dark .modal-header,
body.bm-dashboard-dark .modal-body,
body.bm-dashboard-dark .modal-footer {
background-color: #2d2d2d !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #404040 !important;
}
@@ -401,7 +402,7 @@ body.dark-mode label,
body.dark-mode .form-label,
body.bm-dashboard-dark label,
body.bm-dashboard-dark .form-label {
- color: #ffffff !important;
+ color: #fff !important;
}
/* Tooltip */
@@ -410,7 +411,7 @@ body.dark-mode .tooltip-inner,
body.bm-dashboard-dark .tooltip,
body.bm-dashboard-dark .tooltip-inner {
background-color: #4d4d4d !important;
- color: #ffffff !important;
+ color: #fff !important;
}
/* Container backgrounds */
@@ -435,12 +436,12 @@ body.bm-dashboard-dark [class*="col-"] {
body.dark-mode .Box,
body.bm-dashboard-dark .Box {
background: #1a1a1a !important;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
+ box-shadow: 0 4px 12px rgb(0 0 0 / 40%);
}
body.dark-mode .BuildingTitle,
body.bm-dashboard-dark .BuildingTitle {
- color: #ffffff !important;
+ color: #fff !important;
border-bottom-color: #4dabf7;
}
@@ -450,7 +451,7 @@ body.bm-dashboard-dark .PageViewContainer {
}
/* Responsive Design */
-@media (max-width: 768px) {
+@media (width <= 768px) {
.PageViewContainer {
padding: 1rem 0.5rem;
}
diff --git a/src/components/BMDashboard/Equipment/Update/UpdateEquipment.module.css b/src/components/BMDashboard/Equipment/Update/UpdateEquipment.module.css
index 434de2526b..fef05d2373 100644
--- a/src/components/BMDashboard/Equipment/Update/UpdateEquipment.module.css
+++ b/src/components/BMDashboard/Equipment/Update/UpdateEquipment.module.css
@@ -18,7 +18,7 @@
/* Read-only div styling */
.readOnlyDiv {
padding: 10px 12px;
- background-color: #ffffff !important;
+ background-color: #fff !important;
border-radius: 6px;
border: 1px solid #ced4da !important;
color: #212529 !important;
@@ -39,7 +39,7 @@
object-fit: cover;
border-radius: 4px;
border: 2px solid #dee2e6 !important;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}
/* For larger square images - using a different class name */
@@ -49,7 +49,7 @@
object-fit: cover;
border-radius: 8px;
border: 2px solid #dee2e6 !important;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}
/* Confirmation text - consolidated single declaration */
@@ -80,8 +80,8 @@
/* Custom select styling to prevent double arrows */
.custom-select {
appearance: none !important;
- -webkit-appearance: none !important;
- -moz-appearance: none !important;
+ appearance: none !important;
+ appearance: none !important;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
background-repeat: no-repeat !important;
background-position: right 0.75rem center !important;
@@ -100,14 +100,14 @@
@media (prefers-color-scheme: dark) {
.readOnlyDiv {
background-color: #2d2d2d !important;
- border-color: #444444 !important;
+ border-color: #444 !important;
color: #e9ecef !important;
}
.squareImage,
.largeSquareImage {
- border-color: #444444 !important;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
+ border-color: #444 !important;
+ box-shadow: 0 2px 8px rgb(0 0 0 / 30%);
}
.updateConfirmText {
@@ -123,21 +123,21 @@
/* Dark mode overrides with improved contrast ratios */
:global(.dark-mode) .form-control {
background-color: #2d2d2d !important;
- border-color: #666666 !important; /* Improved contrast */
- color: #ffffff !important; /* Improved contrast */
+ border-color: #666 !important; /* Improved contrast */
+ color: #fff !important; /* Improved contrast */
}
:global(.dark-mode) .form-control:focus {
background-color: #2d2d2d !important;
border-color: #0dcaf0 !important;
- color: #ffffff !important;
- box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25) !important;
+ color: #fff !important;
+ box-shadow: 0 0 0 0.25rem rgb(13 202 240 / 25%) !important;
}
:global(.dark-mode) .alert {
background-color: #1a2a3a !important;
border-color: #0dcaf0 !important;
- color: #ffffff !important; /* Improved contrast */
+ color: #fff !important; /* Improved contrast */
}
:global(.dark-mode) .alert-info {
@@ -167,24 +167,24 @@
:global(.dark-mode) .btn-primary {
background-color: #0dcaf0 !important;
border-color: #0dcaf0 !important;
- color: #000000 !important; /* High contrast */
+ color: #000 !important; /* High contrast */
}
:global(.dark-mode) .btn-secondary {
- background-color: #555555 !important; /* Improved contrast */
- border-color: #555555 !important;
- color: #ffffff !important; /* High contrast */
+ background-color: #555 !important; /* Improved contrast */
+ border-color: #555 !important;
+ color: #fff !important; /* High contrast */
}
:global(.dark-mode) .btn-danger {
background-color: #c82333 !important; /* Improved contrast */
border-color: #c82333 !important;
- color: #ffffff !important; /* High contrast */
+ color: #fff !important; /* High contrast */
}
:global(.dark-mode) .badge {
background-color: #0dcaf0 !important;
- color: #000000 !important; /* High contrast */
+ color: #000 !important; /* High contrast */
}
:global(.dark-mode) .text-muted {
@@ -192,7 +192,7 @@
}
:global(.dark-mode) .border {
- border-color: #666666 !important; /* Improved contrast */
+ border-color: #666 !important; /* Improved contrast */
}
:global(.dark-mode) h1,
@@ -201,7 +201,7 @@
:global(.dark-mode) h4,
:global(.dark-mode) h5,
:global(.dark-mode) h6 {
- color: #ffffff !important; /* High contrast */
+ color: #fff !important; /* High contrast */
}
/* Remove any extra arrow from reactstrap */
@@ -225,7 +225,7 @@
}
:global(.dark-mode) .form-check-label {
- color: #ffffff !important;
+ color: #fff !important;
}
/* Improve placeholder contrast */
diff --git a/src/components/BMDashboard/EquipmentPurchaseRequest/PurchaseEquipment.module.css b/src/components/BMDashboard/EquipmentPurchaseRequest/PurchaseEquipment.module.css
index bd4a289b6d..b26b05484b 100644
--- a/src/components/BMDashboard/EquipmentPurchaseRequest/PurchaseEquipment.module.css
+++ b/src/components/BMDashboard/EquipmentPurchaseRequest/PurchaseEquipment.module.css
@@ -11,7 +11,7 @@
margin: 1rem auto;
}
-@media screen and (max-width: 800px) {
+@media screen and (width <= 800px) {
.purchaseEquipmentContainer {
width: 95%;
}
diff --git a/src/components/BMDashboard/EquipmentPurchaseRequest/PurchaseForm.module.css b/src/components/BMDashboard/EquipmentPurchaseRequest/PurchaseForm.module.css
index 144e610b1b..4e46ab55fb 100644
--- a/src/components/BMDashboard/EquipmentPurchaseRequest/PurchaseForm.module.css
+++ b/src/components/BMDashboard/EquipmentPurchaseRequest/PurchaseForm.module.css
@@ -4,7 +4,7 @@
.purchaseToolForm input,
.purchaseToolForm select {
- background-color: rgb(249, 249, 249);
+ background-color: rgb(249 249 249);
}
.purchaseToolFlexGroup {
@@ -41,10 +41,11 @@
color: red;
}
-@media screen and (max-width: 640px) {
+@media screen and (width <= 640px) {
.purchaseToolFlexGroup {
display: block;
}
+
.flexGroupQty {
width: auto;
}
diff --git a/src/components/BMDashboard/Injuries/InjurySeverityChart.module.css b/src/components/BMDashboard/Injuries/InjurySeverityChart.module.css
index 51713d2303..ae5025954d 100644
--- a/src/components/BMDashboard/Injuries/InjurySeverityChart.module.css
+++ b/src/components/BMDashboard/Injuries/InjurySeverityChart.module.css
@@ -1,35 +1,35 @@
.customTooltip {
- background-color: #ffffff;
+ background-color: #fff;
border: 1px solid #ccc;
border-radius: 4px;
padding: 8px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
}
.customTooltip.dark {
background-color: #1c2541;
- border: 1px solid rgba(255, 255, 255, 0.2);
+ border: 1px solid rgb(255 255 255 / 20%);
}
.filterSelect .ant-select-selector,
.filterSelect .ant-select-selection-item,
.filterSelect .ant-select-selection-placeholder {
- color: #333333 !important;
+ color: #333 !important;
}
.filterSelect .ant-select-selector {
- background-color: #ffffff !important;
- border-color: rgba(0, 0, 0, 0.2) !important;
+ background-color: #fff !important;
+ border-color: rgb(0 0 0 / 20%) !important;
}
/* RangePicker placeholder */
.filterSelect .ant-picker-input > input::placeholder {
- color: #666666 !important;
+ color: #666 !important;
}
.filterSelect .ant-picker {
- background-color: #ffffff !important;
- border-color: rgba(0, 0, 0, 0.2) !important;
+ background-color: #fff !important;
+ border-color: rgb(0 0 0 / 20%) !important;
}
.oxideDark {
@@ -39,40 +39,48 @@
/* Only in darkMode: target filterSelect under .oxideDark */
.oxideDark .filterSelect .ant-select-selector {
background-color: #1c2541 !important;
- border-color: rgba(255, 255, 255, 0.2) !important;
+ border-color: rgb(255 255 255 / 20%) !important;
}
+
.oxideDark .filterSelect .ant-select-selection-item,
.oxideDark .filterSelect .ant-select-selection-placeholder {
color: #f5f5f5 !important;
}
+
.oxideDark .filterSelect .ant-select-arrow {
color: #f5f5f5 !important;
}
+
.oxideDark .filterSelect .ant-select-clear {
color: #f5f5f5 !important;
}
+
.oxideDark .filterSelect .ant-select-dropdown {
background-color: #1c2541 !important;
}
+
.oxideDark .filterSelect .ant-select-item-option-content {
color: #f5f5f5 !important;
}
.oxideDark .filterSelect.ant-picker {
background-color: #1c2541 !important;
- border-color: rgba(255, 255, 255, 0.2) !important;
+ border-color: rgb(255 255 255 / 20%) !important;
}
.oxideDark .filterSelect.ant-picker .ant-picker-input > input,
.oxideDark .filterSelect.ant-picker .ant-picker-input > input::placeholder {
color: #f5f5f5 !important;
}
+
.oxideDark .filterSelect .ant-picker-suffix {
color: #f5f5f5 !important;
}
+
.oxideDark .filterSelect .ant-picker-clear {
color: #f5f5f5 !important;
}
+
.oxideDark .filterSelect .ant-picker-dropdown {
background-color: #1c2541 !important;
color: #f5f5f5 !important;
@@ -93,5 +101,5 @@
.oxideDark .recharts-cartesian-grid-horizontal line,
.oxideDark .recharts-cartesian-grid-vertical line {
- stroke: rgba(255, 255, 255, 0.2) !important;
+ stroke: rgb(255 255 255 / 20%) !important;
}
diff --git a/src/components/BMDashboard/InteractiveMap/InteractiveMap.module.css b/src/components/BMDashboard/InteractiveMap/InteractiveMap.module.css
index e4df42f959..b72c17b1d9 100644
--- a/src/components/BMDashboard/InteractiveMap/InteractiveMap.module.css
+++ b/src/components/BMDashboard/InteractiveMap/InteractiveMap.module.css
@@ -2,11 +2,12 @@
PAGE BACKGROUND
---------------------------------- */
.lightPage {
- background: #ffffff;
+ background: #fff;
width: 100%;
height: 100%;
color: #222;
- --legend-bg: rgba(255, 255, 255, 0.9);
+
+ --legend-bg: rgb(255 255 255 / 90%);
}
.darkPage {
@@ -14,7 +15,8 @@
width: 100%;
height: 100%;
color: #e6e6e6;
- --legend-bg: rgba(0, 0, 0, 0.55);
+
+ --legend-bg: rgb(0 0 0 / 55%);
}
/* ----------------------------------
@@ -94,7 +96,7 @@
.dateInputDark {
background: #1C2541;
- color: #ffffff;
+ color: #fff;
border-color: #465a74;
}
@@ -109,12 +111,12 @@
.dateInputDark:focus {
outline: none;
border-color: #6acfde;
- box-shadow: 0 0 4px rgba(106, 207, 222, 0.6);
+ box-shadow: 0 0 4px rgb(106 207 222 / 60%);
}
/* Light mode */
.lightPage .dateInput {
- background: #ffffff;
+ background: #fff;
color: #222;
border-color: #ccc;
}
@@ -126,7 +128,7 @@
.lightPage .dateInput:focus {
outline: none;
border-color: #3a8bbd;
- box-shadow: 0 0 3px rgba(58, 139, 189, 0.6);
+ box-shadow: 0 0 3px rgb(58 139 189 / 60%);
}
/* Error message */
@@ -176,7 +178,7 @@
/* Light */
.lightPage :global(.leaflet-popup-content-wrapper) {
- background: #ffffff !important;
+ background: #fff !important;
color: #222 !important;
border: 1px solid #e3e3e3 !important;
}
@@ -200,7 +202,7 @@
}
.lightTooltip {
- background: #ffffff !important;
+ background: #fff !important;
border: 1px solid #e3e3e3 !important;
color: #222 !important;
}
@@ -208,14 +210,14 @@
.darkTooltip {
background: #2d4059 !important;
border: 1px solid #4b5f79 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
/* ----------------------------------
MAP CONTROLS
---------------------------------- */
.darkPage :global(.leaflet-control-attribution) {
- background: rgba(45, 64, 89, 0.85) !important;
+ background: rgb(45 64 89 / 85%) !important;
color: #ddd !important;
}
@@ -252,7 +254,7 @@
left: 12px;
bottom: 12px;
padding: 6px 12px;
- background: rgba(255, 255, 255, 0.75);
+ background: rgb(255 255 255 / 75%);
border-radius: 8px;
font-size: 13px;
backdrop-filter: blur(4px);
@@ -260,8 +262,8 @@
}
.darkPage .bottomLeftLabel {
- background: rgba(0, 0, 0, 0.55);
- color: #ffffff;
+ background: rgb(0 0 0 / 55%);
+ color: #fff;
}
.legendItem {
@@ -306,24 +308,21 @@
padding: 10px 12px;
background: var(--legend-bg);
border-radius: 10px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
- border: 1px solid rgba(0, 0, 0, 0.15);
+ box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
+ border: 1px solid rgb(0 0 0 / 15%);
backdrop-filter: blur(4px);
font-size: 13px;
z-index: 10000; /* higher than map */
pointer-events: auto !important;
opacity: 1 !important;
- left: auto; /* initial position handled in JSX */
- top: auto; /* initial position handled in JSX */
- bottom: 20px; /* fallback bottom-right */
- right: 20px;
+ inset: auto 20px 20px auto; /* initial position handled in JSX */ /* initial position handled in JSX */ /* fallback bottom-right */
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.darkPage .legendBox {
- border: 1px solid rgba(255, 255, 255, 0.15);
+ border: 1px solid rgb(255 255 255 / 15%);
color: #fff;
}
diff --git a/src/components/BMDashboard/Issue/Issue.module.css b/src/components/BMDashboard/Issue/Issue.module.css
index 386ab19f0f..f806e7fcf3 100644
--- a/src/components/BMDashboard/Issue/Issue.module.css
+++ b/src/components/BMDashboard/Issue/Issue.module.css
@@ -57,7 +57,7 @@
}
.consequencesCheckboxes {
- padding: 0 2.5em 0;
+ padding: 0 2.5em;
}
.consequencesCheckboxes > .col {
@@ -78,7 +78,7 @@ button.issueFormButtonCancel {
font-size: 20px;
height: 50px;
width: 50%;
- background-color: #ffffff !important;
+ background-color: #fff !important;
color: #2e5061 !important;
border-color: #2e5061 !important;
}
@@ -91,7 +91,7 @@ button.issueFormButtonSubmit {
height: 50px;
width: 50%;
background-color: #2e5061 !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #2e5061 !important;
font-size: 20px;
}
\ No newline at end of file
diff --git a/src/components/BMDashboard/Issues/IssueDashboard.module.css b/src/components/BMDashboard/Issues/IssueDashboard.module.css
index 462517e546..847a75b9d0 100644
--- a/src/components/BMDashboard/Issues/IssueDashboard.module.css
+++ b/src/components/BMDashboard/Issues/IssueDashboard.module.css
@@ -6,7 +6,7 @@
.issuesTableResponsive:global(.bg-oxford-blue) :global(.text-end),
.issuesTableResponsive:global(.bg-oxford-blue) :global(th) {
- color: #ffffff !important;
+ color: #fff !important;
}
/* Improved positioning for the action menu */
@@ -18,9 +18,9 @@
min-width: 10rem;
z-index: 1050;
padding: 0.5rem 0;
- border: 1px solid rgba(0, 0, 0, 0.15);
+ border: 1px solid rgb(0 0 0 / 15%);
border-radius: 0.25rem;
- box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
+ box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
white-space: nowrap;
background-color: white;
}
@@ -28,7 +28,7 @@
.actionMenuDark {
background-color: #1c2541;
border-color: #3a506b;
- box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
+ box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 50%);
}
.issueDashboardDropdownItem {
@@ -49,7 +49,7 @@
}
.issueDashboardDropdownItemDark {
- color: #ffffff;
+ color: #fff;
}
.issueDashboardDropdownItemDark:hover {
@@ -62,13 +62,13 @@
}
.exportDropdownItemDark {
- color: #ffffff !important;
+ color: #fff !important;
}
.exportDropdownItemDark:hover,
.exportDropdownItemDark:focus {
background-color: #2d3b66 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
.issueDashboardDropdownItemDark.textDanger {
@@ -88,7 +88,7 @@
.badge :global(.bg-info-dark) {
background-color: #3a506b !important;
- color: #ffffff !important;
+ color: #fff !important;
font-weight: 500;
}
@@ -110,17 +110,16 @@
}
.issueDashboardDropdownDark :global(.btn-link) {
- color: #ffffff;
+ color: #fff;
}
.issueDashboardDropdownDark :global(.btn-link:hover) {
- color: #ffffff;
+ color: #fff;
}
/* Fixed table responsiveness */
.issuesTableResponsive {
- overflow-x: visible !important; /* Prevent horizontal scrollbar */
- overflow-y: visible !important; /* Ensure dropdowns aren't clipped */
+ overflow: visible !important; /* Prevent horizontal scrollbar */ /* Ensure dropdowns aren't clipped */
position: relative;
width: 100%;
table-layout: fixed;
@@ -171,7 +170,7 @@
left: 0 !important;
width: 100% !important;
height: 100% !important;
- background-color: rgba(0, 0, 0, 0.3) !important;
+ background-color: rgb(0 0 0 / 30%) !important;
z-index: 1050 !important;
display: flex !important;
align-items: center !important;
@@ -191,14 +190,14 @@
.issuesModalBackdropDark :global(.modal-content) {
background-color: #1c2541;
- color: #ffffff;
+ color: #fff;
border: 1px solid #3a506b;
}
.issuesModalBackdropDark :global(.modal-content input) {
background-color: #1b2a41;
border-color: #3a506b;
- color: #ffffff;
+ color: #fff;
}
.issuesModalBackdropDark :global(.modal-content input::placeholder) {
@@ -208,19 +207,19 @@
.issuesModalBackdropDark :global(.modal-content input:focus) {
background-color: #1b2a41;
border-color: #4a5f7a;
- color: #ffffff;
+ color: #fff;
}
.issuesModalBackdropDark :global(.modal-content h5) {
- color: #ffffff;
+ color: #fff;
}
.issuesModalBackdropDark :global(.modal-content p) {
- color: #ffffff;
+ color: #fff;
}
.issuesModalBackdropDark :global(.modal-content strong) {
- color: #ffffff;
+ color: #fff;
}
:global(.table-dark thead tr:hover) {
@@ -228,11 +227,11 @@
}
:global(.table-dark thead tr th) {
- color: #ffffff;
+ color: #fff;
}
:global(.table-dark tbody tr) {
- color: #ffffff;
+ color: #fff;
}
:global(.table-dark tbody tr:hover) {
diff --git a/src/components/BMDashboard/Issues/IssueHeader.module.css b/src/components/BMDashboard/Issues/IssueHeader.module.css
index 9f904eb88e..0f84e45b15 100644
--- a/src/components/BMDashboard/Issues/IssueHeader.module.css
+++ b/src/components/BMDashboard/Issues/IssueHeader.module.css
@@ -46,7 +46,7 @@
.titleSectionDark {
display: flex;
align-items: center;
- color: #ffffff;
+ color: #fff;
font-size: 36px;
font-weight: 600;
margin: 0;
@@ -56,7 +56,7 @@
font-size: 36px;
font-weight: 600;
margin: 0;
- color: #000000;
+ color: #000;
}
.sectionDark {
@@ -81,7 +81,7 @@
padding: 6px;
display: flex;
align-items: center;
- background-color: #eeeeee;
+ background-color: #eee;
border-radius: 8px;
transition: background-color 0.2s;
}
@@ -92,7 +92,7 @@
.moreButtonDark {
background-color: #3a506b;
- color: #ffffff;
+ color: #fff;
}
.moreButtonDark:hover {
@@ -117,7 +117,7 @@
.backButtonDark {
background-color: #3a506b;
- color: #ffffff;
+ color: #fff;
}
.backButtonDark:hover {
@@ -174,7 +174,7 @@
display: inline-flex;
background-color: #f3f4f6;
border-radius: 8px;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
padding: 6px;
}
@@ -182,7 +182,7 @@
display: inline-flex;
background-color: #1c2541;
border-radius: 8px;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
+ box-shadow: 0 1px 3px rgb(0 0 0 / 30%);
padding: 6px;
}
@@ -199,7 +199,7 @@
}
.projectTab .tabItem:global(.active) {
- background-color: #ffffff;
+ background-color: #fff;
color: #1c1e1c;
}
@@ -208,12 +208,12 @@
}
.tabItemDark {
- color: #ffffff !important;
+ color: #fff !important;
}
.projectTabDark .tabItemDark:global(.active) {
background-color: #3a506b;
- color: #ffffff !important;
+ color: #fff !important;
}
.projectTabDark .tabItemDark:not(:global(.active)):hover {
@@ -245,7 +245,7 @@
}
.searchIconDark {
- color: #ffffff;
+ color: #fff;
position: absolute;
left: 12px;
top: 50%;
@@ -264,7 +264,7 @@
font-size: 16px;
width: 100%;
box-sizing: border-box;
- background-color: #ffffff;
+ background-color: #fff;
color: #1c1e1c;
transition: border-color 0.2s;
outline: none;
@@ -289,7 +289,7 @@
width: 100%;
box-sizing: border-box;
background-color: #1c2541;
- color: #ffffff;
+ color: #fff;
transition: border-color 0.2s;
outline: none;
box-shadow: none;
@@ -313,7 +313,7 @@
right: 0;
background-color: white;
border-radius: 8px;
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
overflow: hidden;
z-index: 1000;
border: 1px solid #eaeaea;
@@ -328,7 +328,7 @@
right: 0;
background-color: #1c2541;
border-radius: 8px;
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
+ box-shadow: 0 4px 16px rgb(0 0 0 / 50%);
overflow: hidden;
z-index: 1000;
border: 1px solid #3a506b;
@@ -341,6 +341,7 @@
opacity: 0;
transform: translateY(-5px);
}
+
to {
opacity: 1;
transform: translateY(0);
@@ -389,14 +390,14 @@
.resultName {
font-size: 14px;
font-weight: 500;
- color: #333333;
+ color: #333;
margin-bottom: 2px;
}
.resultNameDark {
font-size: 14px;
font-weight: 500;
- color: #ffffff;
+ color: #fff;
margin-bottom: 2px;
}
diff --git a/src/components/BMDashboard/Issues/issueChart.module.css b/src/components/BMDashboard/Issues/issueChart.module.css
index 1f1d3bd796..f98e54ddc9 100644
--- a/src/components/BMDashboard/Issues/issueChart.module.css
+++ b/src/components/BMDashboard/Issues/issueChart.module.css
@@ -6,12 +6,12 @@
padding: 20px;
background: #f9f9f9;
border-radius: 8px;
- box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}
.issueChartEventContainerDark {
background: #1C2541;
- box-shadow: 0 4px 12px rgba(0,0,0,0.9);
+ box-shadow: 0 4px 12px rgb(0 0 0 / 90%);
color: #ccd1dc;
}
@@ -29,12 +29,12 @@
padding: 20px 20px 36px;
background: #fff;
border-radius: 8px;
- box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}
.chartWrapperDark {
background: #3A506B;
- box-shadow: 0 0 15px rgba(0,0,0,0.9);
+ box-shadow: 0 0 15px rgb(0 0 0 / 90%);
color: #ccd1dc;
}
@@ -59,7 +59,7 @@
justify-content: space-between;
gap: 8px;
padding: 6px 10px 8px;
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
+ border-bottom: 1px solid rgb(0 0 0 / 10%);
position: static;
background: inherit;
}
@@ -113,7 +113,7 @@
}
/* Improved accessibility and responsiveness */
-@media (max-width: 768px) {
+@media (width <= 768px) {
.issueChartEventContainer,
.issueChartEventContainerDark {
margin: 16px;
@@ -139,6 +139,7 @@
.issueChartEventTitleDark {
font-size: 20px;
}
+
/* Wrapper to keep year bars aligned even when data is missing */
.yearGroupWrapper {
display: flex;
@@ -155,14 +156,14 @@
.placeholderBar {
width: 18px;
height: 100%;
- border: 2px dashed rgba(120, 120, 120, 0.35);
+ border: 2px dashed rgb(120 120 120 / 35%);
background: transparent;
border-radius: 4px;
}
/* Dark mode placeholder */
.placeholderBarDark {
- border-color: rgba(200, 200, 200, 0.25);
+ border-color: rgb(200 200 200 / 25%);
}
/* ================================
@@ -171,13 +172,13 @@
/* Adds subtle outline to each year's bar */
.yearBarOutline {
- border: 1.5px solid rgba(0, 0, 0, 0.25);
+ border: 1.5px solid rgb(0 0 0 / 25%);
border-radius: 4px;
}
/* Dark mode outline */
.yearBarOutlineDark {
- border-color: rgba(255, 255, 255, 0.35);
+ border-color: rgb(255 255 255 / 35%);
}
/* ================================
@@ -189,11 +190,11 @@
================================ */
.issueChartEventContainerDark .placeholderBar {
- border-color: rgba(200, 200, 200, 0.25);
+ border-color: rgb(200 200 200 / 25%);
}
.issueChartEventContainerDark .yearBarOutline {
- border-color: rgba(255, 255, 255, 0.35);
+ border-color: rgb(255 255 255 / 35%);
}
/* ================================
@@ -215,8 +216,8 @@
z-index: 0;
background-image: repeating-linear-gradient(
90deg,
- rgba(0, 0, 0, 0.035) 0%,
- rgba(0, 0, 0, 0.035) 10%,
+ rgb(0 0 0 / 3.5%) 0%,
+ rgb(0 0 0 / 3.5%) 10%,
transparent 10%,
transparent 20%
);
@@ -228,6 +229,7 @@
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
}
+
/* Ensure chart canvas renders above background bands */
.xAxisGroupBackground canvas {
position: relative;
@@ -238,8 +240,8 @@
.issueChartEventContainerDark .xAxisGroupBackground::before {
background-image: repeating-linear-gradient(
90deg,
- rgba(255, 255, 255, 0.05) 0%,
- rgba(255, 255, 255, 0.05) 10%,
+ rgb(255 255 255 / 5%) 0%,
+ rgb(255 255 255 / 5%) 10%,
transparent 10%,
transparent 20%
);
@@ -257,16 +259,18 @@
:global(.react-datepicker.lightCalendar .react-datepicker__navigation-icon::before) {
border-color: #0f172a;
+
/* Generic year bar outline (applies to all years) */
}
+
.yearBar {
- border: 1.5px solid rgba(0, 0, 0, 0.3);
+ border: 1.5px solid rgb(0 0 0 / 30%);
border-radius: 4px;
}
/* Dark mode year bar outline */
.issueChartEventContainerDark .yearBar {
- border-color: rgba(255, 255, 255, 0.35);
+ border-color: rgb(255 255 255 / 35%);
}
/* Placeholder look for years with no data */
diff --git a/src/components/BMDashboard/Issues/issueCharts.module.css b/src/components/BMDashboard/Issues/issueCharts.module.css
index cdd376b8e4..a9df0d9846 100644
--- a/src/components/BMDashboard/Issues/issueCharts.module.css
+++ b/src/components/BMDashboard/Issues/issueCharts.module.css
@@ -10,7 +10,7 @@
padding: 20px 40px;
background: #f9f9f9;
border-radius: 8px;
- box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
display: flex; /* match dark mode layout */
flex-direction: column; /* match dark mode */
align-items: center; /* center filters like dark mode */
@@ -22,7 +22,6 @@
max-width: 100%;
margin: 0;
padding: 30px 40px;
-
background:#1B2A41;
border-radius: 0;
box-shadow: none;
@@ -82,7 +81,7 @@
padding: 20px;
background: #fff;
border-radius: 8px;
- box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}
.chartWrapperDark {
@@ -90,7 +89,7 @@
width:100%;
padding: 25px;
border-radius: 12px;
- box-shadow: 0 2px 6px rgba(0,0,0,0.6);
+ box-shadow: 0 2px 6px rgb(0 0 0 / 60%);
}
/* ----- Labels & Select Controls ----- */
@@ -202,7 +201,7 @@
font-size: 15px;
border-radius: 6px;
border: 1px solid #cbd5e0;
- background-color: #ffffff;
+ background-color: #fff;
color: #2d3748;
width: 100%;
box-sizing: border-box;
@@ -231,7 +230,7 @@
background: white;
padding: 20px;
border-radius: 8px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
color: #000;
}
@@ -242,7 +241,7 @@
padding: 25px;
border-radius: 12px;
margin: 0 auto;
- box-shadow: 0 2px 6px rgba(0,0,0,0.6);
+ box-shadow: 0 2px 6px rgb(0 0 0 / 60%);
color: #cfd7e3;
}
@@ -294,7 +293,7 @@
}
/* ----- Responsive ----- */
-@media (max-width: 768px) {
+@media (width <= 768px) {
.chartContainer {
height: 250px;
padding: 10px;
diff --git a/src/components/BMDashboard/ItemList/ItemListView.module.css b/src/components/BMDashboard/ItemList/ItemListView.module.css
index 5c9f555cd0..4018eb8f29 100644
--- a/src/components/BMDashboard/ItemList/ItemListView.module.css
+++ b/src/components/BMDashboard/ItemList/ItemListView.module.css
@@ -56,7 +56,7 @@ table td {
gap: 30px;
width: 100%;
max-width: 1200px;
- margin: 0 auto 20px auto;
+ margin: 0 auto 20px;
overflow: visible;
}
@@ -91,6 +91,7 @@ table td {
.selectInput input[type='text'] {
padding: 5px;
}
+
.btnPrimary {
background-color: #468ef9;
color: white;
@@ -99,12 +100,14 @@ table td {
border-radius: 4px;
cursor: pointer;
}
+
.buttonsRow {
display: flex;
justify-content: center;
gap: 15px;
margin-bottom: 15px;
}
+
.btnPrimary:hover {
background-color: #3b82f6;
}
@@ -114,7 +117,7 @@ table td {
}
.darkMode h3 {
- color: #ffffff;
+ color: #fff;
}
.darkMode .selectInput label {
@@ -124,7 +127,7 @@ table td {
/* RESET selects per theme — REQUIRED */
.lightTheme .selectInput select {
- background-color: #ffffff;
+ background-color: #fff;
color: #111827;
border-color: #d1d5db;
}
@@ -211,7 +214,7 @@ table td {
.darkDatePicker .react-datepicker__day--keyboard-selected,
.darkDatePicker .react-datepicker__time-list-item--selected {
background-color: #468ef9 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
.darkDatePicker .react-datepicker__time-container {
@@ -251,7 +254,7 @@ table td {
ul.react-datepicker__time-list
li:hover {
background-color: #3a506b !important;
- color: #ffffff !important;
+ color: #fff !important;
}
.darkDatePicker
@@ -282,12 +285,12 @@ table td {
.darkDatePicker :global(.react-datepicker__time-list-item:hover),
.darkDatePicker :global(.react-datepicker__time-list-item:focus) {
background-color: #3a506b !important;
- color: #ffffff !important;
+ color: #fff !important;
}
.darkDatePicker :global(.react-datepicker__time-list-item--selected) {
background-color: #468ef9 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
.darkDatePickerPopper .react-datepicker__triangle {
@@ -296,14 +299,14 @@ table td {
/* Light mode styles to improve time list contrast */
.lightDatePickerInput {
- background-color: #ffffff !important;
+ background-color: #fff !important;
color: #111827 !important;
border: 1px solid #d1d5db !important;
padding: 4px;
}
.lightDatePicker {
- background-color: #ffffff !important;
+ background-color: #fff !important;
color: #111827 !important;
border: 1px solid #d1d5db !important;
}
@@ -329,26 +332,26 @@ table td {
.lightDatePicker .react-datepicker__day--keyboard-selected,
.lightDatePicker .react-datepicker__time-list-item--selected {
background-color: #468ef9 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
.lightDatePicker .react-datepicker__time-container {
border-color: #d1d5db !important;
- background-color: #ffffff !important;
+ background-color: #fff !important;
}
.lightDatePicker .react-datepicker__time-container .react-datepicker__time {
- background-color: #ffffff !important;
+ background-color: #fff !important;
border-color: #d1d5db !important;
}
.lightDatePicker .react-datepicker__time-container .react-datepicker__time-box {
- background-color: #ffffff !important;
+ background-color: #fff !important;
border-color: #d1d5db !important;
}
.lightDatePicker .react-datepicker__time-container .react-datepicker__time-list {
- background-color: #ffffff !important;
+ background-color: #fff !important;
color: #1f2937 !important;
border-color: #d1d5db !important;
}
@@ -360,13 +363,13 @@ table td {
:global(.react-datepicker__time-container
.react-datepicker__time-box
ul.react-datepicker__time-list) {
- background-color: #ffffff !important;
+ background-color: #fff !important;
border-color: #d1d5db !important;
color: #1f2937 !important;
}
.lightDatePicker :global(.react-datepicker__time-list-item) {
- background-color: #ffffff !important;
+ background-color: #fff !important;
color: #1f2937 !important;
}
@@ -378,7 +381,7 @@ table td {
.lightDatePicker :global(.react-datepicker__time-list-item--selected) {
background-color: #468ef9 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
.lightDatePickerPopper .react-datepicker__triangle {
@@ -399,29 +402,31 @@ table td {
color: #e5e7eb;
border-color: #334155;
}
+
.darkTheme .filterSelect option {
background-color: #1e293b;
color: #e5e7eb;
}
.lightTheme .filterSelect option {
- background-color: #ffffff;
+ background-color: #fff;
color: #111827;
}
+
.lightTheme .filterSelect:focus {
outline: none;
border-color: #2563eb;
- box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
+ box-shadow: 0 0 0 1px rgb(37 99 235 / 25%);
}
.darkTheme .filterSelect:focus {
outline: none;
border-color: #3b82f6;
- box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
+ box-shadow: 0 0 0 1px rgb(59 130 246 / 30%);
}
.lightTheme .selectInput select option {
- background-color: #ffffff;
+ background-color: #fff;
color: #111827;
}
@@ -440,10 +445,11 @@ table td {
/* Light theme selects */
.itemsListContainer.lightTheme select {
- background-color: #ffffff;
+ background-color: #fff;
color: #111827;
border-color: #d1d5db;
}
+
/* ===========================
SELECT FOCUS (AUTHORITATIVE)
=========================== */
@@ -457,15 +463,15 @@ table td {
/* LIGHT MODE focus */
.itemsListContainer.lightTheme .selectInput select:focus {
border-color: #2563eb !important; /* blue-600 */
- box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35) !important;
- background-color: #ffffff !important;
+ box-shadow: 0 0 0 2px rgb(37 99 235 / 35%) !important;
+ background-color: #fff !important;
color: #111827 !important;
}
/* DARK MODE focus */
.itemsListContainer.darkTheme .selectInput select:focus {
border-color: #2563eb;
- box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
+ box-shadow: 0 0 0 1px rgb(37 99 235 / 25%);
background-color: #1e293b !important;
color: #e5e7eb !important;
}
diff --git a/src/components/BMDashboard/ItemList/RecordsModal.module.css b/src/components/BMDashboard/ItemList/RecordsModal.module.css
index e8e421330e..bb3516967c 100644
--- a/src/components/BMDashboard/ItemList/RecordsModal.module.css
+++ b/src/components/BMDashboard/ItemList/RecordsModal.module.css
@@ -6,7 +6,7 @@
white-space: nowrap;
}
-@media (min-width: 1200px) {
+@media (width >= 1200px) {
.recordsModalTableContainer {
font-size: medium;
}
diff --git a/src/components/BMDashboard/Lesson/LessonForm.module.css b/src/components/BMDashboard/Lesson/LessonForm.module.css
index df84ed8ce0..c8e243c86b 100644
--- a/src/components/BMDashboard/Lesson/LessonForm.module.css
+++ b/src/components/BMDashboard/Lesson/LessonForm.module.css
@@ -2,7 +2,7 @@
display: flex;
flex-direction: column;
height: 100%;
- padding: 5% 10% 10% 10%;
+ padding: 5% 10% 10%;
background-color: #E8F4F9;
}
@@ -12,13 +12,13 @@
.formContainer {
padding: 5%;
- background-color: #FFFFFF;
+ background-color: #FFF;
border-radius: 1%;
}
.darkModeForm {
background-color: #1C2541 !important; /* Space Cadet */
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
+ box-shadow: 0 4px 8px rgb(0 0 0 / 50%);
}
.formControl {
@@ -28,7 +28,7 @@
font-size: 1rem;
line-height: 1.5;
color: #212529;
- background-color: #ffffff;
+ background-color: #fff;
border: 1px solid #ced4da;
border-radius: 0.375rem;
outline: none;
@@ -47,10 +47,7 @@
display: flex;
flex-direction: column;
height: 100%;
- padding-left: 10%;
- padding-right: 10%;
- padding-top: 5%;
- padding-bottom: 10%;
+ padding: 5% 10% 10%;
background-color: #E8F4F9;
}
@@ -95,7 +92,7 @@
}
.dragAndDropStyle {
- border: 2px dashed #cccccc;
+ border: 2px dashed #ccc;
padding: 0.5%;
text-align: center;
cursor: pointer;
@@ -133,7 +130,7 @@
.lessonFormButtonCancel {
width: 25%;
height: 50px;
- background-color: #FFFFFF !important;
+ background-color: #FFF !important;
color: #2E5061 !important;
border-color: #2E5061 !important;
}
@@ -148,7 +145,7 @@
width: 25%;
height: 50px;
background-color: #2E5061 !important;
- color: #FFFFFF !important;
+ color: #FFF !important;
border-color: #2E5061 !important;
}
@@ -237,18 +234,21 @@
width: 100%;
}
-@media (max-width: 570px) {
+@media (width <= 570px) {
.formSelectContainer {
align-items: center;
flex-direction: column;
}
+
.singleFormSelect {
width: 90%;
}
+
.lessonFormButtonSubmit,
.lessonFormButtonCancel {
width: 45%;
}
+
.masterContainer {
padding-bottom: 20%;
@@ -257,17 +257,19 @@
/* ===================== */
+
/* Dark Mode Styles */
+
/* ===================== */
.masterContainerDark {
background-color: #1B2A41;
- color: #ffffff;
+ color: #fff;
}
.formContainerDark {
background-color: #1C2541;
- color: #ffffff;
+ color: #fff;
}
.suppressInitialFocus :global(:focus) {
@@ -290,20 +292,20 @@
.noFocusShadow :global(input[type='text']),
.noFocusShadow :global(textarea) {
box-shadow: none !important;
- -webkit-box-shadow: none !important;
+ box-shadow: none !important;
}
.noFocusShadow :global(input.form-control:focus),
.noFocusShadow :global(textarea.form-control:focus),
.noFocusShadow :global(input[type='text']:focus),
.noFocusShadow :global(textarea:focus) {
- -webkit-box-shadow: 0 0 0 1000px #1C2541 inset !important;
+ box-shadow: 0 0 0 1000px #1C2541 inset !important;
box-shadow: 0 0 0 1000px #1C2541 inset !important;
}
/* Force no shadow unless focused */
-.formContainerDark .lessonTitleInputDark:not(:focus):not(:active):not(:focus-visible),
-.formContainerDark .lessonPlaceholderTextDark:not(:focus):not(:active):not(:focus-visible),
+.formContainerDark .lessonTitleInputDark:not(:focus, :active, :focus-visible),
+.formContainerDark .lessonPlaceholderTextDark:not(:focus, :active, :focus-visible),
:global(body.dark-mode) .formContainerDark :global(input.form-control:not(:focus)),
:global(body.bm-dashboard-dark) .formContainerDark :global(input.form-control:not(:focus)),
:global(body.dark-mode) .formContainerDark :global(textarea.form-control:not(:focus)),
@@ -313,19 +315,19 @@
:global(body.dark-mode) .formContainerDark :global(textarea:not(:focus)),
:global(body.bm-dashboard-dark) .formContainerDark :global(textarea:not(:focus)) {
box-shadow: none !important;
- -webkit-box-shadow: none !important;
+ box-shadow: none !important;
}
.lessonLabelDark {
- color: #ffffff;
+ color: #fff;
}
.lessonPlaceholderTextDark {
background-color: #1C2541 !important;
- color: #ffffff !important;
+ color: #fff !important;
border: 1px solid #404040 !important;
color-scheme: dark;
- -webkit-text-fill-color: #ffffff;
+ -webkit-text-fill-color: #fff;
box-shadow: none !important;
}
@@ -335,10 +337,10 @@
.lessonTitleInputDark {
color-scheme: dark;
- caret-color: #ffffff;
+ caret-color: #fff;
+ appearance: none;
appearance: none;
- -webkit-appearance: none;
- -webkit-text-fill-color: #ffffff;
+ -webkit-text-fill-color: #fff;
box-shadow: none !important;
}
@@ -347,7 +349,7 @@
.lessonTitleInputDark:focus-visible {
background-color: #1C2541 !important;
border-color: #2563eb !important;
- -webkit-box-shadow: 0 0 0 1000px #1C2541 inset !important;
+ box-shadow: 0 0 0 1000px #1C2541 inset !important;
background-clip: padding-box !important;
box-shadow: 0 0 0 1000px #1C2541 inset !important;
outline: none !important;
@@ -356,9 +358,9 @@
.formContainerDark .lessonTitleInputDark,
.formContainerDark .lessonPlaceholderTextDark {
background-color: #1C2541 !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #404040 !important;
- -webkit-box-shadow: none !important;
+ box-shadow: none !important;
background-clip: padding-box !important;
box-shadow: none !important;
outline: none !important;
@@ -372,9 +374,9 @@
.lessonPlaceholderTextDark:global(.form-control):active,
.lessonPlaceholderTextDark:global(.form-control):focus-visible {
background-color: #1C2541 !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #2563eb !important;
- -webkit-box-shadow: 0 0 0 1000px #1C2541 inset !important;
+ box-shadow: 0 0 0 1000px #1C2541 inset !important;
background-clip: padding-box !important;
box-shadow: 0 0 0 1000px #1C2541 inset !important;
outline: none !important;
@@ -384,7 +386,7 @@
.lessonPlaceholderTextDark:active {
border-color: #2563eb !important;
background-color: #1C2541 !important;
- -webkit-box-shadow: 0 0 0 1000px #1C2541 inset !important;
+ box-shadow: 0 0 0 1000px #1C2541 inset !important;
background-clip: padding-box !important;
box-shadow: 0 0 0 1000px #1C2541 inset !important;
outline: none !important;
@@ -396,26 +398,26 @@
:global(body.dark-mode) .formContainerDark .lessonPlaceholderTextDark,
:global(body.bm-dashboard-dark) .formContainerDark .lessonPlaceholderTextDark {
background-color: #1C2541 !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #404040 !important;
- -webkit-box-shadow: none !important;
+ box-shadow: none !important;
box-shadow: none !important;
}
.formSelectContainerDark {
- color: #ffffff;
+ color: #fff;
}
.singleFormSelectDark {
background-color: #1C2541 !important;
- color: #ffffff !important;
+ color: #fff !important;
border: 1px solid #444;
}
.singleFormSelectDark:focus,
.singleFormSelectDark:active {
background-color: #1C2541 !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #2563eb !important;
box-shadow: none !important;
outline: none !important;
@@ -424,7 +426,7 @@
.dragAndDropStyleDark {
border: 2px dashed #555;
background-color: #1f1f1f;
- color: #ffffff;
+ color: #fff;
}
.dragandDropTextDark {
@@ -432,49 +434,49 @@
}
.fileSelectedDark {
- border-color: #ffffff;
+ border-color: #fff;
}
.lessonFormButtonCancelDark {
background-color: #2a2a2a !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #666 !important;
}
.lessonFormButtonSubmitDark {
background-color: #2563eb !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #2563eb !important;
}
/* Tags - Dark Mode */
.tagsDivDark {
- color: #ffffff;
+ color: #fff;
}
.tagDark {
background-color: #2a2a2a;
- color: #ffffff;
+ color: #fff;
border: 1px solid #555;
}
.removeTagBTNDark {
- color: #ffffff;
+ color: #fff;
}
.tagDropdownDark {
background-color: #1e1e1e;
- color: #ffffff !important;
+ color: #fff !important;
border: 1px solid #444;
}
.tagDropdownDark * {
- color: #ffffff !important;
+ color: #fff !important;
}
.tagOptionDark {
- color: #ffffff !important;
+ color: #fff !important;
background-color: transparent;
}
@@ -482,14 +484,14 @@
.tagOptionDark:focus,
.tagOptionDark:active {
background-color: #2d3b66;
- color: #ffffff !important;
+ color: #fff !important;
outline: none;
}
.tagOptionDark:hover *,
.tagOptionDark:focus *,
.tagOptionDark:active * {
- color: #ffffff !important;
+ color: #fff !important;
background-color: transparent !important;
}
@@ -499,7 +501,7 @@
.formControlDark {
background-color: #1C2541 !important;
- color: #ffffff !important;
+ color: #fff !important;
border: 1px solid #404040 !important;
box-shadow: none !important;
}
@@ -508,7 +510,7 @@
.formControlDark:active,
.formControlDark:focus-visible {
background-color: #1C2541 !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #2563eb !important;
box-shadow: none !important;
outline: none !important;
@@ -521,6 +523,7 @@
.deleteTagBtnDark:hover {
color: #ff3b3b;
}
+
/* Remove default arrow in all browsers */
.formSelectDark {
background-color: #1C2541;
@@ -529,35 +532,35 @@
/* Remove default arrows */
appearance: none;
- -webkit-appearance: none;
- -moz-appearance: none;
+ appearance: none;
+ appearance: none;
/* Add custom arrow spacing */
padding-right: 32px;
-
background-image: url("data:image/svg+xml;utf8,
");
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 18px;
}
+
/* Fix selected text background in dark mode */
.lessonPlaceholderTextDark::selection,
-.lessonPlaceholderTextDark::-moz-selection,
+.lessonPlaceholderTextDark::selection,
.lessonPlaceholderTextDark.form-control::selection,
-.lessonPlaceholderTextDark.form-control::-moz-selection,
+.lessonPlaceholderTextDark.form-control::selection,
+.lessonTitleInput::selection,
.lessonTitleInput::selection,
-.lessonTitleInput::-moz-selection,
.lessonTitleInputDark::selection,
-.lessonTitleInputDark::-moz-selection {
+.lessonTitleInputDark::selection {
background-color: #1C2541 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
/* Hide selection when the field is not focused */
.lessonTitleInputDark:not(:focus)::selection,
-.lessonTitleInputDark:not(:focus)::-moz-selection,
+.lessonTitleInputDark:not(:focus)::selection,
.lessonPlaceholderTextDark:not(:focus)::selection,
-.lessonPlaceholderTextDark:not(:focus)::-moz-selection {
+.lessonPlaceholderTextDark:not(:focus)::selection {
background-color: #1C2541 !important;
color: #1C2541 !important;
}
@@ -572,7 +575,7 @@
:global(body.dark-mode) .formContainerDark :global(textarea)::selection,
:global(body.bm-dashboard-dark) .formContainerDark :global(textarea)::selection {
background-color: #1C2541 !important;
- color: #ffffff !important;
+ color: #fff !important;
}
:global(body.dark-mode) .formContainerDark :global(input.form-control:not(:focus))::selection,
@@ -592,8 +595,8 @@
.formControlDark:-webkit-autofill:hover,
.formControlDark:-webkit-autofill:focus,
.formControlDark:-webkit-autofill:active {
- -webkit-box-shadow: 0 0 0 1000px #1C2541 inset !important;
- -webkit-text-fill-color: #ffffff !important;
+ box-shadow: 0 0 0 1000px #1C2541 inset !important;
+ -webkit-text-fill-color: #fff !important;
transition: background-color 9999s ease-in-out 0s;
}
@@ -602,18 +605,18 @@
.lessonTitleInputDark:-webkit-autofill:hover,
.lessonTitleInputDark:-webkit-autofill:focus,
.lessonTitleInputDark:-webkit-autofill:active {
- -webkit-box-shadow: 0 0 0 1000px #1C2541 inset !important;
- -webkit-text-fill-color: #ffffff !important;
- caret-color: #ffffff !important;
+ box-shadow: 0 0 0 1000px #1C2541 inset !important;
+ -webkit-text-fill-color: #fff !important;
+ caret-color: #fff !important;
}
:global(body.dark-mode) .formContainerDark :global(input.form-control:-webkit-autofill),
:global(body.bm-dashboard-dark) .formContainerDark :global(input.form-control:-webkit-autofill),
:global(body.dark-mode) .formContainerDark :global(input[type='text']:-webkit-autofill),
:global(body.bm-dashboard-dark) .formContainerDark :global(input[type='text']:-webkit-autofill) {
- -webkit-box-shadow: 0 0 0 1000px #1C2541 inset !important;
- -webkit-text-fill-color: #ffffff !important;
- caret-color: #ffffff !important;
+ box-shadow: 0 0 0 1000px #1C2541 inset !important;
+ -webkit-text-fill-color: #fff !important;
+ caret-color: #fff !important;
}
@@ -626,7 +629,7 @@
.lessonPlaceholderTextDark.form-control:active,
.lessonPlaceholderTextDark.form-control:focus-visible {
background-color: #1C2541 !important;
- color: #ffffff !important;
+ color: #fff !important;
border: 1px solid #404040 !important;
box-shadow: none !important;
outline: none !important;
diff --git a/src/components/BMDashboard/LogTools/LogTools.module.css b/src/components/BMDashboard/LogTools/LogTools.module.css
index 6afcb1f75d..647b268096 100644
--- a/src/components/BMDashboard/LogTools/LogTools.module.css
+++ b/src/components/BMDashboard/LogTools/LogTools.module.css
@@ -1,4 +1,5 @@
/* Custom dark mode table row hover effect */
+
/* Improved dark mode table row hover effect */
.toolTypeRow.dark-mode:hover,
tr.toolTypeRow.dark-mode:hover,
@@ -8,6 +9,7 @@ tbody tr.toolTypeRow.dark-mode:hover {
border: inherit !important;
transition: none !important;
}
+
.page {
margin: 0;
display: flex;
@@ -22,7 +24,7 @@ tbody tr.toolTypeRow.dark-mode:hover {
}
.logFormContainer {
- background-color: #ffffff;
+ background-color: #fff;
margin: 0 auto;
max-width: 100vw;
max-height: 100vh;
@@ -41,7 +43,9 @@ tbody tr.toolTypeRow.dark-mode:hover {
background-color: #e8f4f9;
border-radius: 10px;
text-align: center;
+
/* border-bottom: 1px solid #707377; */
+
/* border-bottom: 1px solid #63676c; */
border-bottom: 1px solid #595d62;
}
@@ -54,7 +58,7 @@ tbody tr.toolTypeRow.dark-mode:hover {
.logFormCancelButton {
padding: 0.5rem 1.8rem !important;
font-size: 20px;
- background-color: #ffffff !important;
+ background-color: #fff !important;
color: #2e5061 !important;
border-width: 2px !important;
border-radius: 0.6rem !important;
@@ -63,7 +67,7 @@ tbody tr.toolTypeRow.dark-mode:hover {
.logFormSubmitButton {
background-color: #2e5061 !important;
- color: #ffffff !important;
+ color: #fff !important;
border-color: #2e5061 !important;
font-size: 20px;
padding: 0.5rem 1.8rem !important;
@@ -143,13 +147,17 @@ tbody tr.toolTypeRow.dark-mode:hover {
display: flex;
align-items: center;
column-gap: 1rem;
+
/* margin-top: 1rem; */
}
.tableSubtitle {
font-weight: 500;
+
/* color: #9fd0e5 */
+
/* color: #78bdda */
+
/* color: #3ea0cb */
color: #869aa3
}
diff --git a/src/components/BMDashboard/MaterialUsage/MaterialUsageChart.module.css b/src/components/BMDashboard/MaterialUsage/MaterialUsageChart.module.css
index 6f8a0d3db3..bf20e1549b 100644
--- a/src/components/BMDashboard/MaterialUsage/MaterialUsageChart.module.css
+++ b/src/components/BMDashboard/MaterialUsage/MaterialUsageChart.module.css
@@ -7,7 +7,7 @@
.materialChartModal :global(.modal-content) {
border-radius: 8px;
overflow: hidden;
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 4px 20px rgb(0 0 0 / 15%);
}
/* Header */
@@ -37,7 +37,7 @@
display: flex;
flex-direction: column;
min-height: 500px;
- background: #ffffff;
+ background: #fff;
}
/* Main Chart Container */
@@ -54,7 +54,7 @@
flex: 1;
position: relative;
min-height: 350px;
- background: #ffffff;
+ background: #fff;
border-radius: 8px;
padding: 1rem;
border: 1px solid #e9ecef;
@@ -72,7 +72,7 @@
transform: translate(-50%, -50%);
text-align: center;
z-index: 10;
- background: #ffffff;
+ background: #fff;
padding: 1rem;
border-radius: 50%;
width: 100px;
@@ -81,7 +81,7 @@
flex-direction: column;
align-items: center;
justify-content: center;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
border: 1px solid #f1f3f4;
}
@@ -117,7 +117,7 @@
align-items: center;
gap: 0.5rem;
padding: 0.4rem 0.8rem;
- background: #ffffff;
+ background: #fff;
border-radius: 4px;
border: 1px solid #dee2e6;
transition: all 0.2s ease;
@@ -125,15 +125,15 @@
.legendItem:hover {
transform: translateY(-1px);
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}
.legendColor {
width: 16px;
height: 16px;
border-radius: 3px;
- border: 2px solid #ffffff;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
+ border: 2px solid #fff;
+ box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
transition: transform 0.2s ease;
}
@@ -201,7 +201,7 @@
.chartRetryButton:hover {
background: #0056b3;
transform: translateY(-1px);
- box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
+ box-shadow: 0 2px 4px rgb(0 123 255 / 30%);
}
.chartRetryButton:active {
@@ -225,7 +225,7 @@
}
/* Responsive Design */
-@media (max-width: 768px) {
+@media (width <= 768px) {
.materialChartModal :global(.modal-dialog) {
max-width: 95%;
margin: 0.5rem auto;
@@ -274,7 +274,7 @@
}
}
-@media (max-width: 576px) {
+@media (width <= 576px) {
.materialChartModal :global(.modal-dialog) {
margin: 0.25rem auto;
max-width: 98%;
@@ -341,7 +341,7 @@
.darkMode .materialChartHeader {
background: #2d3748;
- color: #ffffff;
+ color: #fff;
border-bottom-color: #4a5568;
}
@@ -350,7 +350,7 @@
}
.darkMode .materialChartHeader :global(.close):hover {
- color: #ffffff;
+ color: #fff;
}
.darkMode .materialChartBody {
@@ -365,11 +365,11 @@
.darkMode .centerLabel {
background: #2d3748;
border-color: #4a5568;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
+ box-shadow: 0 2px 8px rgb(0 0 0 / 30%);
}
.darkMode .centerLabelValue {
- color: #ffffff;
+ color: #fff;
}
.darkMode .centerLabelSubtitle {
diff --git a/src/components/BMDashboard/ProjectStatus/ProjectStatusDonutChart.module.css b/src/components/BMDashboard/ProjectStatus/ProjectStatusDonutChart.module.css
index 0d9e347cf3..27b7b72f89 100644
--- a/src/components/BMDashboard/ProjectStatus/ProjectStatusDonutChart.module.css
+++ b/src/components/BMDashboard/ProjectStatus/ProjectStatusDonutChart.module.css
@@ -1,12 +1,12 @@
.container {
width: 100%;
margin-top: 20px;
- background: #ffffff;
+ background: #fff;
color: #111827;
padding: 20px;
border-radius: 12px;
position: relative;
- border: 1px solid rgba(0, 0, 0, 0.12);
+ border: 1px solid rgb(0 0 0 / 12%);
}
.title {
@@ -57,7 +57,7 @@
margin-bottom: 10px;
}
-@media (max-width: 768px) {
+@media (width <= 768px) {
.chartWrapper {
flex-direction: column;
gap: 28px;
@@ -78,16 +78,17 @@
text-align: center;
}
}
+
.centerLabel {
font-size: 16px;
font-weight: 600;
- fill: currentColor;
+ fill: currentcolor;
}
.centerValue {
font-size: 18px;
font-weight: 700;
- fill: currentColor;
+ fill: currentcolor;
}
.noDataMessage {
diff --git a/src/components/BMDashboard/Projects/ProjectDetails/ProjectDetails.module.css b/src/components/BMDashboard/Projects/ProjectDetails/ProjectDetails.module.css
index 17ccc453a1..624444b6fe 100644
--- a/src/components/BMDashboard/Projects/ProjectDetails/ProjectDetails.module.css
+++ b/src/components/BMDashboard/Projects/ProjectDetails/ProjectDetails.module.css
@@ -37,7 +37,7 @@
margin: 2em auto;
padding: 1em 2em;
width: 95%;
- color: #333333;
+ color: #333;
}
.log-bar {
@@ -46,7 +46,7 @@
.log-bar-dark {
background-color: #1b2a41;
- color: #ffffff;
+ color: #fff;
}
.log-bar__section {
@@ -59,15 +59,15 @@
.project-log :global(h2) {
font-size: 1em;
font-weight: bold;
- color: #333333;
+ color: #333;
text-align: center;
}
.log-bar-dark .log-bar__section h2,
.log-bar-dark .card.cards-container h2,
.log-bar-dark .project-log h2 {
- color: #ffffff !important;
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
+ color: #fff !important;
+ text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
}
/* Button Group Layout */
@@ -87,14 +87,14 @@
border-radius: 10px;
margin: 0.1em;
width: auto;
- color: #ffffff !important;
+ color: #fff !important;
font-weight: 500;
}
.button:hover {
outline: auto;
filter: brightness(130%);
- color: #ffffff !important;
+ color: #fff !important;
}
/* Button Colors */
@@ -136,7 +136,7 @@
}
/* Responsive Alignment */
-@media (min-width: 550px) {
+@media (width >= 550px) {
.log-bar,
.log-bar-dark {
flex-direction: column;
@@ -157,11 +157,10 @@
}
}
-@media (min-width: 880px) {
+@media (width >= 880px) {
.log-bar,
.log-bar-dark {
- flex-direction: row;
- flex-wrap: wrap;
+ flex-flow: row wrap;
justify-content: center;
align-items: flex-start;
margin: 2em;
@@ -169,8 +168,7 @@
.log-bar-dark {
display: flex;
- flex-direction: row;
- flex-wrap: wrap;
+ flex-flow: row wrap;
justify-content: center;
margin: 2em;
}
@@ -221,7 +219,7 @@
}
.project-details-dark .single-card:hover {
- box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.4);
+ box-shadow: 0 20px 20px 0 rgb(0 0 0 / 40%), 0 6px 20px 0 rgb(0 0 0 / 40%);
}
.project-details-dark .single-card__info {
@@ -241,7 +239,7 @@
.cards-container__header {
font-size: 1em;
font-weight: bold;
- color: #333333;
+ color: #333;
margin-bottom: 1em;
}
@@ -270,7 +268,7 @@
justify-content: center;
align-items: center;
overflow: hidden;
- background-color: #ffffff;
+ background-color: #fff;
border-radius: 5px 5px 0 0;
}
@@ -280,13 +278,13 @@
object-fit: cover;
image-rendering: auto;
filter: none;
- -webkit-filter: none;
+ filter: none;
backface-visibility: hidden;
transform: translateZ(0);
}
.single-card:hover {
- box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
+ box-shadow: 0 20px 20px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 20%);
transform: translate3d(0.5px, 0.5px, 0.5px);
}
@@ -309,7 +307,7 @@
}
/* Card Sizing */
-@media (min-width: 992px) {
+@media (width >= 992px) {
.single-card {
width: calc(33.333% - 20px);
max-width: 180px;
@@ -317,7 +315,7 @@
}
}
-@media (min-width: 576px) and (max-width: 991px) {
+@media (width >= 576px) and (width <= 991px) {
.single-card {
width: calc(50% - 15px);
max-width: 180px;
@@ -325,7 +323,7 @@
}
}
-@media (max-width: 575px) {
+@media (width <= 575px) {
.single-card {
width: 90%;
max-width: 180px;
@@ -349,7 +347,7 @@
background-color: transparent;
}
-@media (max-width: 768px) {
+@media (width <= 768px) {
.project-log :global(td),
.project-log :global(th) {
font-size: 0.6em;
@@ -357,12 +355,12 @@
}
ul.log-bar__btn-group {
- padding: 0px;
+ padding: 0;
}
.dark-table-header th {
background-color: #1b2a41 !important;
- color: #ffffff !important;
+ color: #fff !important;
border-bottom: 1px solid #4f5f76;
}
diff --git a/src/components/BMDashboard/Projects/ProjectSummary.module.css b/src/components/BMDashboard/Projects/ProjectSummary.module.css
index 74c0fc26c9..06ef058ed3 100644
--- a/src/components/BMDashboard/Projects/ProjectSummary.module.css
+++ b/src/components/BMDashboard/Projects/ProjectSummary.module.css
@@ -46,7 +46,7 @@
white-space: nowrap;
}
-@media (max-width: 700px) {
+@media (width <= 700px) {
.projectSummaryLabel {
font-size: 14px;
}
diff --git a/src/components/BMDashboard/PurchaseRequests/PurchaseForm.module.css b/src/components/BMDashboard/PurchaseRequests/PurchaseForm.module.css
index 0b928ff655..a53e92cfa1 100644
--- a/src/components/BMDashboard/PurchaseRequests/PurchaseForm.module.css
+++ b/src/components/BMDashboard/PurchaseRequests/PurchaseForm.module.css
@@ -11,7 +11,7 @@
margin: 1rem auto;
}
-@media screen and (max-width: 800px) {
+@media screen and (width <= 800px) {
.purchaseRequestContainer {
width: 95%;
}
@@ -23,7 +23,7 @@
.purchaseForm input,
.purchaseForm select {
- background-color: rgb(249, 249, 249);
+ background-color: rgb(249 249 249);
}
.purchaseFlexGroup {
@@ -78,7 +78,7 @@
/* Invalid field styling */
.invalidField {
border-color: #dc3545 !important;
- box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
+ box-shadow: 0 0 0 0.2rem rgb(220 53 69 / 25%) !important;
}
/* Loading button state */
@@ -98,10 +98,11 @@
flex: 1;
}
-@media screen and (max-width: 640px) {
+@media screen and (width <= 640px) {
.purchaseFlexGroup {
display: block;
}
+
.purchaseQtyGroup {
width: auto;
}
@@ -114,8 +115,8 @@
:global(body.dark-mode) .purchaseRequestContainer select,
:global(body.bm-dashboard-dark) .purchaseRequestContainer select {
appearance: none;
- -webkit-appearance: none;
- -moz-appearance: none;
+ appearance: none;
+ appearance: none;
}
diff --git a/src/components/BMDashboard/RentalChart/ReturnedLateChart.module.css b/src/components/BMDashboard/RentalChart/ReturnedLateChart.module.css
index a64ccd70cd..4c76fb4d51 100644
--- a/src/components/BMDashboard/RentalChart/ReturnedLateChart.module.css
+++ b/src/components/BMDashboard/RentalChart/ReturnedLateChart.module.css
@@ -83,7 +83,7 @@
.returned-late-detail-backdrop {
position: fixed;
inset: 0;
- background: rgba(0, 0, 0, 0.25);
+ background: rgb(0 0 0 / 25%);
z-index: 2147483646;
}
@@ -95,14 +95,14 @@
height: 100vh;
padding: 20px;
z-index: 2147483647;
- box-shadow: -4px 0 10px rgba(0, 0, 0, 0.4);
- background: #ffffff;
- color: #111111;
+ box-shadow: -4px 0 10px rgb(0 0 0 / 40%);
+ background: #fff;
+ color: #111;
}
.dark-panel {
background: #0b2545;
- color: #ffffff;
+ color: #fff;
}
.returned-late-detail-close {
@@ -113,65 +113,66 @@
cursor: pointer;
color: inherit;
}
+
:global(html.dark-mode) .returned-late-chart h1,
:global(body.dark-mode) .returned-late-chart h1 {
- color: #ffffff;
+ color: #fff;
}
:global(html.dark-mode) .returned-late-filter-label,
:global(body.dark-mode) .returned-late-filter-label {
- color: #ffffff;
+ color: #fff;
}
:global(html.dark-mode) .returned-late-project-select,
:global(body.dark-mode) .returned-late-project-select {
background-color: #1e293b;
- color: #ffffff;
+ color: #fff;
border: 1px solid #475569;
}
:global(html.dark-mode) .returned-late-project-select option,
:global(body.dark-mode) .returned-late-project-select option {
background-color: #1e293b;
- color: #ffffff;
+ color: #fff;
}
:global(html.dark-mode) .returned-late-date-picker,
:global(body.dark-mode) .returned-late-date-picker {
background-color: #1e293b;
- color: #ffffff;
+ color: #fff;
border: 1px solid #475569;
}
:global(html.dark-mode) .returned-late-tools-select :global(.dropdown-container),
:global(body.dark-mode) .returned-late-tools-select :global(.dropdown-container) {
background-color: #1e293b;
- color: #ffffff;
+ color: #fff;
border: 1px solid #475569;
}
:global(html.dark-mode) .returned-late-tools-select :global(.dropdown-heading),
:global(body.dark-mode) .returned-late-tools-select :global(.dropdown-heading) {
- color: #ffffff;
+ color: #fff;
}
:global(html.dark-mode) .returned-late-tools-select :global(.select-panel),
:global(body.dark-mode) .returned-late-tools-select :global(.select-panel) {
background-color: #1e293b;
- color: #ffffff;
+ color: #fff;
border: 1px solid #475569;
}
:global(html.dark-mode) .returned-late-tools-select :global(.select-panel) :global(input),
:global(body.dark-mode) .returned-late-tools-select :global(.select-panel) :global(input) {
background-color: #0f172a;
- color: #ffffff;
+ color: #fff;
border: 1px solid #475569;
}
:global(html.dark-mode) .returned-late-tools-select :global(.select-item),
:global(body.dark-mode) .returned-late-tools-select :global(.select-item) {
- color: #ffffff;
+ color: #fff;
}
:global(html.dark-mode) .returned-late-tools-select :global(.select-item:hover),
diff --git a/src/components/BMDashboard/Team/CreateNewTeam/CreateNewTeam.module.css b/src/components/BMDashboard/Team/CreateNewTeam/CreateNewTeam.module.css
index 061c5cb6de..eb3116c967 100644
--- a/src/components/BMDashboard/Team/CreateNewTeam/CreateNewTeam.module.css
+++ b/src/components/BMDashboard/Team/CreateNewTeam/CreateNewTeam.module.css
@@ -1,4 +1,4 @@
- .addTeamForm Label{
+ .addTeamForm label{
font-size: .8em;
}
@@ -12,7 +12,7 @@
flex: 1; /* Ensure buttons share equal width */
}
- @media screen and (max-width: 800px) {
+ @media screen and (width <= 800px) {
.addTeamButtons {
gap: 0.5rem; /* Reduce gap for smaller screens */
}
@@ -33,17 +33,17 @@
background-color: #e7e7e7;
}
- .addTeamButtons Button:active {
+ .addTeamButtons button:active {
background-color: #e7e7e7;
}
- .addTeamButtons Button.outline {
+ .addTeamButtons button.outline {
background-color: transparent;
border-color: #ccc;
color: #333;
}
- .addTeamButtons Button.outline:hover {
+ .addTeamButtons button.outline:hover {
background-color: #f1f1f1;
border-color: #bbb;
}
@@ -93,32 +93,29 @@
gap: 10px;
}
- @media screen and (max-width: 800px) {
+ @media screen and (width <= 800px) {
.selectContainer {
flex-direction: column; /* Stack items vertically on small screens */
align-items: stretch; /* Make items take full width */
}
.selectContainer .memberDropdown,
- .selectContainer Button {
+ .selectContainer button {
width: 100%; /* Full width for dropdown and button */
}
- .selectContainer Button {
+ .selectContainer button {
max-width: 300px; /* Prevent it from growing too large */
min-width: 150px; /* Prevent it from shrinking too small */
}
}
- .addTeamContainer Button{
+ .addTeamContainer button{
flex-shrink: 0;
- padding: 8px 12px;
font-size: 1rem;
cursor: pointer;
color: white;
background-color: #f49441;
- border: none;
- border-radius: 4px;
transition: background-color 0.3s ease, transform 0.2s ease;
border-radius: 10px;
padding: 0.5rem;
@@ -126,12 +123,12 @@
width: 15%;
}
- .addTeamContainer Button:hover {
+ .addTeamContainer button:hover {
background-color: #d97a32;
transform: scale(1.05);
}
- .addTeamContainer Button:disabled {
+ .addTeamContainer button:disabled {
background-color: #ccc;
color: #666;
cursor: not-allowed;
@@ -146,7 +143,7 @@
border: 1px solid #ccc;
}
- @media screen and (max-width: 800px) {
+ @media screen and (width <= 800px) {
.addTeamContainer {
width: 95%;
}
diff --git a/src/components/BMDashboard/ToolItemList/ToolItemListView.module.css b/src/components/BMDashboard/ToolItemList/ToolItemListView.module.css
index 81b65046cd..0dbcd4b5db 100644
--- a/src/components/BMDashboard/ToolItemList/ToolItemListView.module.css
+++ b/src/components/BMDashboard/ToolItemList/ToolItemListView.module.css
@@ -9,7 +9,7 @@
.lightTheme {
- background-color: #ffffff;
+ background-color: #fff;
color: #111827;
}
@@ -132,7 +132,7 @@
/* LIGHT theme inputs */
.lightTheme .filterSelect,
.lightTheme .searchInput {
- background-color: #ffffff;
+ background-color: #fff;
color: #111827;
border-color: #d1d5db;
}
@@ -141,7 +141,7 @@
.lightTheme .searchInput:focus {
outline: none;
border-color: #2563eb;
- box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
+ box-shadow: 0 0 0 1px rgb(37 99 235 / 25%);
}
/* DARK theme inputs */
@@ -156,11 +156,11 @@
.darkTheme .searchInput:focus {
outline: none;
border-color: #4ba3ff;
- box-shadow: 0 0 0 1px rgba(75, 163, 255, 0.3);
+ box-shadow: 0 0 0 1px rgb(75 163 255 / 30%);
}
/* Responsive layout */
-@media (max-width: 900px) {
+@media (width <= 900px) {
.filtersRow {
align-items: flex-start;
}
@@ -221,7 +221,7 @@
}
.lightTheme .itemsTableContainer tbody tr {
- background-color: #ffffff;
+ background-color: #fff;
}
.lightTheme .itemsTableContainer tbody tr:nth-child(even) {
@@ -297,7 +297,7 @@
}
.darkTheme .itemsCell svg:hover {
- color: #ffffff;
+ color: #fff;
}
.conditionCell {
@@ -307,6 +307,7 @@
gap: 0.5rem;
padding-left: 0;
}
+
/* vertical-align: middle;
display: flex;
gap: 20px;
@@ -331,7 +332,7 @@
}
.darkTheme .form-select:focus {
- box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
+ box-shadow: 0 0 0 0.2rem rgb(59 130 246 / 25%);
border-color: #3b82f6;
}
diff --git a/src/components/BMDashboard/ToolItemList/ToolRecordsModal.module.css b/src/components/BMDashboard/ToolItemList/ToolRecordsModal.module.css
index 3774ec2063..e484e0db26 100644
--- a/src/components/BMDashboard/ToolItemList/ToolRecordsModal.module.css
+++ b/src/components/BMDashboard/ToolItemList/ToolRecordsModal.module.css
@@ -6,7 +6,7 @@
white-space: nowrap;
}
-@media (min-width: 1200px) {
+@media (width >= 1200px) {
.recordsModalTableContainer {
font-size: medium;
}
diff --git a/src/components/BMDashboard/ToolPurchaseRequest/PurchaseForm.module.css b/src/components/BMDashboard/ToolPurchaseRequest/PurchaseForm.module.css
index 144e610b1b..4e46ab55fb 100644
--- a/src/components/BMDashboard/ToolPurchaseRequest/PurchaseForm.module.css
+++ b/src/components/BMDashboard/ToolPurchaseRequest/PurchaseForm.module.css
@@ -4,7 +4,7 @@
.purchaseToolForm input,
.purchaseToolForm select {
- background-color: rgb(249, 249, 249);
+ background-color: rgb(249 249 249);
}
.purchaseToolFlexGroup {
@@ -41,10 +41,11 @@
color: red;
}
-@media screen and (max-width: 640px) {
+@media screen and (width <= 640px) {
.purchaseToolFlexGroup {
display: block;
}
+
.flexGroupQty {
width: auto;
}
diff --git a/src/components/BMDashboard/ToolPurchaseRequest/PurchaseTool.module.css b/src/components/BMDashboard/ToolPurchaseRequest/PurchaseTool.module.css
index a3ad7c9d6b..e824d2bec6 100644
--- a/src/components/BMDashboard/ToolPurchaseRequest/PurchaseTool.module.css
+++ b/src/components/BMDashboard/ToolPurchaseRequest/PurchaseTool.module.css
@@ -11,7 +11,7 @@
margin: 1rem auto;
}
- @media screen and (max-width: 800px) {
+ @media screen and (width <= 800px) {
.purchaseToolContainer {
width: 95%;
}
diff --git a/src/components/BMDashboard/Tools/AddTool.module.css b/src/components/BMDashboard/Tools/AddTool.module.css
index d60a7181e3..e1d65c34d4 100644
--- a/src/components/BMDashboard/Tools/AddTool.module.css
+++ b/src/components/BMDashboard/Tools/AddTool.module.css
@@ -13,7 +13,7 @@
}
-@media screen and (max-width: 800px) {
+@media screen and (width <= 800px) {
.addToolContainer {
width: 95%;
}
diff --git a/src/components/BMDashboard/Tools/AddToolForm.module.css b/src/components/BMDashboard/Tools/AddToolForm.module.css
index 3c0647bc27..3d7e247244 100644
--- a/src/components/BMDashboard/Tools/AddToolForm.module.css
+++ b/src/components/BMDashboard/Tools/AddToolForm.module.css
@@ -2,7 +2,7 @@
width: 100%;
}
-.addToolForm Label{
+.addToolForm label{
font-size: .8em;
}
@@ -59,7 +59,7 @@ font-size: .8em;
color: red;
}
-@media screen and (max-width: 640px) {
+@media screen and (width <= 640px) {
.addToolFlexGroup {
display: block;
}
diff --git a/src/components/BMDashboard/Tools/EquipmentUpdate.module.css b/src/components/BMDashboard/Tools/EquipmentUpdate.module.css
index bc3f3d57e6..82ec80f574 100644
--- a/src/components/BMDashboard/Tools/EquipmentUpdate.module.css
+++ b/src/components/BMDashboard/Tools/EquipmentUpdate.module.css
@@ -17,7 +17,7 @@
margin-left: 1rem;
}
-@media screen and (max-width: 800px) {
+@media screen and (width <= 800px) {
.equipmentUpdateContainer {
width: 95%;
}
diff --git a/src/components/BMDashboard/Tools/EquipmentUpdateForm.module.css b/src/components/BMDashboard/Tools/EquipmentUpdateForm.module.css
index 682efaf0d9..6852fa81ed 100644
--- a/src/components/BMDashboard/Tools/EquipmentUpdateForm.module.css
+++ b/src/components/BMDashboard/Tools/EquipmentUpdateForm.module.css
@@ -35,7 +35,7 @@
color: red;
}
-@media screen and (max-width: 600px) {
+@media screen and (width <= 600px) {
.addToolButtons {
flex-direction: column;
align-items: stretch;
@@ -46,7 +46,7 @@
}
}
-@media screen and (max-width: 400px) {
+@media screen and (width <= 400px) {
.addToolForm {
padding: 0.5rem;
}
@@ -72,8 +72,8 @@
background-repeat: no-repeat;
background-position: right 0.75rem center;
background-size: 12px;
- -webkit-appearance: none;
- -moz-appearance: none;
+ appearance: none;
+ appearance: none;
appearance: none;
padding-right: 2rem;
}
@@ -87,7 +87,7 @@
background-color: #34495e;
color: #f8f9fa;
border-color: #5a9fd4;
- box-shadow: 0 0 0 0.2rem rgba(90, 159, 212, 0.25);
+ box-shadow: 0 0 0 0.2rem rgb(90 159 212 / 25%);
}
:global(.bg-oxford-blue) .addToolForm :global(.form-control):disabled,
diff --git a/src/components/BMDashboard/Tools/SimpleToolChart.module.css b/src/components/BMDashboard/Tools/SimpleToolChart.module.css
index 89ecab8e47..129e88db51 100644
--- a/src/components/BMDashboard/Tools/SimpleToolChart.module.css
+++ b/src/components/BMDashboard/Tools/SimpleToolChart.module.css
@@ -7,7 +7,7 @@
--color-azure: #007bff;
/* Standard UI Colors */
- --bg-light: #ffffff;
+ --bg-light: #fff;
--text-light: #232323;
--text-dark: #e5e5e5;
--border-light: #d1d5db;
@@ -21,6 +21,7 @@
min-width: 100%;
padding: 24px;
box-sizing: border-box;
+
/* Light mode defaults */
background-color: var(--bg-light);
color: var(--text-light);
@@ -38,7 +39,7 @@
font-size: 24px;
font-weight: bold;
text-align: center;
- margin: 0 0 24px 0;
+ margin: 0 0 24px;
color: inherit;
}
@@ -104,7 +105,7 @@
.inputField:focus,
.datePickerButton:focus {
border-color: var(--color-azure);
- box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
+ box-shadow: 0 0 0 2px rgb(0 123 255 / 25%);
}
/* --- Date Picker Wrapper --- */
@@ -127,7 +128,7 @@
width: 100%;
background-color: var(--bg-light);
border: 1px solid var(--border-light);
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
+ box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -2px rgb(0 0 0 / 5%);
border-radius: 8px;
padding: 16px;
box-sizing: border-box;
@@ -198,7 +199,7 @@
.lightCalendar {
font-family: inherit;
border: 1px solid var(--border-light) !important;
- background-color: #ffffff !important;
+ background-color: #fff !important;
color: #333 !important;
}
diff --git a/src/components/BMDashboard/Tools/ToolDetailPage.module.css b/src/components/BMDashboard/Tools/ToolDetailPage.module.css
index 2564a27912..8e94e8ea11 100644
--- a/src/components/BMDashboard/Tools/ToolDetailPage.module.css
+++ b/src/components/BMDashboard/Tools/ToolDetailPage.module.css
@@ -28,7 +28,7 @@ margin-left: 1em;
}
button.descriptionItemButton{
- padding: 0em;
+ padding: 0;
margin-bottom: 1em;
}
diff --git a/src/components/BMDashboard/UpdateConsumables/UpdateConsumable.module.css b/src/components/BMDashboard/UpdateConsumables/UpdateConsumable.module.css
index d9890860e3..ea81f4ebf0 100644
--- a/src/components/BMDashboard/UpdateConsumables/UpdateConsumable.module.css
+++ b/src/components/BMDashboard/UpdateConsumables/UpdateConsumable.module.css
@@ -11,7 +11,7 @@
.updateConsumablePage {
width: 100%;
height: auto;
- margin: 0px;
+ margin: 0;
padding: 1rem 2rem;
font-size: 15px;
}
@@ -77,7 +77,7 @@
}
-@media (max-width: 992px) {
+@media (width <= 992px) {
.modalBody {
padding: 0 !important;
}
diff --git a/src/components/BMDashboard/UpdateMaterials/UpdateMaterial.module.css b/src/components/BMDashboard/UpdateMaterials/UpdateMaterial.module.css
index 0489ff44fd..b5ef22dd52 100644
--- a/src/components/BMDashboard/UpdateMaterials/UpdateMaterial.module.css
+++ b/src/components/BMDashboard/UpdateMaterials/UpdateMaterial.module.css
@@ -7,7 +7,7 @@
background-color: #E8F4F9;
width: 100%;
height: auto;
- margin: 0px;
+ margin: 0;
padding: 1rem 2rem;
font-size: 15px;
}
diff --git a/src/components/BMDashboard/UpdateMaterials/UpdateMaterialsBulk/UpdateMaterialsBulk.module.css b/src/components/BMDashboard/UpdateMaterials/UpdateMaterialsBulk/UpdateMaterialsBulk.module.css
index 1b02e64596..b2000df436 100644
--- a/src/components/BMDashboard/UpdateMaterials/UpdateMaterialsBulk/UpdateMaterialsBulk.module.css
+++ b/src/components/BMDashboard/UpdateMaterials/UpdateMaterialsBulk/UpdateMaterialsBulk.module.css
@@ -11,32 +11,32 @@
margin: 0.5rem;
}
-@media (min-width: 1024px) {
+@media (width >= 1024px) {
.logMaterialInputCol {
- margin: 0rem;
+ margin: 0;
}
}
-@media (min-width: 992px) and (max-width: 1024px) {
+@media (width >= 992px) and (width <= 1024px) {
.logMaterialInputCol {
- margin: 0rem;
+ margin: 0;
}
}
-@media (min-width: 768px) and (max-width: 992px) {
+@media (width >= 768px) and (width <= 992px) {
.logMaterialInputCol {
margin: 0.1rem;
}
}
-@media (min-width: 480px) and (max-width: 768px) {
+@media (width >= 480px) and (width <= 768px) {
.logMaterialInputCol {
margin: 0.2rem;
}
}
-@media (max-width: 480px) {
+@media (width <= 480px) {
.logMaterialInputCol {
margin: 0.3rem;
}
@@ -48,7 +48,7 @@
width: 100%;
min-height: 100vh;
height: auto;
- margin: 0px;
+ margin: 0;
padding: 3rem 4rem;
}
@@ -70,7 +70,6 @@
.logMTableHeaderLine {
font-weight: 500;
- padding: 10px;
vertical-align: bottom;
border-bottom: 2px solid #dee2e6;
background-color: #E8F4F9;
diff --git a/src/components/BMDashboard/UpdateReusables/UpdateReusablesBulk/UpdateReusablesBulk.module.css b/src/components/BMDashboard/UpdateReusables/UpdateReusablesBulk/UpdateReusablesBulk.module.css
index eb69beaf2f..e4124e85a3 100644
--- a/src/components/BMDashboard/UpdateReusables/UpdateReusablesBulk/UpdateReusablesBulk.module.css
+++ b/src/components/BMDashboard/UpdateReusables/UpdateReusablesBulk/UpdateReusablesBulk.module.css
@@ -11,32 +11,32 @@
margin: 0.5rem;
}
-@media (min-width: 1024px) {
+@media (width >= 1024px) {
.logReusableInputCol {
- margin: 0rem;
+ margin: 0;
}
}
-@media (min-width: 992px) and (max-width: 1024px) {
+@media (width >= 992px) and (width <= 1024px) {
.logReusableInputCol {
- margin: 0rem;
+ margin: 0;
}
}
-@media (min-width: 768px) and (max-width: 992px) {
+@media (width >= 768px) and (width <= 992px) {
.logReusableInputCol {
margin: 0.1rem;
}
}
-@media (min-width: 480px) and (max-width: 768px) {
+@media (width >= 480px) and (width <= 768px) {
.logReusableInputCol {
margin: 0.2rem;
}
}
-@media (max-width: 480px) {
+@media (width <= 480px) {
.logReusableInputCol {
margin: 0.3rem;
}
@@ -48,7 +48,7 @@
width: 100%;
min-height: 100vh;
height: auto;
- margin: 0px;
+ margin: 0;
padding: 3rem 4rem;
}
@@ -70,7 +70,6 @@
.logMTableHeaderLine {
font-weight: 500;
- padding: 10px;
vertical-align: bottom;
border-bottom: 2px solid #dee2e6;
background-color: #E8F4F9;
diff --git a/src/components/BMDashboard/UpdateTools/UpdateTool.module.css b/src/components/BMDashboard/UpdateTools/UpdateTool.module.css
index 9bebe5c840..bf1ff301df 100644
--- a/src/components/BMDashboard/UpdateTools/UpdateTool.module.css
+++ b/src/components/BMDashboard/UpdateTools/UpdateTool.module.css
@@ -60,5 +60,5 @@
.darkBlueBackdrop {
- background-color: rgba(0, 0, 0, 0.5) !important;
+ background-color: rgb(0 0 0 / 50%) !important;
}
\ No newline at end of file
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/ActualVsPlannedCost/ActualVsPlannedCost.module.css b/src/components/BMDashboard/WeeklyProjectSummary/ActualVsPlannedCost/ActualVsPlannedCost.module.css
index 0e2ea03f46..fda58a2403 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/ActualVsPlannedCost/ActualVsPlannedCost.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/ActualVsPlannedCost/ActualVsPlannedCost.module.css
@@ -42,7 +42,7 @@
color: var(--text-color);
}
-@media (max-width: 768px) {
+@media (width <= 768px) {
.selectorsContainer {
flex-direction: column;
gap: 0.5rem;
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/DistributionLaborHours/DistributionLaborHours.module.css b/src/components/BMDashboard/WeeklyProjectSummary/DistributionLaborHours/DistributionLaborHours.module.css
index 65f79e38fb..83f0a1b2ae 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/DistributionLaborHours/DistributionLaborHours.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/DistributionLaborHours/DistributionLaborHours.module.css
@@ -1,7 +1,7 @@
.container {
border-radius: 8px;
padding: 16px;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 1px 3px rgb(0 0 0 / 15%);
width: 100%;
height: 100%;
display: flex;
@@ -42,7 +42,7 @@
:global(.dark) .filters label,
:global(.dark-mode) .filters label,
:global([data-theme='dark']) .filters label {
- color: #ffffff;
+ color: #fff;
}
/* Dark mode: style inputs/selects (including date picker) */
@@ -102,26 +102,26 @@
:global(.dark) .tooltip,
:global(.dark-mode) .tooltip,
:global([data-theme='dark']) .tooltip {
- color: #ffffff;
+ color: #fff;
}
:global(.dark) .tooltip:hover,
:global(.dark-mode) .tooltip:hover,
:global([data-theme='dark']) .tooltip:hover {
- color: #ffffff;
+ color: #fff;
}
/* Dark mode: force ALL tooltip text to white */
:global(.dark) .tooltip *,
:global(.dark-mode) .tooltip *,
:global([data-theme='dark']) .tooltip * {
- color: #ffffff !important;
+ color: #fff !important;
}
/* Submit button – light & dark mode safe */
.button {
background-color: #2563eb; /* blue */
- color: #ffffff; /* white text */
+ color: #fff; /* white text */
border: none;
border-radius: 6px;
padding: 8px 16px;
@@ -139,7 +139,7 @@
:global(.dark-mode) .button,
:global([data-theme='dark']) .button {
background-color: #2563eb;
- color: #ffffff;
+ color: #fff;
}
.pieChartContainer {
@@ -149,7 +149,7 @@
width: 100%;
}
-@media (max-width: 768px) {
+@media (width <= 768px) {
.chartWrapper {
flex-direction: column;
align-items: center;
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/GroupedBarGraphInjurySeverity/InjuryCategoryBarChart.module.css b/src/components/BMDashboard/WeeklyProjectSummary/GroupedBarGraphInjurySeverity/InjuryCategoryBarChart.module.css
index 4a2a048eb3..bcff1ebcf3 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/GroupedBarGraphInjurySeverity/InjuryCategoryBarChart.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/GroupedBarGraphInjurySeverity/InjuryCategoryBarChart.module.css
@@ -8,26 +8,28 @@
}
:global(.darkMode .injurySelect__single-value) {
- color: #ffffff !important;
+ color: #fff !important;
opacity: 1 !important;
}
/* FORCE FILTER LABEL VISIBILITY IN DARK MODE (PROJECTS, SEVERITIES, START/END DATE) */
:global(.darkMode .filter label) {
- color: #ffffff !important;
+ color: #fff !important;
}
/* Explicit fix for Start Date / End Date labels rendered by DatePicker */
:global(.darkMode label[for="start-date"]),
:global(.darkMode label[for="end-date"]) {
- color: #ffffff !important;
+ color: #fff !important;
}
+
:global(.darkMode .react-datepicker__input-container input) {
background-color: #2b3e59 !important;
border: 1px solid grey;
border-radius: 2px;
- color: #ffffff !important;
+ color: #fff !important;
}
+
/* ================= LABEL VISIBILITY FIX ================= */
:global(.darkMode .injury-filter label) {
color: #f3f4f6; /* greyish white, NOT pure white */
@@ -36,6 +38,7 @@
}
/* ================= DATE INPUT DARK MODE FIX ================= */
+
/* :global(.darkMode .injury-date-input) {
background-color: #2b3e59 !important;
color: #f3f4f6 !important;
@@ -49,6 +52,7 @@
background-color: #2b3e59 !important;
color: #f3f4f6 !important;
} */
+
/* ---- HOTFIX: react-select classNamePrefix is `injury-select` (with a hyphen), so we must target those global classes ---- */
:global(.darkMode .injury-select__control) {
@@ -62,23 +66,23 @@
:global(.darkMode .injury-select__input),
:global(.darkMode .injury-select__multi-value__label),
:global(.darkMode .injury-select__placeholder) {
- color: #ffffff !important;
+ color: #fff !important;
opacity: 1 !important;
}
/* Ensure selected value is clearly visible in the control */
:global(.darkMode .injury-select__value-container),
:global(.darkMode .injury-select__value-container--has-value) {
- color: #ffffff !important;
+ color: #fff !important;
}
/* Multi-select chip background + text */
:global(.darkMode .injury-select__multi-value) {
- background-color: rgba(255, 255, 255, 0.12) !important;
+ background-color: rgb(255 255 255 / 12%) !important;
}
:global(.darkMode .injury-select__multi-value__remove) {
- color: #ffffff !important;
+ color: #fff !important;
}
/* Menu options */
@@ -93,13 +97,13 @@
}
:global(.darkMode .injury-select__option--is-focused) {
- background-color: rgba(255, 255, 255, 0.12) !important;
- color: #ffffff !important;
+ background-color: rgb(255 255 255 / 12%) !important;
+ color: #fff !important;
}
:global(.darkMode .injury-select__option--is-selected) {
- background-color: rgba(255, 255, 255, 0.2) !important;
- color: #ffffff !important;
+ background-color: rgb(255 255 255 / 20%) !important;
+ color: #fff !important;
}
@@ -108,9 +112,10 @@
/* Selected value text → BLACK in dark mode */
:global(.darkMode .injury-select__single-value),
:global(.darkMode .injury-select__multi-value__label) {
- color: #000000 !important;
+ color: #000 !important;
opacity: 1 !important;
}
+
/* Ensure filter blocks always stack label + input vertically */
:global(.filter) {
display: flex;
@@ -141,9 +146,10 @@
/* Ensure input text while typing is also black */
:global(.darkMode .injurySelect__input-container),
:global(.darkMode .injurySelect__input) {
- color: #000000 !important;
+ color: #000 !important;
}
+
/* Recharts default tick text selector (X axis) */
:global(.darkMode .recharts-xAxis .recharts-cartesian-axis-tick-value) {
- fill: #ffffff !important;
+ fill: #fff !important;
}
\ No newline at end of file
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/IssueBreakdownChart.module.css b/src/components/BMDashboard/WeeklyProjectSummary/IssueBreakdownChart.module.css
index b558caa36f..326b45a987 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/IssueBreakdownChart.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/IssueBreakdownChart.module.css
@@ -5,7 +5,7 @@
height: 100%;
background: var(--card-bg, #fafbfc);
border-radius: 18px;
- box-shadow: 0 2px 12px var(--card-shadow, rgba(0, 0, 0, 0.06));
+ box-shadow: 0 2px 12px var(--card-shadow, rgb(0 0 0 / 6%));
padding: 32px;
display: flex;
flex-direction: column;
@@ -65,8 +65,8 @@
/* Dark mode legend label */
:global(.dark-mode) .legendLabel {
- color: #ffffff;
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
+ color: #fff;
+ text-shadow: 0 1px 2px rgb(0 0 0 / 10%);
}
.filtersRow {
@@ -517,13 +517,13 @@
=========================== */
/* Responsive design */
-@media (max-width: 768px) {
+@media (width <= 768px) {
.container {
padding: 20px;
}
/* Tablets */
-@media (max-width: 1024px) {
+@media (width <= 1024px) {
.heading {
font-size: 28px;
}
@@ -553,7 +553,7 @@
}
/* Mobile */
-@media (max-width: 768px) {
+@media (width <= 768px) {
.heading {
font-size: 22px;
}
@@ -580,7 +580,7 @@
}
/* Very small screens */
-@media (max-width: 480px) {
+@media (width <= 480px) {
.chartContainer {
height: 320px;
width: 100%;
@@ -595,7 +595,8 @@
}
.legendBox {
- border: 1px solid currentColor;
+ border: 1px solid currentcolor;
+
/* Reduce label size and opacity instead of hiding */
:global(.recharts-label-list text) {
font-size: 8px;
@@ -611,34 +612,37 @@
font-weight: 600;
font-size: 12px;
}
+
/* Selected value text — DARK MODE (keep text black) */
:global(.darkMode .injurySelect__single-value) {
- color: #000000 !important;
+ color: #000 !important;
}
:global(.darkMode .injurySelect__multi-value__label) {
- color: #000000 !important;
+ color: #000 !important;
}
/* Ensure input text while typing is also black */
:global(.darkMode .injurySelect__input-container),
:global(.darkMode .injurySelect__input) {
- color: #000000 !important;
+ color: #000 !important;
}
/* Ensure clear (×) and dropdown arrow are black in dark mode */
:global(.darkMode .injurySelect__clear-indicator),
:global(.darkMode .injurySelect__dropdown-indicator) {
- color: #000000 !important;
+ color: #000 !important;
}
:global(.darkMode .injurySelect__clear-indicator:hover),
:global(.darkMode .injurySelect__dropdown-indicator:hover) {
- color: #000000 !important;
+ color: #000 !important;
}
+
:global(.filter label) {
margin-bottom: 4px;
}
+
/* Ensure filter blocks always stack label + input vertically */
:global(.filter) {
display: flex;
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/MaterialStockOutRiskIndicator/MaterialStockOutRiskIndicator.module.css b/src/components/BMDashboard/WeeklyProjectSummary/MaterialStockOutRiskIndicator/MaterialStockOutRiskIndicator.module.css
index e7958d7f2f..e4a242b742 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/MaterialStockOutRiskIndicator/MaterialStockOutRiskIndicator.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/MaterialStockOutRiskIndicator/MaterialStockOutRiskIndicator.module.css
@@ -1,9 +1,9 @@
/* Material Stock-Out Risk Indicator Card */
.card {
- background-color: var(--card-bg, #ffffff);
+ background-color: var(--card-bg, #fff);
border-radius: 8px;
padding: 20px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
display: flex;
flex-direction: column;
transition: transform 0.2s ease;
@@ -12,7 +12,7 @@
.card:hover {
transform: translateY(-2px);
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 4px 8px rgb(0 0 0 / 15%);
}
.card.darkMode {
@@ -39,7 +39,7 @@
}
.card.darkMode .title {
- color: #ffffff;
+ color: #fff;
}
.projectLabel {
@@ -47,13 +47,13 @@
color: var(--text-color-secondary, #666);
font-weight: 500;
padding: 4px 8px;
- background-color: rgba(0, 0, 0, 0.05);
+ background-color: rgb(0 0 0 / 5%);
border-radius: 4px;
}
.card.darkMode .projectLabel {
color: #aaa;
- background-color: rgba(255, 255, 255, 0.1);
+ background-color: rgb(255 255 255 / 10%);
}
/* Filter Group */
@@ -84,15 +84,19 @@
display: flex;
flex-direction: column;
min-height: 0;
+
/* Prevent chart from shrinking on small screens */
min-width: 600px;
+
/* Enable horizontal scrolling on small screens with smooth scrolling */
- overflow-x: auto;
- overflow-y: visible;
+ overflow: auto visible;
+
/* Align chart to left */
align-items: flex-start;
+
/* Smooth scrolling for better UX */
scroll-behavior: smooth;
+
/* Add padding for scrollbar */
padding-bottom: 10px;
}
@@ -102,6 +106,7 @@
min-width: 600px;
width: 100%;
flex-shrink: 0;
+
/* Ensure left alignment */
display: flex;
justify-content: flex-start;
@@ -199,23 +204,23 @@
/* Tooltip */
.tooltip {
- background-color: rgba(255, 255, 255, 0.95);
+ background-color: rgb(255 255 255 / 95%);
border: 1px solid #ccc;
border-radius: 4px;
padding: 10px 14px;
font-size: 12px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
max-width: 250px;
}
.card.darkMode .tooltip {
- background-color: rgba(44, 51, 68, 0.95);
+ background-color: rgb(44 51 68 / 95%);
border-color: #555;
}
.tooltipLabel {
font-weight: 600;
- margin: 0 0 6px 0;
+ margin: 0 0 6px;
color: #333;
border-bottom: 1px solid #eee;
padding-bottom: 4px;
@@ -245,7 +250,7 @@
}
.tooltipProject {
- margin: 4px 0 0 0;
+ margin: 4px 0 0;
color: #666;
font-size: 11px;
}
@@ -256,7 +261,7 @@
.tooltipStock,
.tooltipUsage {
- margin: 4px 0 0 0;
+ margin: 4px 0 0;
color: #666;
font-size: 11px;
}
@@ -281,11 +286,11 @@
.legend {
margin-top: 20px;
padding-top: 16px;
- border-top: 1px solid rgba(0, 0, 0, 0.1);
+ border-top: 1px solid rgb(0 0 0 / 10%);
}
.card.darkMode .legend {
- border-top-color: rgba(255, 255, 255, 0.2);
+ border-top-color: rgb(255 255 255 / 20%);
}
.legendTitle {
@@ -322,18 +327,19 @@
width: 16px;
height: 16px;
border-radius: 3px;
- border: 1px solid rgba(0, 0, 0, 0.1);
+ border: 1px solid rgb(0 0 0 / 10%);
}
.card.darkMode .legendColor {
- border-color: rgba(255, 255, 255, 0.2);
+ border-color: rgb(255 255 255 / 20%);
}
/* Responsive adjustments */
-@media (max-width: 768px) {
+@media (width <= 768px) {
.card {
padding: 16px;
min-height: 350px;
+
/* Allow horizontal scroll on small screens */
overflow-x: auto;
}
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/PaidLaborCost/PaidLaborCost.module.css b/src/components/BMDashboard/WeeklyProjectSummary/PaidLaborCost/PaidLaborCost.module.css
index 33a2302550..8068d8d1bb 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/PaidLaborCost/PaidLaborCost.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/PaidLaborCost/PaidLaborCost.module.css
@@ -3,7 +3,7 @@
font-family: inherit;
padding: 10px;
border-radius: 8px;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
+ box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
}
@@ -78,6 +78,7 @@
max-width: 600px;
margin: 0 auto;
}
+
/* Date Picker */
.paid-labor-cost-custom-date-range-picker {
@@ -91,9 +92,12 @@
.paid-labor-cost-date-range-input {
/* display: flex; */
+
/* justify-content: space-between; */
margin-top: 3px;
+
/* padding: 2px 4px; */
+
/* border: 1px solid #ddd; */
transition: border-color 0.2s;
flex: 1;
@@ -134,7 +138,7 @@
max-width: 95vw;
background-color: white;
border-radius: 8px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
z-index: 999;
overflow: hidden;
box-sizing: border-box;
@@ -257,12 +261,13 @@
color: #666;
}
-@media screen and (max-width: 1130px) {
+@media screen and (width <= 1130px) {
.paid-labor-cost-custom-date-range-picker {
max-width: 100%;
min-width: auto;
flex: 1 1 100%;
}
+
.paid-labor-cost-date-range-calendar {
left: 50%;
transform: translateX(-50%);
@@ -314,7 +319,7 @@
.dark-mode .paid-labor-cost-date-range-calendar {
background-color: var(--card-bg);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
+ box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
}
.dark-mode .paid-labor-cost-calendar-header {
@@ -363,7 +368,7 @@
}
.dark-mode .paid-labor-cost-day.in-range {
- background-color: rgba(232, 167, 28, 0.2); /* var(--button-bg) with opacity */
+ background-color: rgb(232 167 28 / 20%); /* var(--button-bg) with opacity */
}
.dark-mode .paid-labor-cost-day.disabled {
@@ -449,7 +454,7 @@
border: 1px solid #ccc;
border-radius: 4px;
padding: 0.25rem;
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 1px 4px rgb(0 0 0 / 10%);
font-size: 0.75rem;
color: #333;
z-index: 100;
@@ -466,10 +471,10 @@
right: 10px;
border-width: 5px;
border-style: solid;
- border-color: transparent transparent #fff transparent;
+ border-color: transparent transparent #fff;
}
-@media (max-width: 768px) {
+@media (width <= 768px) {
/* Stack filters & inputs vertically when screen narrows */
.paid-labor-cost-input-wrapper {
flex-direction: column;
@@ -489,7 +494,7 @@
}
}
-@media (max-width: 480px) {
+@media (width <= 480px) {
.paid-labor-cost-input-wrapper {
margin-bottom: 0.5rem;
}
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/ProjectRiskProfileOverview.module.css b/src/components/BMDashboard/WeeklyProjectSummary/ProjectRiskProfileOverview.module.css
index 85f5697447..129e16e01a 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/ProjectRiskProfileOverview.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/ProjectRiskProfileOverview.module.css
@@ -1,5 +1,5 @@
.chartCard {
- background-color: #ffffff;
+ background-color: #fff;
color: #232323;
border-radius: 8px;
box-shadow: 0 2px 8px #eee;
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/QuantityOfMaterialsUsed/QuantityOfMaterialsUsed.module.css b/src/components/BMDashboard/WeeklyProjectSummary/QuantityOfMaterialsUsed/QuantityOfMaterialsUsed.module.css
index 19757367f3..8f86732704 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/QuantityOfMaterialsUsed/QuantityOfMaterialsUsed.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/QuantityOfMaterialsUsed/QuantityOfMaterialsUsed.module.css
@@ -16,8 +16,7 @@
/* Chart Container */
.quantityOfMaterialsUsedChartContainer {
width: 100%;
- overflow-x: auto;
- overflow-y: hidden;
+ overflow: auto hidden;
-webkit-overflow-scrolling: touch;
scrollbar-width: thin;
scrollbar-color: transparent transparent;
@@ -90,6 +89,7 @@ div.weeklyProjectSummaryCard.normalCard .dropdownItem {
background-color: var(--card-bg) !important;
color: var(--text-color) !important;
}
+
/* Ensure selected dropdown option is highlighted */
.quantityOfMaterialsUsedCard .customSelect_option-IsSelected {
background-color: var(--button-hover) !important;
@@ -142,6 +142,7 @@ div.weeklyProjectSummaryCard.normalCard .dropdownItem {
.quantityOfMaterialsUsedCard .customSelect_valueContainer:hover::-webkit-scrollbar-thumb {
background: #666;
}
+
.quantityOfMaterialsUsedCard .multiSelect .customSelect_valueContainer {
max-width: 75%;
}
@@ -161,7 +162,7 @@ div.weeklyProjectSummaryCard.normalCard .dropdownItem {
.quantityOfMaterialsUsedCard .customSelect_multiValue_label {
font-size: 8px;
padding: 0 4px;
- color: #0066cc;
+ color: #06c;
}
/* Multi-Value Remove Button */
@@ -188,7 +189,6 @@ div.weeklyProjectSummaryCard.normalCard .dropdownItem {
top: 50%;
transform: translateY(-50%);
background-color: white;
- z-index: 3;
z-index: 5;
}
@@ -326,7 +326,7 @@ div.weeklyProjectSummaryCard.normalCard .dropdownItem {
}
/* Adjust Drop downs on medium size screens */
-@media (max-width: 1200px) {
+@media (width <= 1200px) {
div.weeklyProjectSummaryCard.normalCard .dropdownContainer {
flex-direction: column !important;
align-items: center !important;
@@ -349,7 +349,7 @@ div.weeklyProjectSummaryCard.normalCard .dropdownItem {
.quantityModalOverlay {
position: fixed;
inset: 0;
- background-color: rgba(0, 0, 0, 0.5);
+ background-color: rgb(0 0 0 / 50%);
z-index: 1000;
display: flex;
align-items: center;
@@ -365,7 +365,7 @@ div.weeklyProjectSummaryCard.normalCard .dropdownItem {
width: 90%;
max-height: 80vh;
overflow-y: auto;
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
+ box-shadow: 0 0 20px rgb(0 0 0 / 30%);
animation: modalFadeIn 0.25s ease;
}
@@ -394,6 +394,7 @@ div.weeklyProjectSummaryCard.normalCard .dropdownItem {
cursor: pointer;
transition: background 0.2s ease;
}
+
.quantityModalCloseButton:hover {
background: var(--button-secondary-hover, #555);
}
@@ -433,6 +434,7 @@ div.weeklyProjectSummaryCard.normalCard .dropdownItem {
transform: scale(0.96);
opacity: 0;
}
+
to {
transform: scale(1);
opacity: 1;
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/SupplierPerformanceGraph.module.css b/src/components/BMDashboard/WeeklyProjectSummary/SupplierPerformanceGraph.module.css
index 7decf06c53..c6f9fd9caf 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/SupplierPerformanceGraph.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/SupplierPerformanceGraph.module.css
@@ -2,11 +2,11 @@
/* Main Card Component */
.supplier-performance-card {
- background-color: var(--card-bg, #ffffff);
+ background-color: var(--card-bg, #fff);
border-radius: 8px;
padding: 16px;
height: 100%;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
display: flex;
flex-direction: column;
transition: transform 0.2s ease;
@@ -16,12 +16,13 @@
.supplier-performance-card:hover {
transform: translateY(-2px);
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 4px 8px rgb(0 0 0 / 15%);
}
/* Dark Mode Overrides for Card */
.supplier-performance-card.supplier-performance-dark-mode {
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
+ box-shadow: 0 2px 4px rgb(0 0 0 / 30%);
+
/* Background relies on global var(--card-bg) */
}
@@ -29,14 +30,14 @@
.supplier-performance-title {
font-size: 16px;
font-weight: 600;
- margin: 0 0 16px 0;
+ margin: 0 0 16px;
color: var(--text-color, #333);
text-align: center;
flex-shrink: 0;
}
.supplier-performance-dark-mode .supplier-performance-title {
- color: #ffffff;
+ color: #fff;
}
/* Content Area */
@@ -51,7 +52,7 @@
/* Filters Styling */
.supplier-performance-filters {
padding: 12px 0;
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
+ border-bottom: 1px solid rgb(0 0 0 / 10%);
margin-bottom: 12px;
display: flex;
gap: 16px;
@@ -59,7 +60,7 @@
}
.supplier-performance-dark-mode .supplier-performance-filters {
- border-bottom-color: rgba(255, 255, 255, 0.2);
+ border-bottom-color: rgb(255 255 255 / 20%);
}
.supplier-performance-filter-group {
@@ -99,7 +100,7 @@
.supplier-performance-select:focus {
border-color: #2196f3;
- box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
+ box-shadow: 0 0 0 2px rgb(33 150 243 / 20%);
}
/* DARK MODE INPUTS - EXACT COLOR MATCH
@@ -124,29 +125,29 @@
/* Focus State in Dark Mode */
.supplier-performance-dark-mode .supplier-performance-select:focus {
border-color: #2196f3 !important;
- box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2) !important;
+ box-shadow: 0 0 0 2px rgb(33 150 243 / 20%) !important;
}
/* Tooltip Styling */
.supplier-performance-tooltip {
- background-color: rgba(255, 255, 255, 0.95);
+ background-color: rgb(255 255 255 / 95%);
border: 1px solid #ccc;
border-radius: 4px;
padding: 8px 12px;
font-size: 12px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
max-width: 200px;
z-index: 1000;
}
.supplier-performance-tooltip-label {
font-weight: 600;
- margin: 0 0 4px 0;
+ margin: 0 0 4px;
color: #333;
}
.supplier-performance-dark-mode .supplier-performance-tooltip {
- background-color: rgba(45, 45, 45, 0.95);
+ background-color: rgb(45 45 45 / 95%);
border-color: #555;
}
@@ -177,7 +178,7 @@
color: #f44336;
}
-@media (max-width: 768px) {
+@media (width <= 768px) {
.supplier-performance-filters {
flex-direction: column;
gap: 12px;
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/ToolStatusDonutChart/ToolStatusDonutChart.module.css b/src/components/BMDashboard/WeeklyProjectSummary/ToolStatusDonutChart/ToolStatusDonutChart.module.css
index 988ced2c86..c347fa259a 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/ToolStatusDonutChart/ToolStatusDonutChart.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/ToolStatusDonutChart/ToolStatusDonutChart.module.css
@@ -1,6 +1,7 @@
.toolDonutWrapper {
--donut-text-color: #000;
--legend-text-color: #000;
+
width: 100%;
height: 100%;
margin: 0 auto;
@@ -65,7 +66,7 @@
}
.toolDonutLegendItem {
- color: #ffffff;
+ color: #fff;
padding: 6px 16px;
border-radius: 0;
font-size: 14px;
@@ -75,7 +76,7 @@
}
/* Responsive adjustments for donut chart */
-@media (max-width: 768px) {
+@media (width <= 768px) {
.toolDonutFilters {
flex-direction: column;
gap: 1rem;
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/Tools/ToolsAvailabilityPage.module.css b/src/components/BMDashboard/WeeklyProjectSummary/Tools/ToolsAvailabilityPage.module.css
index a911dde851..5eccc0891b 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/Tools/ToolsAvailabilityPage.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/Tools/ToolsAvailabilityPage.module.css
@@ -61,7 +61,7 @@
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 14px;
- background-color: #ffffff;
+ background-color: #fff;
color: #374151;
min-width: 140px;
transition: all 0.2s ease;
@@ -70,7 +70,7 @@
.date-picker:focus {
outline: none;
border-color: #3b82f6;
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
+ box-shadow: 0 0 0 3px rgb(59 130 246 / 10%);
}
.date-picker:hover {
@@ -86,7 +86,7 @@
.tools-availability-page.dark-mode .date-picker:focus {
border-color: #4589ff;
- box-shadow: 0 0 0 3px rgba(69, 137, 255, 0.1);
+ box-shadow: 0 0 0 3px rgb(69 137 255 / 10%);
}
.tools-availability-page.dark-mode .date-picker:hover {
@@ -158,7 +158,7 @@
.project-select .select__control--is-focused {
border-color: #3b82f6;
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
+ box-shadow: 0 0 0 3px rgb(59 130 246 / 10%);
}
/* Loading and error states */
@@ -196,7 +196,7 @@
}
/* Responsive design */
-@media (max-width: 768px) {
+@media (width <= 768px) {
.tools-chart-filters {
flex-direction: column;
gap: 24px;
@@ -221,7 +221,7 @@
}
}
-@media (max-width: 480px) {
+@media (width <= 480px) {
.tools-availability-page {
padding: 16px;
}
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/Tools/ToolsHorizontalBarChart.module.css b/src/components/BMDashboard/WeeklyProjectSummary/Tools/ToolsHorizontalBarChart.module.css
index eaa10c6276..8461745b57 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/Tools/ToolsHorizontalBarChart.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/Tools/ToolsHorizontalBarChart.module.css
@@ -1,10 +1,10 @@
/* Tools Horizontal Bar Chart Card Component */
.tools-horizontal-bar-chart-card {
- background-color: var(--card-bg, #ffffff);
+ background-color: var(--card-bg, #fff);
border-radius: 8px;
padding: 16px;
height: 100%;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
display: flex;
flex-direction: column;
transition: transform 0.2s ease;
@@ -13,20 +13,20 @@
.tools-horizontal-bar-chart-card:hover {
transform: translateY(-2px);
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 4px 8px rgb(0 0 0 / 15%);
}
.tools-horizontal-bar-chart-title {
font-size: 16px;
font-weight: 600;
- margin: 0 0 16px 0;
+ margin: 0 0 16px;
color: var(--text-color, #333);
text-align: center;
flex-shrink: 0;
}
.tools-horizontal-bar-chart-dark-mode .tools-horizontal-bar-chart-title {
- color: #ffffff;
+ color: #fff;
}
.tools-horizontal-bar-chart-content {
@@ -53,7 +53,7 @@
height: 200px;
font-size: 14px;
color: #f44336;
- background-color: rgba(244, 67, 54, 0.05);
+ background-color: rgb(244 67 54 / 5%);
border-radius: 4px;
padding: 12px;
text-align: center;
@@ -71,31 +71,31 @@
}
.tools-horizontal-bar-chart-tooltip {
- background-color: rgba(255, 255, 255, 0.95);
+ background-color: rgb(255 255 255 / 95%);
border: 1px solid #ccc;
border-radius: 4px;
padding: 8px 12px;
font-size: 12px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
max-width: 200px;
}
.tools-horizontal-bar-chart-tooltip-label {
font-weight: 600;
- margin: 0 0 4px 0;
+ margin: 0 0 4px;
color: #333;
}
.tools-horizontal-bar-chart-tooltip-total {
font-weight: 600;
- margin: 4px 0 0 0;
+ margin: 4px 0 0;
padding-top: 4px;
border-top: 1px solid #eee;
color: #333;
}
.tools-horizontal-bar-chart-dark-mode .tools-horizontal-bar-chart-tooltip {
- background-color: rgba(45, 45, 45, 0.95);
+ background-color: rgb(45 45 45 / 95%);
border-color: #555;
}
@@ -107,13 +107,13 @@
/* Filters Styling */
.tools-horizontal-bar-chart-filters {
padding: 12px 0;
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
+ border-bottom: 1px solid rgb(0 0 0 / 10%);
margin-bottom: 12px;
}
.tools-horizontal-bar-chart-card.tools-horizontal-bar-chart-dark-mode
.tools-horizontal-bar-chart-filters {
- border-bottom-color: rgba(255, 255, 255, 0.2);
+ border-bottom-color: rgb(255 255 255 / 20%);
}
.tools-horizontal-bar-chart-filter-group {
@@ -169,7 +169,7 @@
.tools-horizontal-bar-chart-date-picker:focus {
outline: none;
border-color: #2196f3;
- box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
+ box-shadow: 0 0 0 2px rgb(33 150 243 / 20%);
}
.tools-horizontal-bar-chart-date-picker-group span {
@@ -214,7 +214,7 @@
}
/* Responsive adjustments */
-@media (max-width: 768px) {
+@media (width <= 768px) {
.tools-horizontal-bar-chart-card {
padding: 12px;
min-height: 250px;
diff --git a/src/components/BMDashboard/WeeklyProjectSummary/TotalMaterialCostPerProject/TotalMaterialCostPerProject.module.css b/src/components/BMDashboard/WeeklyProjectSummary/TotalMaterialCostPerProject/TotalMaterialCostPerProject.module.css
index 6dfb3f3e87..b121577c96 100644
--- a/src/components/BMDashboard/WeeklyProjectSummary/TotalMaterialCostPerProject/TotalMaterialCostPerProject.module.css
+++ b/src/components/BMDashboard/WeeklyProjectSummary/TotalMaterialCostPerProject/TotalMaterialCostPerProject.module.css
@@ -6,7 +6,7 @@
}
.totalMaterialCostPerProjectChartTitleDark {
- color: var(--text-color, #ffffff);
+ color: var(--text-color, #fff);
}
.selectValueContainerDark {
diff --git a/src/components/Badge/Badge.css b/src/components/Badge/Badge.css
index 5a49605cb6..1269c080d6 100644
--- a/src/components/Badge/Badge.css
+++ b/src/components/Badge/Badge.css
@@ -51,12 +51,15 @@
bottom: 2px;
z-index: 10;
}
+
.bagde-box-shadow {
box-shadow: 2px 2px 4px 1px lightgray;
}
+
.badge-box-shadow-dark {
box-shadow: 2px 2px 4px 1px black;
}
+
/* This is just only for displaying 'Personal Max hours' badge hours position */
.badge_count_personalmax {
padding-top: 4px;
@@ -161,7 +164,7 @@
margin: 0 auto;
}
-@media screen and (max-width: 544px) {
+@media screen and (width <= 544px) {
.responsive-font-size {
font-size: 0.75rem !important;
}
diff --git a/src/components/Badge/Badge.module.css b/src/components/Badge/Badge.module.css
index 57c309d354..ed35243c09 100644
--- a/src/components/Badge/Badge.module.css
+++ b/src/components/Badge/Badge.module.css
@@ -51,12 +51,15 @@
bottom: 2px;
z-index: 10;
}
+
.bagde-box-shadow {
box-shadow: 2px 2px 4px 1px lightgray;
}
+
.badge-box-shadow-dark {
box-shadow: 2px 2px 4px 1px black;
}
+
/* This is just only for displaying 'Personal Max hours' badge hours position */
.badge_count_personalmax {
padding-top: 4px;
@@ -161,7 +164,7 @@
margin: 0 auto;
}
-@media screen and (max-width: 544px) {
+@media screen and (width <= 544px) {
.responsive-font-size {
font-size: 0.75rem !important;
}
diff --git a/src/components/Badge/BadgeReport.module.css b/src/components/Badge/BadgeReport.module.css
index 94e8973bc1..a606c5a417 100644
--- a/src/components/Badge/BadgeReport.module.css
+++ b/src/components/Badge/BadgeReport.module.css
@@ -6,7 +6,7 @@
display: block;
}
-@media (max-width: 1024px) {
+@media (width <= 1024px) {
.desktop {
display: none;
}
@@ -42,7 +42,7 @@ th[data-testid='desktop-earned-dates'] {
}
/* Adjust layout for smaller screens */
-@media (max-width: 1024px) {
+@media (width <= 1024px) {
th[data-testid='desktop-earned-dates'] {
display: table-cell; /* adjust width or alignment here */
}
@@ -91,7 +91,7 @@ th[data-testid='desktop-earned-dates'] {
z-index: 10;
}
-@media screen and (max-width: 991px) {
+@media screen and (width <= 991px) {
.badge_dropdown {
max-height: 250px;
width: 100%;
diff --git a/src/components/BlueSquareEmailManagement/BlueSquareEmailManagement.module.css b/src/components/BlueSquareEmailManagement/BlueSquareEmailManagement.module.css
index b51c196876..3aaf93390a 100644
--- a/src/components/BlueSquareEmailManagement/BlueSquareEmailManagement.module.css
+++ b/src/components/BlueSquareEmailManagement/BlueSquareEmailManagement.module.css
@@ -1,7 +1,7 @@
/* Simple styling for Blue Square Email Management */
.bgOxfordBlue {
background-color: #1a1a1a;
- color: #ffffff;
+ color: #fff;
}
/* Card styling for consistent height */
@@ -43,6 +43,7 @@
0% {
transform: rotate(0deg);
}
+
100% {
transform: rotate(360deg);
}
diff --git a/src/components/Collaboration/FormPreviewModal.module.css b/src/components/Collaboration/FormPreviewModal.module.css
index cd9e619ff4..684ed8ff6c 100644
--- a/src/components/Collaboration/FormPreviewModal.module.css
+++ b/src/components/Collaboration/FormPreviewModal.module.css
@@ -3,11 +3,8 @@
/* Modal Overlay */
.modalOverlay {
position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.5);
+ inset: 0;
+ background-color: rgb(0 0 0 / 50%);
display: flex;
justify-content: center;
align-items: center;
@@ -19,7 +16,7 @@
.modalContainer {
background-color: white;
border-radius: 10px;
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 8px 24px rgb(0 0 0 / 15%);
display: flex;
flex-direction: column;
max-width: 750px;
@@ -63,7 +60,7 @@
}
.modalCloseBtn:hover {
- background-color: rgba(255, 255, 255, 0.2);
+ background-color: rgb(255 255 255 / 20%);
}
/* Modal Content */
@@ -86,7 +83,7 @@
text-align: center;
color: #333;
font-weight: bold;
- margin: 0 0 10px 0;
+ margin: 0 0 10px;
font-size: 20px;
}
@@ -94,7 +91,7 @@
text-align: center;
color: #666;
font-size: 14px;
- margin: 0 0 20px 0;
+ margin: 0 0 20px;
font-style: italic;
}
@@ -272,7 +269,7 @@
}
/* Responsive Design */
-@media (max-width: 768px) {
+@media (width <= 768px) {
.modalContainer {
max-width: 95%;
max-height: 95vh;
diff --git a/src/components/Collaboration/JobApplicationForm/JobApplicationForm.module.css b/src/components/Collaboration/JobApplicationForm/JobApplicationForm.module.css
index 39bdde72f9..f7cf986cce 100644
--- a/src/components/Collaboration/JobApplicationForm/JobApplicationForm.module.css
+++ b/src/components/Collaboration/JobApplicationForm/JobApplicationForm.module.css
@@ -65,7 +65,7 @@
background-color: #f9f9f9;
padding: 2%;
width: 75%;
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 0 10px rgb(0 0 0 / 10%);
}
.formTitle {
@@ -145,11 +145,8 @@
.popupOverlay {
position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(30, 41, 65, 0.7);
+ inset: 0;
+ background: rgb(30 41 65 / 70%);
display: flex;
align-items: center;
justify-content: center;
@@ -164,7 +161,7 @@
border-radius: 16px;
max-width: 420px;
min-width: 320px;
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
+ box-shadow: 0 8px 32px rgb(0 0 0 / 32%);
display: flex;
flex-direction: column;
align-items: flex-start;
@@ -210,7 +207,7 @@
cursor: pointer;
padding: 8px 12px;
border-radius: 8px;
- background: #ffffff;
+ background: #fff;
border: 1px solid #cfcfcf;
color: #222;
font-size: 14px;
@@ -221,7 +218,7 @@
.resumeLabel:hover {
background: #f6f6f6;
- box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
+ box-shadow: 0 6px 18px rgb(0 0 0 / 4%);
transform: translateY(-1px);
}
@@ -247,7 +244,7 @@
.darkMode .formContainer {
background: #1c2541;
color: #e0e0e0;
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
+ box-shadow: 0 8px 24px rgb(0 0 0 / 70%);
transition: background 0.3s, color 0.3s;
}
@@ -286,7 +283,7 @@
.darkMode .btn {
background: #225163;
color: #f1f1f1;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
+ box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
transition: background 0.3s, color 0.3s;
}
@@ -302,13 +299,13 @@
}
.darkMode .popupOverlay {
- background: rgba(30, 41, 65, 0.85);
+ background: rgb(30 41 65 / 85%);
}
.darkMode .popupContent {
background: #225163;
color: #f1f1f1;
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
+ box-shadow: 0 8px 32px rgb(0 0 0 / 70%);
}
.darkMode .popupCloseBtn {
@@ -353,11 +350,11 @@
.darkMode .resumeLabel:hover {
background: #22364e;
- box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
+ box-shadow: 0 6px 18px rgb(0 0 0 / 35%);
}
.darkMode .resumeLabel .fileName {
- background: rgba(255, 255, 255, 0.04);
+ background: rgb(255 255 255 / 4%);
color: #cfe7ff;
- border-color: rgba(255, 255, 255, 0.05);
+ border-color: rgb(255 255 255 / 5%);
}
diff --git a/src/components/Collaboration/JobFormBuilder.module.css b/src/components/Collaboration/JobFormBuilder.module.css
index b486ff6fcb..94f7f86e7e 100644
--- a/src/components/Collaboration/JobFormBuilder.module.css
+++ b/src/components/Collaboration/JobFormBuilder.module.css
@@ -12,7 +12,7 @@
align-items: center;
border-radius: 10px;
padding: 5px;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
}
.pageWrapper {
@@ -59,7 +59,7 @@
padding: 11px 13px;
margin: 8px 10px;
border: none;
- background-color: #cccccc;
+ background-color: #ccc;
color: white;
font-size: 16px;
border-radius: 5px;
@@ -159,13 +159,13 @@
align-items: flex-start;
margin: 0;
gap: 10px;
- word-wrap: break-word;
+ overflow-wrap: break-word;
white-space: normal;
padding: 2px;
}
.optionsSection input {
- margin: 0 12px 0;
+ margin: 0 12px;
}
.optionItem input[type='checkbox'],
@@ -258,7 +258,7 @@
.darkMode .jobformSelect {
background-color: #1c1c1c;
color: #f1f1f1;
- border: 1px solid #444444;
+ border: 1px solid #444;
}
.darkMode .jobformInput::placeholder {
@@ -288,7 +288,7 @@
.darkMode .formDiv {
background: linear-gradient(135deg, #23272a, #181a1b);
- border-color: #333333;
+ border-color: #333;
border-radius: 5px;
margin-bottom: 10px;
padding: 10px;
@@ -309,25 +309,25 @@
.darkMode .addFieldButton,
.darkMode .addOptionButton,
.darkMode .jobSubmitButton {
- background-color: #333333;
+ background-color: #333;
color: #f1f1f1;
- border: 1px solid #444444;
+ border: 1px solid #444;
}
.darkMode .addFieldButton:hover,
.darkMode .addOptionButton:hover,
.darkMode .jobSubmitButton:hover {
- background-color: #555555;
+ background-color: #555;
}
.darkMode .goButton {
- background-color: #333333;
+ background-color: #333;
color: #f1f1f1;
- border: 1px solid #444444;
+ border: 1px solid #444;
}
.darkMode .goButton:hover {
- background-color: #555555;
+ background-color: #555;
}
.darkMode .optionsList h4 {
@@ -362,7 +362,7 @@
border-radius: 6px;
cursor: pointer;
text-align: left;
- box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
+ box-shadow: 0 2px 0 rgb(0 0 0 / 8%);
}
.previewTextButton:hover {
diff --git a/src/components/Collaboration/JobFormbuilder.jsx b/src/components/Collaboration/JobFormbuilder.jsx
index 7f03d95374..3150e979d0 100644
--- a/src/components/Collaboration/JobFormbuilder.jsx
+++ b/src/components/Collaboration/JobFormbuilder.jsx
@@ -1,5 +1,3 @@
-/* eslint-disable no-alert */
-/* eslint-disable no-console */
import { useState, useEffect } from 'react';
import axios from 'axios';
import { useSelector } from 'react-redux';
@@ -10,30 +8,20 @@ import OneCommunityImage from './One-Community-Horizontal-Homepage-Header-980x14
import QuestionSetManager from './QuestionSetManager';
import QuestionFieldActions from './QuestionFieldActions';
import QuestionEditModal from './QuestionEditModal';
-import FormPreviewModal from './FormPreviewModal';
function JobFormBuilder() {
const { role } = useSelector(state => state.auth.user);
const darkMode = useSelector(state => state.theme.darkMode);
+
const [formFields, setFormFields] = useState([]);
- const [initialFormFields, setInitialFormFields] = useState([]);
- const [templateName, setTemplateName] = useState('');
- const [selectedTemplate, setSelectedTemplate] = useState('');
- const [currentFormId, setCurrentFormId] = useState(null);
- const [showPreviewModal, setShowPreviewModal] = useState(false);
const [newField, setNewField] = useState({
questionText: '',
questionType: 'textbox',
- options: [],
+ options: [], // For checkbox, radio, and dropdown input types
visible: true,
});
- const initialNewField = {
- questionText: '',
- questionType: 'textbox',
- options: [],
- visible: true,
- };
+ const [currentFormId, setCurrentFormId] = useState(null);
const [jobTitle, setJobTitle] = useState('Please Choose an option');
const jobPositions = [
@@ -83,14 +71,8 @@ function JobFormBuilder() {
const [editModalOpen, setEditModalOpen] = useState(false);
const [editingQuestion, setEditingQuestion] = useState(null);
const [editingIndex, setEditingIndex] = useState(null);
- const [hasUnsavedChanges, setHasUnsavedChanges] = useState(false);
-
- const markAsSaved = fields => {
- setInitialFormFields(structuredClone(fields));
- setHasUnsavedChanges(false);
- };
- // Reset builder after template is saved
+ // Reset question builder state after a template is saved
const resetBuilderState = () => {
setFormFields([]);
setNewField({
@@ -115,8 +97,6 @@ function JobFormBuilder() {
setCurrentFormId(formId);
setFormFields(firstForm.questions || []);
setJobTitle(firstForm.title || 'Please Choose an option');
- markAsSaved(firstForm.questions || []);
- setNewField(initialNewField);
console.log('Auto-loaded form:', formId);
}
@@ -128,22 +108,9 @@ function JobFormBuilder() {
loadFirstAvailableForm();
}, []);
- // Detect unsaved changes
- useEffect(() => {
- const changed =
- JSON.stringify(formFields) !== JSON.stringify(initialFormFields) ||
- JSON.stringify(newField) !== JSON.stringify(initialNewField) ||
- templateName !== '' ||
- selectedTemplate !== '';
-
- setHasUnsavedChanges(changed);
- }, [formFields, newField, templateName, selectedTemplate, initialFormFields]);
-
- // CRUD Functions with Dynamic Form ID
const cloneField = async (field, index) => {
const clonedField = JSON.parse(JSON.stringify(field));
- // Update local state immediately
const newFields = [
...formFields.slice(0, index + 1),
clonedField,
@@ -151,14 +118,12 @@ function JobFormBuilder() {
];
setFormFields(newFields);
- // Sync with backend if form exists
if (currentFormId) {
try {
await axios.post(ENDPOINTS.ADD_QUESTION(currentFormId), {
question: clonedField,
position: index + 1,
});
- markAsSaved(newFields);
} catch (error) {
console.error('Error cloning question on server:', error);
}
@@ -172,19 +137,16 @@ function JobFormBuilder() {
(direction === 'up' && index > 0) ||
(direction === 'down' && index < formFields.length - 1)
) {
- // Update local state immediately
const newFields = [...formFields];
[newFields[index], newFields[newIndex]] = [newFields[newIndex], newFields[index]];
setFormFields(newFields);
- // Sync with backend if form exists
if (currentFormId) {
try {
await axios.put(ENDPOINTS.REORDER_QUESTIONS(currentFormId), {
fromIndex: index,
toIndex: newIndex,
});
- markAsSaved(newFields);
} catch (error) {
console.error('Error reordering questions on server:', error);
}
@@ -193,16 +155,13 @@ function JobFormBuilder() {
};
const deleteField = async index => {
- // Update local state immediately
const newFields = [...formFields];
newFields.splice(index, 1);
setFormFields(newFields);
- // Sync with backend if form exists
if (currentFormId) {
try {
await axios.delete(ENDPOINTS.DELETE_QUESTION(currentFormId, index));
- markAsSaved(newFields);
console.log('Question deleted successfully');
} catch (error) {
console.error('Error deleting question on server:', error);
@@ -211,7 +170,6 @@ function JobFormBuilder() {
};
const editField = (field, index) => {
- // Transform the field structure to match what QuestionEditModal expects
const questionForEdit = {
label: field.questionText,
type: field.questionType,
@@ -235,23 +193,19 @@ function JobFormBuilder() {
placeholder: editedQuestion.placeholder,
};
- // Update local state immediately
const updatedFields = [...formFields];
updatedFields[editingIndex] = updatedField;
setFormFields(updatedFields);
- // Sync with backend if form exists
if (currentFormId) {
try {
await axios.put(ENDPOINTS.UPDATE_QUESTION(currentFormId, editingIndex), updatedField);
- markAsSaved(updatedFields);
console.log('Question updated successfully');
} catch (error) {
console.error('Error updating question on server:', error);
}
}
- // Close the modal
setEditModalOpen(false);
setEditingQuestion(null);
setEditingIndex(null);
@@ -263,7 +217,6 @@ function JobFormBuilder() {
setEditingIndex(null);
};
- // Import questions from template
const importQuestions = questions => {
setFormFields(questions);
};
@@ -294,18 +247,15 @@ function JobFormBuilder() {
return;
}
- // Update local state immediately
const updatedFields = [...formFields, newField];
setFormFields(updatedFields);
- // Sync with backend if form exists
if (currentFormId) {
try {
await axios.post(ENDPOINTS.ADD_QUESTION(currentFormId), {
question: newField,
position: formFields.length,
});
- markAsSaved(updatedFields);
} catch (error) {
console.error('Error adding question to server:', error);
}
@@ -376,32 +326,25 @@ function JobFormBuilder() {