feat: reports, timeline toggles, and stock correction improvements (#236)

* refactor(frontend): modularize styles and polish modal/ui interactions

* feat: add report workflow and timeline/settings improvements

* fix: resolve CI failures for backend typing, lint, and playwright config
This commit is contained in:
Daniel Volz
2026-02-20 18:52:59 +01:00
committed by GitHub
parent 89d565bc9d
commit 052751b2ba
74 changed files with 8815 additions and 4027 deletions
@@ -0,0 +1,615 @@
/* =============================================================================
Refill Modal & History
============================================================================= */
.refill-modal {
max-width: 500px;
padding: 1.5rem;
}
.refill-modal h2 {
font-size: 1.25rem;
margin-bottom: 0.25rem;
}
.refill-med-name {
color: var(--text-secondary);
margin-bottom: 1.5rem;
}
.refill-form {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 1.5rem;
}
.refill-form label {
display: flex;
flex-direction: column;
gap: 0.375rem;
font-weight: 500;
}
.refill-form input {
padding: 0.75rem;
border: 1px solid var(--border-primary);
border-radius: 8px;
background: var(--bg-input);
color: var(--text-primary);
font-size: 1rem;
}
.refill-footer-right {
display: flex;
align-items: center;
gap: 1rem;
}
.refill-footer-right .refill-preview {
height: 42px;
}
/* Refill modal footer mobile */
@media (max-width: 640px) {
.refill-modal .modal-footer {
flex-direction: column;
gap: 0.75rem;
}
.refill-modal .modal-footer > button,
.refill-modal .modal-footer .refill-footer-right {
width: 100%;
}
.refill-modal .modal-footer .refill-footer-right {
justify-content: space-between;
}
.refill-modal .modal-footer .refill-footer-right button {
flex: 1;
}
}
/* Refill: submit row (button + pill preview) */
.refill-submit-row {
display: flex;
align-items: center;
gap: 1rem;
}
.refill-submit-row button {
height: 42px;
padding: 0 2rem;
min-width: 120px;
flex-shrink: 0;
}
/* Refill: prescription toggle row */
.refill-prescription-row {
display: flex;
align-items: center;
gap: 1rem;
padding-top: 0.25rem;
border-top: 1px solid var(--border-primary);
}
.refill-prescription-row .refill-prescription-toggle {
display: grid;
grid-template-columns: 18px minmax(0, 1fr);
align-items: start;
gap: 0.6rem;
margin: 0;
text-transform: none;
letter-spacing: normal;
line-height: 1.2;
font-size: 0.95rem;
color: var(--text-primary);
cursor: pointer;
white-space: normal;
width: 100%;
}
.refill-prescription-row .refill-prescription-toggle input {
width: 18px;
height: 18px;
min-width: 18px;
margin: 0;
flex-shrink: 0;
}
.refill-prescription-label-text {
min-width: 0;
overflow-wrap: anywhere;
}
.refill-prescription-row .refill-prescription-toggle input:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.refill-remaining-badge {
font-size: 0.85rem;
font-weight: 600;
color: var(--success);
margin-left: auto;
}
.refill-preview {
display: inline-flex;
align-items: center;
justify-content: center;
height: 42px;
padding: 0 0.75rem;
background: transparent;
border: 1px dashed var(--success);
border-radius: 6px;
color: var(--success);
font-size: 0.85rem;
font-weight: 600;
flex-shrink: 0;
align-self: flex-end;
box-sizing: border-box;
}
.refill-section {
margin-top: 0;
}
.refill-section .refill-title {
font-size: 1rem;
font-weight: 600;
color: var(--text-primary);
margin: 0 0 0.75rem 0;
}
.refill-section .refill-submit-row button {
background: var(--success);
color: white;
border: none;
}
.refill-section .refill-submit-row button:hover:not(:disabled) {
background: var(--success-hover, #3aa865);
filter: brightness(1.1);
}
.refill-section .refill-submit-row button:disabled {
background: var(--bg-tertiary);
color: var(--text-tertiary);
cursor: not-allowed;
}
.refill-unavailable {
grid-column: 1 / -1;
margin: 0;
padding: 0.6rem 0.75rem;
border-radius: 8px;
border: 1px dashed var(--border-secondary);
color: var(--text-secondary);
font-size: 0.88rem;
}
/* =============================================================================
Edit Stock Modal (Correction)
============================================================================= */
.edit-stock-modal {
max-width: 500px;
padding: 1.5rem;
}
.edit-stock-modal h2 {
font-size: 1.25rem;
margin-bottom: 0.25rem;
}
.edit-stock-med-name {
color: var(--text-secondary);
margin-bottom: 0.5rem;
}
.edit-stock-hint {
font-size: 0.85rem;
color: var(--warning);
background: var(--warning-bg);
padding: 0.75rem 1rem;
border-radius: 8px;
margin-bottom: 1.5rem;
border: 1px solid rgba(252, 211, 77, 0.2);
}
.edit-stock-cap-info {
margin: 0 0 0.75rem;
font-size: 0.85rem;
color: var(--text-secondary);
}
.edit-stock-live-breakdown {
color: var(--text-primary);
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
border-radius: 8px;
padding: 0.6rem 0.75rem;
}
.edit-stock-cap-warning {
margin: -0.25rem 0 1rem;
font-size: 0.85rem;
color: var(--warning);
background: var(--warning-bg);
border: 1px solid rgba(252, 211, 77, 0.25);
border-radius: 8px;
padding: 0.5rem 0.75rem;
}
.edit-stock-form {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 1.5rem;
}
.edit-stock-form label {
display: flex;
flex-direction: column;
gap: 0;
font-weight: 500;
}
.edit-stock-form label .hint-text {
font-weight: 400;
color: var(--text-secondary);
font-size: 0.85rem;
}
.edit-stock-form input {
padding: 0.75rem;
border: 1px solid var(--border-primary);
border-radius: 8px;
background: var(--bg-input);
color: var(--text-primary);
font-size: 1rem;
}
.edit-stock-form input[type="number"]::-webkit-outer-spin-button,
.edit-stock-form input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.edit-stock-form input[type="number"] {
-moz-appearance: textfield;
appearance: textfield;
}
.number-stepper {
display: grid;
grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
align-items: stretch;
border: 1px solid var(--border-primary);
border-radius: 12px;
overflow: hidden;
background: var(--bg-input);
}
.number-stepper input {
margin: 0;
border: none;
border-radius: 0;
text-align: center;
font-size: 1.1rem;
font-weight: 600;
padding: 0.75rem 0.5rem;
min-height: 2.75rem;
background: transparent;
}
.number-stepper input[type="number"]::-webkit-outer-spin-button,
.number-stepper input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.number-stepper input[type="number"] {
-moz-appearance: textfield;
appearance: textfield;
}
.number-stepper input:focus {
outline: none;
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.stepper-btn {
border: none;
border-right: 1px solid var(--border-primary);
background: color-mix(in srgb, var(--bg-tertiary) 85%, transparent);
color: var(--text-secondary);
min-width: 2.75rem;
min-height: 2.75rem;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition:
background 0.15s ease,
color 0.15s ease,
opacity 0.15s ease;
}
.stepper-btn svg {
width: 1.15rem;
height: 1.15rem;
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
flex-shrink: 0;
}
.stepper-btn.increment {
border-right: none;
border-left: 1px solid var(--border-primary);
color: var(--success);
}
.stepper-btn.decrement {
color: var(--danger);
}
.stepper-btn:hover:not(:disabled) {
background: color-mix(in srgb, var(--accent) 14%, var(--bg-tertiary));
}
.stepper-btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
[data-theme="light"] .stepper-btn.increment {
color: #0f766e;
}
[data-theme="light"] .stepper-btn.decrement {
color: #b91c1c;
}
@media (max-width: 640px) {
.number-stepper {
grid-template-columns: 3rem minmax(0, 1fr) 3rem;
}
.number-stepper input {
font-size: 1.2rem;
min-height: 3rem;
}
.stepper-btn {
min-width: 3rem;
min-height: 3rem;
}
}
@media (min-width: 641px) {
.number-stepper {
display: flex;
align-items: stretch;
}
.number-stepper input {
order: 1;
flex: 1 1 auto;
min-width: 0;
text-align: left;
padding-left: 0.9rem;
}
.number-stepper .stepper-btn {
flex: 0 0 2.9rem;
min-width: 2.9rem;
border-right: none;
border-left: 1px solid var(--border-primary);
color: var(--text-primary);
}
.number-stepper .stepper-btn.decrement {
order: 2;
background: color-mix(in srgb, var(--danger) 74%, var(--bg-secondary));
color: #fff;
}
.number-stepper .stepper-btn.increment {
order: 3;
background: color-mix(in srgb, var(--success) 72%, var(--bg-secondary));
color: #fff;
}
.number-stepper .stepper-btn:hover:not(:disabled) {
filter: brightness(1.08);
}
.number-stepper .stepper-btn:disabled {
opacity: 0.55;
}
[data-theme="light"] .number-stepper .stepper-btn.decrement {
background: #dc2626;
}
[data-theme="light"] .number-stepper .stepper-btn.increment {
background: #0f766e;
}
}
/* Keep refill modal stepper on legacy visual style (before desktop clustered correction style). */
.refill-number-stepper {
display: grid;
grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
}
.refill-number-stepper input {
order: initial;
text-align: center;
padding: 0.75rem 0.5rem;
}
.refill-number-stepper .stepper-btn {
flex: 0 0 auto;
border-right: 1px solid var(--border-primary);
border-left: none;
background: color-mix(in srgb, var(--bg-tertiary) 85%, transparent);
color: var(--text-secondary);
}
.refill-number-stepper .stepper-btn.decrement {
order: initial;
color: var(--danger);
}
.refill-number-stepper .stepper-btn.increment {
order: initial;
border-right: none;
border-left: 1px solid var(--border-primary);
background: color-mix(in srgb, var(--bg-tertiary) 85%, transparent);
color: var(--success);
}
.refill-number-stepper .stepper-btn:hover:not(:disabled) {
filter: none;
background: color-mix(in srgb, var(--accent) 14%, var(--bg-tertiary));
}
@media (min-width: 641px) {
.refill-number-stepper {
display: grid;
grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
}
.refill-number-stepper input {
padding-left: 0.5rem;
}
[data-theme="light"] .refill-number-stepper .stepper-btn.decrement {
background: color-mix(in srgb, var(--bg-tertiary) 90%, transparent);
color: #b91c1c;
}
[data-theme="light"] .refill-number-stepper .stepper-btn.increment {
background: color-mix(in srgb, var(--bg-tertiary) 90%, transparent);
color: #0f766e;
}
}
@media (max-width: 640px) {
.refill-number-stepper {
grid-template-columns: 3rem minmax(0, 1fr) 3rem;
}
}
.edit-stock-summary {
display: flex;
gap: 0.5rem;
margin-bottom: 1.5rem;
}
.edit-stock-summary .summary-row {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.25rem;
background: var(--bg-tertiary);
border-radius: 10px;
padding: 0.75rem 0.5rem;
}
.edit-stock-summary .summary-row span:first-child {
font-size: 0.72rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-secondary);
}
.edit-stock-summary .summary-row span:last-child {
font-size: 1rem;
font-weight: 700;
color: var(--text-primary);
}
.edit-stock-summary .summary-row.difference {
background: transparent;
border: 1.5px solid var(--border-primary);
}
.edit-stock-summary .summary-row.difference.positive span:last-child {
color: var(--success);
}
.edit-stock-summary .summary-row.difference.negative span:last-child {
color: var(--danger);
}
/* Clickable section header (for expand/collapse) */
.section-header-clickable {
cursor: pointer;
user-select: none;
}
.section-header-clickable:hover {
color: var(--accent);
}
/* Refill history in detail modal */
.refill-history-header {
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
user-select: none;
}
.refill-history-header .collapse-icon {
font-size: 0.75rem;
color: var(--text-secondary);
}
.refill-history-header .refill-count {
font-weight: normal;
font-size: 0.875rem;
color: var(--text-secondary);
}
.refill-history-list {
margin-top: 0.75rem;
}
.refill-history-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0;
border-bottom: 1px solid var(--border-primary);
}
.refill-history-item:last-child {
border-bottom: none;
}
.refill-date {
font-size: 0.875rem;
color: var(--text-secondary);
}
.refill-details {
font-size: 0.875rem;
font-weight: 500;
color: var(--success);
}
/* Nested modal overlay */
.modal-overlay.nested {
background: rgba(0, 0, 0, 0.6);
}
.modal-overlay.nested-confirm {
z-index: 1200;
}
+121
View File
@@ -0,0 +1,121 @@
/* =============================================================================
Modal Base Styles
============================================================================= */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 2rem 1rem;
animation: fadeIn 0.2s ease;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.modal-content {
background: var(--bg-secondary);
border-radius: 12px;
max-width: 500px;
width: 100%;
max-height: 90vh;
overflow-x: hidden;
overflow-y: auto;
position: relative;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
animation: slideUp 0.3s ease;
border: 1px solid var(--border-primary);
padding: 1.5rem;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-close,
.lightbox-close {
width: 2.75rem;
height: 2.75rem;
min-width: 2.75rem;
min-height: 2.75rem;
font-size: 1.2rem;
line-height: 1;
}
.modal-close {
position: absolute;
top: 1rem;
right: 1rem;
background: var(--btn-ghost-hover);
border: 1px solid var(--border-secondary);
color: var(--text-secondary);
cursor: pointer;
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--btn-radius-round);
transition:
background 150ms ease,
border-color 150ms ease,
color 150ms ease;
flex-shrink: 0;
padding: 0;
box-shadow: none;
}
.modal-close:hover {
background: rgba(255, 255, 255, 0.15);
border-color: var(--text-secondary);
color: var(--text-primary);
}
[data-theme="light"] .modal-close:hover {
background: rgba(0, 0, 0, 0.1);
}
.modal-footer {
padding: 1rem 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid var(--border-primary);
gap: 0.75rem;
}
.modal-footer button {
white-space: nowrap;
}
.modal-footer .footer-left,
.modal-footer .footer-right {
display: flex;
gap: 0.5rem;
align-items: center;
}
.modal-footer button.icon-only {
padding: 0.5rem;
min-width: 2.75rem;
min-height: 2.75rem;
}
@@ -0,0 +1,475 @@
/* =============================================================================
Shared Schedule Page (Public)
============================================================================= */
.shared-schedule-page {
min-height: 100vh;
background: var(--bg-gradient);
padding: 2rem;
}
.shared-schedule-container {
max-width: 800px;
margin: 0 auto;
}
.shared-schedule-loading,
.shared-schedule-error {
text-align: center;
padding: 4rem 2rem;
}
.shared-schedule-loading h1,
.shared-schedule-error h1 {
font-size: 2rem;
margin-bottom: 1rem;
}
.shared-schedule-error .error-message {
color: var(--danger);
font-size: 1.125rem;
}
/* Expired link styling */
.shared-schedule-error.expired {
max-width: 500px;
margin: 0 auto;
}
.shared-schedule-error .expired-icon {
font-size: 4rem;
margin-bottom: 1rem;
}
.shared-schedule-error.expired h2 {
font-size: 1.5rem;
color: var(--warning);
margin-bottom: 1.5rem;
}
.shared-schedule-error .expired-message {
font-size: 1.125rem;
color: var(--text-primary);
margin-bottom: 1rem;
line-height: 1.5;
}
.shared-schedule-error .expired-contact {
font-size: 1rem;
color: var(--text-secondary);
margin-bottom: 1.5rem;
padding: 1rem;
background: var(--bg-tertiary);
border-radius: 8px;
border: 1px solid var(--border-primary);
}
.shared-schedule-error .expired-date {
font-size: 0.875rem;
color: var(--text-muted);
}
.shared-schedule-header {
text-align: center;
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid var(--border-primary);
position: relative;
}
.shared-schedule-header-actions {
position: absolute;
top: 0;
right: 0;
display: flex;
gap: 0.5rem;
}
.shared-schedule-header h1 {
font-size: 1.75rem;
margin-bottom: 0.5rem;
}
.shared-schedule-period {
color: var(--text-secondary);
font-size: 1rem;
}
.shared-timeline {
background: var(--bg-secondary);
border-radius: 12px;
padding: 1.5rem;
border: 1px solid var(--border-primary);
}
.shared-schedule-empty {
text-align: center;
padding: 2rem;
color: var(--text-secondary);
}
.shared-dose {
background: transparent;
border: none;
padding: 0.5rem 0;
}
.med-name-stack {
display: flex;
flex-direction: column;
align-items: flex-start;
min-width: 0;
gap: 0.1rem;
}
.med-generic-inline {
font-size: 0.875rem;
color: var(--text-secondary);
margin-left: 0;
}
.shared-schedule-footer {
text-align: center;
margin-top: 2rem;
padding-top: 1.5rem;
border-top: 1px solid var(--border-primary);
color: var(--text-secondary);
font-size: 0.875rem;
}
@media (max-width: 600px) {
.shared-schedule-page {
padding: 1rem;
}
.shared-schedule-header h1 {
font-size: 1.25rem;
}
.shared-timeline {
padding: 1rem;
}
}
/* ── Desktop Edit Panel (two-column layout) ── */
.edit-sidebar {
display: none;
padding: 0;
}
@media (min-width: 769px) {
.med-grid-wrapper.desktop-edit-open {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(380px, 46%);
gap: 1rem;
align-items: start;
}
.med-grid-wrapper.desktop-edit-open .med-grid,
.med-grid-wrapper.desktop-edit-open .med-grid-obsolete {
grid-template-columns: 1fr;
}
.edit-sidebar.open {
display: block;
}
}
.edit-sidebar .card {
box-shadow: none;
border: none;
background: transparent;
padding: 0;
padding-top: 1.25rem;
}
/* Desktop only - hide on mobile */
@media (max-width: 768px) {
.desktop-only {
display: none !important;
}
}
/* Mobile Edit Modal */
.edit-modal {
max-width: 95vw;
max-height: 90vh;
overflow-y: auto;
padding: 0.75rem;
}
.edit-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
margin-bottom: 1rem;
}
.edit-modal-header h2 {
font-size: 1.25rem;
margin: 0;
}
.mobile-edit-form.form-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 0.75rem 1rem;
}
.mobile-edit-form.form-grid > label {
font-size: 0.8rem;
min-width: 0 !important;
width: 100%;
}
.mobile-edit-form .form-category {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 0.75rem 0.75rem;
padding: 0.5rem;
border-color: color-mix(in srgb, var(--border-primary) 50%, transparent);
}
.mobile-edit-form .refill-prescription-row {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 0.6rem;
align-items: start;
width: 100%;
}
.mobile-edit-form .refill-prescription-row .refill-prescription-toggle {
grid-template-columns: 18px minmax(0, 1fr);
line-height: 1.3;
max-width: 100%;
}
.mobile-edit-form .refill-remaining-badge {
margin-left: 0;
justify-self: start;
}
.mobile-edit-form.form-grid input,
.mobile-edit-form.form-grid textarea,
.mobile-edit-form.form-grid select {
font-size: 16px !important;
width: 100%;
}
.mobile-edit-form .date-input-display {
font-size: 16px !important;
}
.mobile-edit-form .blister-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
padding: 0.75rem;
background: var(--bg-secondary);
border-radius: 8px;
margin-bottom: 0.5rem;
align-items: end;
}
.mobile-edit-form .blister-row label.compact {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.mobile-edit-form .blister-row label.compact span {
font-size: 0.75rem;
color: var(--text-secondary);
font-weight: 500;
}
.mobile-edit-form .blister-row label.compact.full-row {
grid-column: 1 / -1;
}
.mobile-edit-form .blister-row label.compact.time-label {
width: fit-content;
}
.mobile-edit-form .blister-row label.compact.time-label input[type="time"] {
width: auto;
}
.mobile-edit-form .blister-row .remove-blister-btn {
grid-column: 1 / -1;
justify-self: start;
}
.mobile-edit-form .blister-row .remind-toggle-row {
display: flex;
align-items: center;
gap: 0.5rem;
}
.blister-inputs .remind-toggle-row {
display: flex;
align-items: center;
gap: 0.5rem;
align-self: end;
padding-bottom: 0.5rem;
}
.mobile-edit-form .blister-row .datetime-inputs {
display: flex;
gap: 0.5rem;
}
.mobile-edit-form .blister-row .datetime-inputs input[type="date"] {
flex: 2;
min-width: 0;
}
.mobile-edit-form .blister-row .datetime-inputs input[type="time"] {
flex: 1;
min-width: 0;
}
/* Remove blister button */
.remove-blister-btn {
padding: 0.4rem !important;
font-size: 1rem;
line-height: 1;
border-radius: 6px !important;
min-width: 2.5rem;
min-height: 2.5rem;
align-self: center;
opacity: 0.7;
}
.remove-blister-btn:hover {
opacity: 1;
}
.mobile-edit-form .add-blister {
margin-top: 0.5rem;
width: auto;
}
/* Action Cards (for Export/Import etc.) - similar to radio-card */
.action-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 1rem 1.25rem;
background: var(--bg-tertiary);
border: 1px solid var(--border-secondary);
border-radius: 12px;
transition: all 0.2s ease;
}
.action-card:hover {
border-color: var(--border-primary);
}
.action-card-content {
display: flex;
flex-direction: column;
gap: 0.25rem;
flex: 1;
min-width: 0;
}
.action-card-title {
font-weight: 600;
color: var(--text-primary);
font-size: 0.95rem;
}
.action-card-desc {
color: var(--text-secondary);
font-size: 0.85rem;
line-height: 1.4;
}
.action-card button,
.action-card .btn {
flex-shrink: 0;
}
/* ==========================================
Custom DateInput / DateTimeInput
========================================== */
.date-input-wrapper {
position: relative;
display: flex;
align-items: center;
width: 100%;
cursor: pointer;
}
.date-input-display {
position: absolute;
left: 0.85rem;
right: 2.5rem;
pointer-events: none;
color: var(--text-primary);
font-size: 0.95rem;
font-family: inherit;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
z-index: 1;
}
.date-input-native {
color: transparent !important;
caret-color: transparent !important;
width: 100%;
cursor: pointer;
}
/* Ensure native text stays invisible on focus/selection */
.date-input-native:focus,
.date-input-native:active {
color: transparent !important;
caret-color: transparent !important;
}
.date-input-native::selection {
background: transparent;
color: transparent;
}
.date-input-native::-webkit-datetime-edit {
color: transparent;
}
/* Keep the calendar/clock picker icon visible and clickable */
.date-input-native::-webkit-calendar-picker-indicator {
opacity: 0.6;
cursor: pointer;
filter: invert(0.8);
z-index: 2;
}
.date-input-native::-webkit-calendar-picker-indicator:hover {
opacity: 1;
}
/* Light theme: don't invert icon */
@media (prefers-color-scheme: light) {
.date-input-native::-webkit-calendar-picker-indicator {
filter: none;
opacity: 0.7;
}
}
@media (max-width: 480px) {
.action-card {
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
}
.action-card button,
.action-card .btn {
width: 100%;
text-align: center;
justify-content: center;
}
}
+141
View File
@@ -0,0 +1,141 @@
/* =============================================================================
Share Dialog
============================================================================= */
.share-dialog-modal {
max-width: 480px;
padding: 1.5rem;
}
.share-dialog-header {
text-align: center;
margin-bottom: 1.5rem;
}
.share-dialog-header h2 {
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
.share-dialog-description {
font-size: 0.85rem;
line-height: 1.5;
text-align: left;
color: var(--warning);
background: var(--warning-bg);
padding: 0.75rem 1rem;
border-radius: 8px;
border: 1px solid rgba(252, 211, 77, 0.2);
margin: 0.5rem 0 0;
}
.share-dialog-empty {
text-align: center;
padding: 2rem;
color: var(--text-secondary);
}
.share-dialog-form .form-group {
margin-bottom: 1rem;
}
.share-dialog-form label {
display: block;
font-size: 0.875rem;
font-weight: 500;
margin-bottom: 0.5rem;
color: var(--text-primary);
}
.share-dialog-form select {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--border-primary);
border-radius: 8px;
background-color: var(--bg-input);
color: var(--text-primary);
font-size: 1rem;
}
.share-dialog-footer {
display: flex;
gap: 0.75rem;
margin-top: 1.5rem;
justify-content: space-between;
align-items: center;
}
.share-dialog-footer .footer-left {
display: flex;
gap: 0.5rem;
}
.share-dialog-footer .footer-right {
display: flex;
gap: 0.5rem;
}
.share-dialog-result {
text-align: center;
}
.share-success {
color: var(--success);
font-weight: 500;
margin-bottom: 1rem;
}
.share-link-box {
display: flex;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.share-link-input {
flex: 1;
padding: 0.75rem;
border: 1px solid var(--border-primary);
border-radius: 8px;
background: var(--bg-input);
color: var(--text-primary);
font-size: 0.875rem;
font-family: monospace;
}
.btn-copy {
padding: 0.75rem 1rem;
border: 1px solid var(--border-primary);
border-radius: 8px;
background: var(--bg-tertiary);
color: var(--text-primary);
cursor: pointer;
transition: all 0.2s ease;
}
.btn-copy.icon-only {
padding: 0.5rem;
min-width: 2.75rem;
min-height: 2.75rem;
}
.btn-copy:hover {
background: var(--accent-bg);
border-color: var(--accent);
}
.share-copied-hint {
color: var(--success);
font-size: 0.875rem;
}
.share-btn {
font-size: 0.875rem;
padding: 0.375rem 0.75rem;
}
.share-btn.icon-only {
padding: 0.5rem;
min-width: 2.75rem;
min-height: 2.75rem;
}