All changes are mobile-only (max-width media queries); desktop unchanged. Global (systemic): - forms.css: all .admin-form-row* grids stack to 1 column at <=480px (fixes detail-page info grids, settings forms, modal forms staying 2-up on phones). - components.css: .admin-kpi-4/-3 stat grids collapse to 1 column at <=480px. - tables.css: row-action icons get 44px touch targets at <=768px. - datepicker.css: constrain the date-picker popper to the viewport at <=480px. - filemanager.css: toolbar wraps, new-folder input full-width, breadcrumb scrolls. Area specifics: - offers.css: Quill picker dropdowns kept on-screen (max-width) at <=480px. - invoices.css: month-nav wraps + 44px touch targets at <=640px. - attendance.css: Leaflet map height scales with viewport; clock-card padding tightened at <=480px. Audit confirmed all data tables (warehouse incl.) are already wrapped in the scroll container, so no table overflow/markup changes were needed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
212 lines
5.1 KiB
CSS
212 lines
5.1 KiB
CSS
/* ============================================================================
|
|
React DatePicker Overrides
|
|
============================================================================ */
|
|
|
|
.react-datepicker-wrapper {
|
|
width: 100%;
|
|
}
|
|
|
|
.react-datepicker-popper {
|
|
z-index: 100 !important;
|
|
}
|
|
|
|
/* Prevent flash at top-left before popper calculates position */
|
|
#datepicker-portal .react-datepicker-popper {
|
|
opacity: 0;
|
|
animation: dp-fade-in 0.01s forwards 0.02s;
|
|
}
|
|
|
|
@keyframes dp-fade-in {
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.react-datepicker {
|
|
font-family: inherit !important;
|
|
background-color: var(--bg-secondary) !important;
|
|
border: 1px solid var(--border-color) !important;
|
|
border-radius: var(--border-radius-sm) !important;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
|
|
color: var(--text-primary) !important;
|
|
font-size: 0.875rem !important;
|
|
}
|
|
|
|
.react-datepicker__triangle {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Header */
|
|
.react-datepicker__header {
|
|
background-color: var(--bg-tertiary) !important;
|
|
border-bottom: 1px solid var(--border-color) !important;
|
|
padding-top: 0.75rem !important;
|
|
}
|
|
|
|
.react-datepicker__current-month,
|
|
.react-datepicker-time__header {
|
|
color: var(--text-primary) !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
.react-datepicker__day-name {
|
|
color: var(--text-secondary) !important;
|
|
}
|
|
|
|
/* Days */
|
|
.react-datepicker__day {
|
|
color: var(--text-primary) !important;
|
|
border-radius: 6px !important;
|
|
transition:
|
|
background 0.15s,
|
|
color 0.15s !important;
|
|
}
|
|
|
|
.react-datepicker__day:hover {
|
|
background-color: var(--accent-light) !important;
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
.react-datepicker__day--selected,
|
|
.react-datepicker__day--keyboard-selected {
|
|
background-color: var(--accent-color) !important;
|
|
color: #fff !important;
|
|
}
|
|
|
|
.react-datepicker__day--today {
|
|
font-weight: 700 !important;
|
|
}
|
|
|
|
.react-datepicker__day--outside-month {
|
|
color: var(--text-muted) !important;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.react-datepicker__day--disabled {
|
|
color: var(--text-muted) !important;
|
|
opacity: 0.3 !important;
|
|
}
|
|
|
|
/* Navigation arrows */
|
|
.react-datepicker__navigation {
|
|
top: 0.75rem !important;
|
|
}
|
|
|
|
.react-datepicker__navigation-icon::before {
|
|
border-color: var(--text-secondary) !important;
|
|
}
|
|
|
|
.react-datepicker__navigation:hover *::before {
|
|
border-color: var(--accent-color) !important;
|
|
}
|
|
|
|
/* Year dropdown */
|
|
.react-datepicker__year-dropdown,
|
|
.react-datepicker__month-dropdown,
|
|
.react-datepicker__year-read-view,
|
|
.react-datepicker__month-read-view {
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
/* Time picker */
|
|
.react-datepicker__time-container {
|
|
border-left: 1px solid var(--border-color) !important;
|
|
}
|
|
|
|
.react-datepicker__time-container .react-datepicker__time {
|
|
background-color: var(--bg-secondary) !important;
|
|
}
|
|
|
|
.react-datepicker__time-container
|
|
.react-datepicker__time
|
|
.react-datepicker__time-box {
|
|
width: 100% !important;
|
|
}
|
|
|
|
.react-datepicker__time-container
|
|
.react-datepicker__time
|
|
.react-datepicker__time-box
|
|
ul.react-datepicker__time-list
|
|
li.react-datepicker__time-list-item {
|
|
color: var(--text-primary) !important;
|
|
transition: background 0.15s !important;
|
|
}
|
|
|
|
.react-datepicker__time-container
|
|
.react-datepicker__time
|
|
.react-datepicker__time-box
|
|
ul.react-datepicker__time-list
|
|
li.react-datepicker__time-list-item:hover {
|
|
background-color: var(--accent-light) !important;
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
.react-datepicker__time-container
|
|
.react-datepicker__time
|
|
.react-datepicker__time-box
|
|
ul.react-datepicker__time-list
|
|
li.react-datepicker__time-list-item--selected {
|
|
background-color: var(--accent-color) !important;
|
|
color: #fff !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
/* Month picker */
|
|
.react-datepicker__monthPicker {
|
|
background-color: var(--bg-secondary) !important;
|
|
}
|
|
|
|
.react-datepicker-year-header {
|
|
background-color: var(--bg-tertiary) !important;
|
|
color: var(--text-primary) !important;
|
|
border-bottom: 1px solid var(--border-color) !important;
|
|
}
|
|
|
|
.react-datepicker__month-wrapper {
|
|
background-color: var(--bg-secondary) !important;
|
|
}
|
|
|
|
.react-datepicker__month-text {
|
|
color: var(--text-primary) !important;
|
|
padding: 0.5rem !important;
|
|
border-radius: 6px !important;
|
|
transition: background 0.15s !important;
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.react-datepicker__month-text:hover {
|
|
background-color: var(--accent-light) !important;
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
.react-datepicker__month-text--keyboard-selected,
|
|
.react-datepicker__month-text--selected {
|
|
background-color: var(--accent-color) !important;
|
|
color: #fff !important;
|
|
}
|
|
|
|
.react-datepicker__month-text--today {
|
|
font-weight: 700 !important;
|
|
}
|
|
|
|
/* Input */
|
|
.react-datepicker__input-container input {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.react-datepicker__close-icon::after {
|
|
background-color: var(--accent-color) !important;
|
|
}
|
|
|
|
/* Mobile safety net — keep the popper inside the viewport on small phones.
|
|
(Native date input is used on touch; this guards the rare desktop-style popper.) */
|
|
@media (max-width: 480px) {
|
|
.react-datepicker-popper {
|
|
max-width: calc(100vw - 24px);
|
|
}
|
|
|
|
.react-datepicker {
|
|
font-size: 0.8rem !important;
|
|
}
|
|
}
|