708 lines
14 KiB
CSS
708 lines
14 KiB
CSS
/* modules/gift-list/gift-list.css */
|
|
|
|
.pf-gift-list h1 {
|
|
font-size: 1.6rem;
|
|
font-weight: 800;
|
|
margin: 0;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.cl-titlebar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 15px;
|
|
margin-bottom: 20px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
padding-bottom: 15px;
|
|
}
|
|
|
|
.cl-view-switch {
|
|
display: flex;
|
|
padding: 4px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-light);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.cl-view-btn {
|
|
padding: 6px 16px;
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.cl-view-btn.is-active {
|
|
background: var(--text-main);
|
|
color: var(--bg-panel);
|
|
}
|
|
|
|
/* === FILTRES STICKY === */
|
|
.pf-filter-bar {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
margin-bottom: 24px;
|
|
position: sticky;
|
|
top: 64px;
|
|
z-index: 50;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.pf-filter-label {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.pf-filter-select {
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
border: 1px solid var(--border-light);
|
|
background: rgba(255, 255, 255, 0.95);
|
|
backdrop-filter: blur(8px);
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-main);
|
|
outline: none;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
box-shadow: var(--shadow-sm);
|
|
width: auto;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 10px center;
|
|
background-size: 12px;
|
|
padding-right: 28px;
|
|
}
|
|
|
|
.pf-filter-select:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
|
|
}
|
|
|
|
/* === SECTIONS ENFANTS === */
|
|
.pf-child-section {
|
|
margin-bottom: 30px;
|
|
background: var(--bg-panel);
|
|
padding: 20px;
|
|
border-radius: 16px;
|
|
border: 1px solid var(--border-light);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
.pf-child-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
.pf-child-header h3 {
|
|
margin: 0;
|
|
font-size: 1.3rem;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
/* === BARRE DES TOTAUX (PILLS) === */
|
|
.pf-child-totals-bar {
|
|
display: flex;
|
|
gap: 8px;
|
|
overflow-x: auto;
|
|
padding-bottom: 12px;
|
|
margin-bottom: 15px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
scrollbar-width: none;
|
|
}
|
|
.pf-child-totals-bar::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.pf-summary-pill {
|
|
white-space: nowrap;
|
|
background: var(--bg-page);
|
|
padding: 4px 12px;
|
|
border-radius: 50px;
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
border: 1px solid var(--border-strong);
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
/* === FEED DES CARTES CADEAUX === */
|
|
.pf-gift-feed {
|
|
display: grid;
|
|
gap: 12px;
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
}
|
|
.pf-gift-card-compact {
|
|
background: var(--bg-panel);
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border-light);
|
|
padding: 12px;
|
|
position: relative;
|
|
transition: 0.2s;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100px;
|
|
}
|
|
.pf-gift-card-compact:hover {
|
|
border-color: var(--border-strong);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
.pf-gift-title {
|
|
font-weight: 600;
|
|
color: var(--text-main);
|
|
font-size: 0.95rem;
|
|
margin: 0 0 10px 0;
|
|
line-height: 1.3;
|
|
word-break: break-word;
|
|
}
|
|
.pf-gift-link {
|
|
text-decoration: none;
|
|
margin-left: 4px;
|
|
}
|
|
.pf-gift-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
margin-top: auto;
|
|
}
|
|
.pf-gift-price {
|
|
font-weight: 800;
|
|
color: var(--success);
|
|
font-size: 1rem;
|
|
}
|
|
.pf-pill-adult {
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
background: #e0f2fe;
|
|
color: #0369a1;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
}
|
|
.pf-gift-payer {
|
|
font-size: 0.7rem;
|
|
color: #ef4444;
|
|
font-weight: 600;
|
|
font-style: italic;
|
|
margin-top: 5px;
|
|
}
|
|
.pf-gift-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
/* === TRICOUNT / LIQUIDATIONS === */
|
|
.pf-tricount-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
.pf-tricount-item {
|
|
background: var(--bg-panel);
|
|
padding: 12px 15px;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 8px;
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 0.95rem;
|
|
}
|
|
.cl-debt-matrix th:first-child,
|
|
.cl-debt-matrix td:first-child {
|
|
position: sticky;
|
|
left: 0;
|
|
background: var(--bg-page);
|
|
z-index: 2;
|
|
border-right: 2px solid var(--border-light);
|
|
}
|
|
|
|
.cl-occasion-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
object-fit: contain;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.cl-occasion-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* === COMPOSANT MULTI-SELECT VANILLA === */
|
|
.pf-multi-select {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
.pf-ms-trigger {
|
|
padding: 6px 16px;
|
|
border-radius: 20px;
|
|
border: 1px solid var(--border-light);
|
|
backdrop-filter: blur(8px);
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-main);
|
|
cursor: pointer;
|
|
box-shadow: var(--shadow-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
user-select: none;
|
|
}
|
|
.pf-ms-trigger:hover {
|
|
border-color: #cbd5e1;
|
|
}
|
|
.pf-ms-trigger.active {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
|
|
}
|
|
.pf-ms-dropdown {
|
|
display: none;
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
left: 0;
|
|
background: var(--bg-panel);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 12px;
|
|
padding: 8px;
|
|
box-shadow: var(--shadow-lg);
|
|
z-index: 100;
|
|
min-width: 200px;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
}
|
|
.pf-ms-dropdown.open {
|
|
display: flex;
|
|
animation: popDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
}
|
|
.pf-ms-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
padding: 8px 10px;
|
|
border-radius: 6px;
|
|
color: var(--text-main);
|
|
transition: 0.2s;
|
|
}
|
|
.pf-ms-option:hover {
|
|
background: var(--bg-page);
|
|
}
|
|
.pf-ms-option input[type="checkbox"] {
|
|
margin: 0;
|
|
cursor: pointer;
|
|
accent-color: var(--primary);
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
.pf-ms-option.is-all {
|
|
font-weight: 700;
|
|
border-bottom: 1px solid var(--border-light);
|
|
padding-bottom: 10px;
|
|
margin-bottom: 4px;
|
|
border-radius: 6px 6px 0 0;
|
|
}
|
|
|
|
@keyframes popDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.pf-child-section {
|
|
padding: 15px;
|
|
}
|
|
.pf-filter-bar {
|
|
padding: 0 5px;
|
|
}
|
|
.pf-filter-label {
|
|
display: none;
|
|
}
|
|
.pf-gift-feed {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
.pf-gift-title {
|
|
font-size: 0.85rem;
|
|
}
|
|
.pf-gift-price {
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
@media (max-width: 400px) {
|
|
.pf-gift-feed {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Header & Settings Button */
|
|
.gift-settings-btn {
|
|
font-size: 1.5rem;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Empty States */
|
|
.gift-empty-state {
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
font-style: italic;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Section Tricount (Bilan) */
|
|
.gift-tricount-section {
|
|
border: 1px solid var(--border-light);
|
|
margin-top: 40px;
|
|
}
|
|
.gift-tricount-title {
|
|
margin-top: 0;
|
|
color: var(--text-main);
|
|
font-size: 1.3rem;
|
|
}
|
|
.gift-tricount-success {
|
|
color: var(--success);
|
|
font-weight: 700;
|
|
margin-bottom: 0;
|
|
}
|
|
.gift-tricount-debt-amount {
|
|
color: var(--danger);
|
|
}
|
|
.gift-matrix-details {
|
|
margin-top: 20px;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
}
|
|
.gift-matrix-summary {
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
outline: none;
|
|
}
|
|
.gift-matrix-wrapper {
|
|
overflow-x: auto;
|
|
margin-top: 15px;
|
|
}
|
|
.cl-debt-matrix th.sticky-col,
|
|
.cl-debt-matrix td.sticky-col {
|
|
position: sticky;
|
|
left: 0;
|
|
z-index: 2;
|
|
border-right: 2px solid #e2e8f0;
|
|
}
|
|
.cl-debt-matrix th.sticky-col.bg-header {
|
|
background: #f8fafc;
|
|
}
|
|
.cl-debt-matrix th.sticky-col.bg-body {
|
|
background: white;
|
|
}
|
|
|
|
.gift-cell-danger {
|
|
color: var(--danger);
|
|
font-weight: 700;
|
|
background: #fef2f2;
|
|
}
|
|
.gift-cell-muted {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Modale Edition Cadeau */
|
|
.gift-modal-custom-content {
|
|
max-width: 500px;
|
|
width: 95%;
|
|
}
|
|
.gift-modal-custom-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
.gift-modal-custom-title {
|
|
margin: 0;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
.gift-modal-close-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.8rem;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
line-height: 1;
|
|
}
|
|
.gift-form-group-spaced {
|
|
margin-bottom: 25px;
|
|
}
|
|
.gift-modal-custom-footer {
|
|
padding-top: 15px;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Modale Paramètres Occasions (Bottom Sheet style) */
|
|
.gift-settings-backdrop {
|
|
display: none;
|
|
align-items: flex-end; /* Bottom sheet on mobile */
|
|
}
|
|
.gift-settings-modal {
|
|
width: 100%;
|
|
border-radius: 12px 12px 0 0;
|
|
margin: 0;
|
|
}
|
|
.gift-settings-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.gift-settings-header h3 {
|
|
margin: 0;
|
|
}
|
|
.gift-settings-body {
|
|
padding: 1rem;
|
|
}
|
|
.gift-occasions-list {
|
|
margin-bottom: 2rem;
|
|
}
|
|
.gift-occasions-grid {
|
|
display: grid;
|
|
gap: 0.5rem;
|
|
}
|
|
.gift-occasion-card {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.8rem 1rem;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 8px;
|
|
}
|
|
.gift-occasion-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
cursor: pointer;
|
|
}
|
|
.gift-date-badge {
|
|
font-size: 0.8em;
|
|
background: var(--bg-page);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
margin-left: 10px;
|
|
}
|
|
.gift-add-subtitle {
|
|
margin-top: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.gift-add-form {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
.gift-add-input-name {
|
|
flex: 1;
|
|
min-width: 150px;
|
|
}
|
|
.gift-add-input-date {
|
|
width: 120px;
|
|
}
|
|
.gift-help-text {
|
|
color: var(--text-muted);
|
|
font-size: 0.85em;
|
|
}
|
|
.gift-loader {
|
|
text-align: center;
|
|
padding: 20px;
|
|
}
|
|
.gift-error-msg {
|
|
color: var(--danger);
|
|
padding: 10px;
|
|
}
|
|
/* ==========================================================================
|
|
BOUTONS & MODALE (Design System Todo)
|
|
========================================================================== */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
padding: 0.4rem 0.85rem;
|
|
border-radius: 8px;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
border: 1px solid transparent;
|
|
transition: all 0.15s;
|
|
white-space: nowrap;
|
|
}
|
|
.btn-icon {
|
|
padding: 0.25rem;
|
|
min-width: 28px;
|
|
justify-content: center;
|
|
font-size: 1.2rem;
|
|
}
|
|
.btn-ghost {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
}
|
|
.btn-ghost:hover {
|
|
color: var(--text-main);
|
|
background: var(--bg-page);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
/* Correction de la surimpression de la modale Paramètres */
|
|
.gift-settings-backdrop {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 200;
|
|
background: rgba(15, 23, 42, 0.5);
|
|
backdrop-filter: blur(4px);
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.gift-settings-modal {
|
|
background: var(--bg-panel);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 14px;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
max-height: 90vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
|
|
animation: modalIn 0.18s ease;
|
|
}
|
|
|
|
@keyframes modalIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.96) translateY(-8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
MODALE PARAMÈTRES (Design System Todo)
|
|
========================================================================== */
|
|
.gift-settings-backdrop {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 200;
|
|
background: rgba(15, 23, 42, 0.5);
|
|
backdrop-filter: blur(4px);
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
}
|
|
.gift-settings-backdrop.show {
|
|
display: flex;
|
|
}
|
|
|
|
.gift-settings-modal {
|
|
background: var(--bg-panel);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 14px;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
max-height: 90vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
|
|
animation: giftModalIn 0.18s ease;
|
|
}
|
|
|
|
@keyframes giftModalIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.96) translateY(-8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
.gift-settings-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1rem 1.25rem;
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
.gift-settings-header h3 {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
}
|
|
.gift-settings-close {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
font-size: 1.2rem;
|
|
border-radius: 6px;
|
|
padding: 0.2rem 0.4rem;
|
|
}
|
|
.gift-settings-close:hover {
|
|
background: var(--bg-page);
|
|
}
|
|
|
|
.gift-settings-body {
|
|
padding: 1.25rem;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.9rem;
|
|
}
|
|
|
|
.gift-add-subtitle {
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--text-muted);
|
|
margin: 0.5rem 0 0;
|
|
}
|
|
.gift-add-form {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
/* Aligner le bouton sur celui de Todo */
|
|
.gift-add-form .btn-primary {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
border-color: var(--primary);
|
|
}
|
|
.gift-add-form .btn-primary:hover {
|
|
background: var(--primary-dark);
|
|
}
|