423 lines
7.9 KiB
CSS
423 lines
7.9 KiB
CSS
/* --- Date Range Filter & Popover --- */
|
|
.date-picker-trigger {
|
|
width: 100%;
|
|
padding: 14px 18px;
|
|
background: white;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
font-family: inherit;
|
|
font-size: 0.9rem;
|
|
font-weight: 700;
|
|
color: var(--primary-blue);
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.date-picker-trigger:hover {
|
|
border-color: var(--secondary-gold);
|
|
background: #fffdf5;
|
|
}
|
|
|
|
.date-picker-trigger:focus-visible {
|
|
outline: none;
|
|
border-color: var(--primary-blue);
|
|
box-shadow: 0 0 0 3px rgba(0, 49, 80, 0.08);
|
|
}
|
|
|
|
.date-picker-trigger .trigger-left-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.date-picker-trigger .trigger-arrow {
|
|
font-size: 0.8rem;
|
|
transition: transform 0.25s ease;
|
|
color: var(--primary-blue);
|
|
}
|
|
|
|
.date-range-group.active .date-picker-trigger .trigger-arrow {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.date-range-group.active .date-picker-trigger {
|
|
border-color: var(--primary-blue);
|
|
box-shadow: 0 0 0 3px rgba(0, 49, 80, 0.08);
|
|
}
|
|
|
|
/* Backdrop */
|
|
.date-picker-backdrop {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 40;
|
|
}
|
|
|
|
/* Popover */
|
|
.date-picker-popover {
|
|
position: absolute;
|
|
top: calc(100% + 6px);
|
|
right: 0;
|
|
width: 630px;
|
|
background: white;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
|
|
display: none;
|
|
flex-direction: column;
|
|
z-index: 45;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.date-range-group.active .date-picker-popover {
|
|
display: flex;
|
|
}
|
|
|
|
/* Top Bar */
|
|
.date-picker-top-bar {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: #f8fafc;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.date-display-inputs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.date-display-field input {
|
|
width: 110px;
|
|
padding: 6px 10px;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--primary-blue);
|
|
text-align: center;
|
|
background: white;
|
|
}
|
|
|
|
.date-picker-separator {
|
|
color: #94a3b8;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Body */
|
|
.date-picker-body {
|
|
display: flex;
|
|
background: white;
|
|
}
|
|
|
|
/* Calendar Pane */
|
|
.calendar-container {
|
|
flex: 1;
|
|
padding: 16px;
|
|
}
|
|
|
|
.calendar-nav {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
padding: 0;
|
|
}
|
|
|
|
.month-labels {
|
|
display: flex;
|
|
gap: 90px;
|
|
color: var(--primary-blue);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.month-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.year-select-wrapper {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
border-radius: 4px;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.year-select-wrapper:hover {
|
|
background: #f1f5f9;
|
|
}
|
|
|
|
.calendar-year-select {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
background: transparent;
|
|
border: none;
|
|
padding: 2px 16px 2px 6px;
|
|
font-family: inherit;
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
color: var(--primary-blue);
|
|
cursor: pointer;
|
|
outline: none;
|
|
}
|
|
|
|
.year-select-wrapper .select-arrow {
|
|
position: absolute;
|
|
right: 4px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 0.6rem;
|
|
color: var(--primary-blue);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.nav-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: #64748b;
|
|
cursor: pointer;
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.nav-btn:hover {
|
|
background: #f1f5f9;
|
|
color: var(--primary-blue);
|
|
}
|
|
|
|
.calendar-grids {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.calendar-grid-pane {
|
|
flex: 1;
|
|
}
|
|
|
|
.day-headers {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
text-align: center;
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
color: #94a3b8;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.days-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
row-gap: 4px;
|
|
column-gap: 2px;
|
|
}
|
|
|
|
.day-cell {
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
color: #475569;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
transition: all 0.15s ease;
|
|
user-select: none;
|
|
}
|
|
|
|
.day-cell:hover {
|
|
background: #f1f5f9;
|
|
color: var(--primary-blue);
|
|
}
|
|
|
|
.day-cell.empty {
|
|
pointer-events: none;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.day-cell.disabled {
|
|
color: #cbd5e1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.day-cell.range-start {
|
|
background: var(--primary-blue) !important;
|
|
color: white !important;
|
|
border-radius: 4px 0 0 4px;
|
|
}
|
|
|
|
.day-cell.range-end {
|
|
background: var(--primary-blue) !important;
|
|
color: white !important;
|
|
border-radius: 0 4px 4px 0;
|
|
}
|
|
|
|
.day-cell.range-start.range-end {
|
|
border-radius: 4px !important;
|
|
}
|
|
|
|
.day-cell.range-between {
|
|
background: #eff6ff !important;
|
|
color: var(--primary-blue) !important;
|
|
border-radius: 0;
|
|
}
|
|
|
|
/* Presets Pane */
|
|
.presets-container {
|
|
width: 190px;
|
|
border-left: 1px solid var(--border-color);
|
|
padding: 16px;
|
|
background: white;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.presets-title {
|
|
font-size: 0.7rem;
|
|
font-weight: 800;
|
|
color: #94a3b8;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 4px;
|
|
display: block;
|
|
}
|
|
|
|
.presets-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
max-height: 240px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.preset-btn {
|
|
background: transparent;
|
|
border: none;
|
|
text-align: left;
|
|
padding: 8px 12px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: #475569;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.preset-btn:hover {
|
|
background: #f8fafc;
|
|
color: var(--primary-blue);
|
|
}
|
|
|
|
.preset-btn.active {
|
|
background: #eff6ff;
|
|
color: var(--primary-blue);
|
|
}
|
|
|
|
.preset-btn.active::after {
|
|
content: '✓';
|
|
font-weight: 700;
|
|
color: var(--primary-blue);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Footer Action Buttons */
|
|
.date-picker-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
border-top: 1px solid var(--border-color);
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.action-btn {
|
|
padding: 8px 20px;
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.cancel-btn {
|
|
background: white;
|
|
border: 1px solid #cbd5e1;
|
|
color: #475569;
|
|
}
|
|
|
|
.cancel-btn:hover {
|
|
background: #f1f5f9;
|
|
border-color: #94a3b8;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.apply-btn {
|
|
background: var(--primary-blue);
|
|
border: 1px solid var(--primary-blue);
|
|
color: white;
|
|
}
|
|
|
|
.apply-btn:hover {
|
|
background: #002238;
|
|
border-color: #002238;
|
|
}
|
|
|
|
.range-divider {
|
|
font-size: 0.7rem;
|
|
font-weight: 800;
|
|
color: #94a3b8;
|
|
text-transform: uppercase;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.filter-select,
|
|
select#sort-filter {
|
|
width: 100%;
|
|
padding: 12px 12px 12px 36px;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 4px;
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
color: var(--primary-blue);
|
|
cursor: pointer;
|
|
appearance: none;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.filter-select:hover,
|
|
select#sort-filter:hover {
|
|
border-color: var(--secondary-gold);
|
|
background: white;
|
|
}
|
|
|
|
.filter-select:focus,
|
|
select#sort-filter:focus {
|
|
outline: none;
|
|
}
|