Files
HouseHub/modules/holidays/holidays.css
FeFeClochette 536f479423
Deploy HouseHub / deploy (push) Successful in 2s
fix holidfays
2026-07-31 13:14:50 +02:00

1556 lines
28 KiB
CSS

/* modules/holidays/holidays.css */
/* ==========================================================================
1. VARIABLES & BASE
========================================================================== */
body.no-scroll {
overflow: hidden !important;
}
:root {
--primary: #2563eb;
--primary-hover: #1d4ed8;
--bg-card: var(--bg-panel);
--text-muted: #64748b;
--hol-accent-transport: #2563eb;
--hol-accent-accommodation: #059669;
--hol-accent-activity: #d97706;
--hol-info-bg: #e0f2fe;
--hol-info-text: #0369a1;
--hol-warning-bg: #fffbeb;
--radius-l: 16px;
--radius-m: 10px;
--radius-s: 6px;
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--shadow-lg:
0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--shadow-hover:
0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.pf-holidays {
background-color: var(--bg-page);
font-family:
"Segoe UI",
system-ui,
-apple-system,
sans-serif;
color: var(--text-main);
padding-bottom: 50px;
}
.hol-hidden {
display: none !important;
}
/* ==========================================================================
2. EN-TÊTE DE LA LISTE (list.php)
========================================================================== */
.pf-holidays__titlebar {
background: transparent;
padding-bottom: 1rem;
margin-bottom: 2rem;
border-bottom: 1px solid var(--border-light);
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
}
.hol-title-group {
display: flex;
align-items: center;
gap: 20px;
flex-wrap: wrap;
flex: 1;
}
.hol-main-title {
font-size: 1.8rem;
font-weight: 800;
color: var(--text-main);
margin: 0;
}
.hol-filters-row {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.hol-year-select {
width: auto !important;
padding: 6px 12px;
font-weight: bold;
cursor: pointer;
}
.hol-badge-left-to-pay {
color: #be123c;
padding: 6px 12px;
border-radius: 8px;
font-weight: bold;
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 8px;
}
.hol-badge-amount {
font-size: 1rem;
}
.hol-actions-group {
flex-shrink: 0;
}
/* ==========================================================================
3. BOUTONS
========================================================================== */
.hol-add-btn,
.hol-map-toggle,
.pf-btn {
border: none;
border-radius: 50px;
padding: 10px 20px;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
box-shadow: var(--shadow-sm);
text-decoration: none;
}
.hol-add-btn,
.pf-btn {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: white;
}
.hol-add-btn:hover,
.pf-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.hol-map-toggle {
background: var(--bg-panel);
color: #0f766e;
border: 1px solid #ccfbf1;
}
.hol-map-toggle:hover {
background: #f0fdfa;
color: #0d9488;
border-color: #99f6e4;
}
.pf-btn.btn-secondary {
background: var(--bg-panel);
color: var(--text-muted);
border: 1px solid var(--border-strong);
box-shadow: none;
}
.pf-btn.btn-secondary:hover {
background: var(--bg-page);
color: var(--text-main);
}
.pf-btn-small {
padding: 6px 14px !important;
font-size: 0.85rem !important;
width: auto !important;
height: auto !important;
margin: 0 !important;
}
.btn-icon-small,
.hol-btn-action-icon {
background: var(--bg-panel) !important;
border: 1px solid var(--border-light) !important;
border-radius: 6px !important;
width: 26px !important;
height: 26px !important;
min-width: 26px !important;
min-height: 26px !important;
padding: 0 !important;
margin: 0 !important;
display: flex !important;
align-items: center;
justify-content: center;
font-size: 0.8rem;
cursor: pointer;
transition: all 0.2s;
box-shadow: var(--shadow-sm);
}
.btn-icon-small:hover,
.hol-btn-action-icon:hover {
background: var(--bg-subtle) !important;
border-color: var(--border-strong) !important;
transform: scale(1.05);
}
/* ==========================================================================
4. HERO HEADER IMMERSIF (detail.php)
========================================================================== */
.hol-hero-banner {
position: relative;
padding: 24px;
border-radius: var(--radius-l);
color: #ffffff;
margin-bottom: 20px;
box-shadow: var(--shadow-md);
overflow: hidden;
}
.hol-hero-bg-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}
.hol-hero-overlay {
position: absolute;
inset: 0;
z-index: 1;
}
.hol-hero-content {
position: relative;
z-index: 2;
}
.hol-hero-top {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 10px;
}
.hol-hero-back-link {
color: white;
text-decoration: none;
font-size: 0.85rem;
font-weight: 600;
opacity: 0.8;
transition: opacity 0.2s;
}
.hol-hero-back-link:hover {
opacity: 1;
}
.hol-hero-status-badge {
font-size: 0.75rem;
background: rgba(255, 255, 255, 0.2);
padding: 4px 10px;
border-radius: 12px;
font-weight: bold;
backdrop-filter: blur(4px);
}
.hol-hero-title {
margin: 0 0 5px 0;
font-size: 1.8rem;
line-height: 1.1;
color: #ffffff;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.hol-hero-date-badge {
font-size: 0.85rem;
opacity: 0.8;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 6px;
}
.hol-hero-pills {
display: flex;
gap: 10px;
overflow-x: auto;
margin-bottom: 24px;
padding-bottom: 5px;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
}
.hol-pill-block {
display: inline-flex;
}
.hol-pill {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.2);
padding: 6px 12px;
border-radius: 20px;
font-size: 0.7rem;
font-weight: 600;
white-space: nowrap;
display: inline-flex;
align-items: center;
gap: 6px;
}
.hol-pill-action {
opacity: 0.7;
font-size: 0.75rem;
cursor: pointer;
margin-left: 4px;
transition: opacity 0.2s;
}
.hol-pill-action:hover {
opacity: 1;
}
.hol-hero-finances {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 12px;
}
.hol-finance-block {
display: flex;
flex-direction: column;
}
.hol-finance-right {
text-align: right;
}
.hol-finance-label {
font-size: 0.8rem;
opacity: 0.8;
text-transform: uppercase;
font-weight: 600;
}
.hol-finance-value {
font-size: 1.8rem;
font-weight: 800;
line-height: 1.1;
}
.hol-finance-value-due {
font-size: 1.2rem;
font-weight: 800;
color: #fca5a5;
}
.hol-hero-progress-labels {
display: flex;
justify-content: space-between;
font-size: 0.75rem;
font-weight: 600;
}
.hol-label-paid-text {
color: #a7f3d0;
}
.hol-label-saved-text {
color: #bfdbfe;
}
/* ==========================================================================
5. BARRE D'ACTIONS RAPIDES & CARTE
========================================================================== */
.hol-quick-actions-bar {
display: flex;
gap: 10px;
margin-bottom: 24px;
overflow-x: auto;
padding-bottom: 5px;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
}
.hol-quick-action-btn {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 6px;
background: var(--bg-panel);
}
.hol-map-wrapper {
margin-bottom: 24px;
border-radius: var(--radius-l);
overflow: hidden;
box-shadow: var(--shadow-sm);
border: 1px solid var(--border-light);
}
.hol-map-panel-header {
background: var(--bg-page);
padding: 10px 15px;
display: flex;
justify-content: space-between;
align-items: center;
}
.hol-map-title {
margin: 0;
font-size: 0.95rem;
color: var(--text-main);
}
.hol-map-canvas {
width: 100%;
height: 350px;
background: #e2e8f0;
z-index: 1;
}
.hol-map-legend {
display: flex;
gap: 12px;
font-size: 0.75rem;
color: var(--text-muted);
background: transparent;
padding: 2px 8px;
border: none;
}
.hol-legend-item {
display: flex;
align-items: center;
gap: 4px;
}
.hol-legend-color {
display: inline-block;
width: 12px;
height: 4px;
border-radius: 2px;
}
.hol-legend-color.aller {
background: #3b82f6;
}
.hol-legend-color.interm {
background: #8b5cf6;
}
.hol-legend-color.retour {
background: transparent;
height: 0;
border-bottom: 3px dashed #f97316;
border-radius: 0;
}
/* ==========================================================================
6. TIMELINE & CARNET DE ROUTE
========================================================================== */
.hol-panel {
background: var(--bg-panel);
border-radius: var(--radius-l);
box-shadow: var(--shadow-sm);
border: 1px solid var(--border-light);
display: flex;
flex-direction: column;
overflow: hidden;
}
.hol-panel-timeline {
height: auto;
min-height: 500px;
}
.hol-timeline-header {
background: var(--bg-page);
padding: 15px 20px;
border-bottom: 1px solid var(--border-light);
display: flex;
justify-content: space-between;
align-items: center;
}
.hol-timeline-header h3 {
margin: 0;
font-size: 1.1rem;
color: var(--text-main);
}
.hol-panel-body {
padding: 15px;
overflow-y: auto;
flex: 1;
}
.hol-empty-steps-text {
color: var(--text-muted);
font-style: italic;
text-align: center;
margin-top: 40px;
}
.hol-checkpoint {
border: 1px solid var(--border-light);
border-radius: 8px;
margin-bottom: 15px;
overflow: hidden;
background: var(--bg-panel);
}
.hol-step-header {
padding: 6px 8px;
border-bottom: 1px solid var(--border-light);
display: flex;
flex-direction: column;
gap: 8px;
background: var(--bg-page);
}
.hol-step-row-top {
display: flex;
align-items: flex-start;
gap: 10px;
width: 100%;
}
.hol-step-icon {
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
flex-shrink: 0;
margin-top: 2px;
padding: 2px 6px;
}
.hol-step-icon-origin {
background: #ecfdf5;
color: #059669;
}
.hol-step-icon-destination {
background: #fef2f2;
color: #e11d48;
}
.hol-step-icon-stop {
background: transparent;
color: #64748b;
}
.hol-step-title {
flex: 1;
font-size: 1.05rem;
font-weight: 700;
color: var(--text-main);
line-height: 1.3;
word-break: break-word;
cursor: pointer;
padding-top: 4px;
}
.hol-step-title:hover {
color: var(--primary);
}
.hol-step-controls {
flex-shrink: 0;
display: flex;
flex-direction: column;
align-items: center;
}
.hol-drag-handle {
color: #cbd5e1;
font-size: 1.4rem;
cursor: grab;
user-select: none;
line-height: 1;
}
.hol-step-arrows button {
background: transparent;
border: none;
color: #94a3b8;
font-size: 0.75rem;
padding: 4px 8px;
cursor: pointer;
line-height: 1;
}
.hol-step-row-bottom {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 5px;
width: 100%;
}
.hol-step-meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
}
.hol-tag-return {
background: #fff7ed;
color: #ea580c;
padding: 2px 6px;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 700;
border: 1px solid #ffedd5;
line-height: 1.2;
}
.hol-step-date {
font-size: 0.8rem;
color: #64748b;
background: var(--bg-page);
padding: 2px 6px;
border-radius: 4px;
border: 1px solid var(--border-light);
line-height: 1.2;
}
.hol-step-actions {
display: flex;
align-items: center;
gap: 8px;
margin-left: auto;
}
.hol-step-price {
font-weight: 800;
color: var(--primary);
white-space: nowrap;
}
.hol-cp-body {
padding: 10px 15px;
}
/* --- DÉPENSES DANS UNE ÉTAPE --- */
.hol-expense-wrapper {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
margin-bottom: 8px;
border-bottom: 1px dashed var(--bg-subtle);
padding-bottom: 8px;
}
.hol-expense-wrapper:last-child {
margin-bottom: 0;
border-bottom: none;
padding-bottom: 0;
}
.hol-expense-main {
display: flex;
justify-content: space-between;
align-items: flex-start;
width: 100%;
font-size: 0.85rem;
gap: 8px;
}
.hol-expense-name {
flex: 1;
min-width: 0;
word-break: break-word;
color: var(--text-muted);
font-weight: 500;
}
.hol-custom-gps-link {
cursor: pointer;
color: var(--primary);
text-decoration: underline;
font-weight: 600;
}
.hol-expense-amount {
color: var(--text-main);
font-weight: bold;
}
.status-paid {
color: #10b981;
margin-left: 5px;
}
.status-pending {
color: #f59e0b;
margin-left: 5px;
}
.hol-expense-note {
font-size: 0.75rem;
color: var(--text-muted);
margin-top: 2px;
padding-left: 24px;
word-break: break-all;
}
.hol-empty-step {
font-size: 0.8rem;
color: var(--text-muted);
font-style: italic;
padding: 5px 0;
}
/* ==========================================================================
7. NOTES GLOBALE DU VOYAGE
========================================================================== */
.hol-notes-card {
margin-top: 24px;
}
.hol-notes-textarea {
resize: vertical;
width: 100%;
line-height: 1.5;
padding: 12px;
}
.hol-notes-actions {
text-align: right;
margin-top: 12px;
}
/* ==========================================================================
8. CARTES DE LA LISTE (list.php)
========================================================================== */
.hol-ideas-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
gap: 24px;
margin-bottom: 40px;
}
.hol-idea-card {
background: var(--bg-card);
border-radius: var(--radius-l);
box-shadow: var(--shadow-md);
padding: 20px;
display: flex;
flex-direction: column;
transition:
transform 0.25s ease,
box-shadow 0.25s ease;
border: 1px solid transparent;
cursor: pointer;
position: relative;
overflow: hidden;
}
.hol-idea-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover);
border-color: var(--border-light);
}
.hol-idea-card__head {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 8px;
}
.hol-idea-card h3 {
margin: 0;
font-size: 1.15rem;
font-weight: 700;
color: var(--text-main);
line-height: 1.3;
}
.hol-idea-meta {
font-size: 0.9rem;
color: var(--text-muted);
margin-bottom: 12px;
display: flex;
flex-direction: column;
gap: 4px;
}
.bg-green-100 {
background-color: #dcfce7;
}
.text-green-800 {
color: #166534;
}
.bg-blue-100 {
background-color: #dbeafe;
}
.text-blue-800 {
color: #1e40af;
}
.bg-yellow-50 {
background-color: #fefce8;
}
.text-yellow-800 {
color: #854d0e;
}
.bg-gray-100 {
background-color: #f3f4f6;
}
.text-gray-600 {
color: #4b5563;
}
/* ==========================================================================
9. MODALES & DIALOGUES (Sécurisation complète)
========================================================================== */
.pf-modal {
display: none;
position: fixed;
inset: 0;
z-index: 9999;
align-items: center;
justify-content: center;
background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(4px);
}
.pf-modal.open {
display: flex;
}
.pf-modal-content {
position: relative;
background: var(--bg-panel);
width: 95%;
max-width: 1100px;
max-height: 90vh;
overflow-y: auto;
border-radius: 20px;
box-shadow: var(--shadow-lg);
padding: 32px;
display: flex;
flex-direction: column;
margin: auto;
}
.hol-modal-cp {
max-width: 600px;
padding: 0;
overflow: hidden;
}
.hol-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 20px 0 20px;
}
.hol-modal-title {
margin: 0;
font-size: 1.3rem;
color: var(--text-main);
}
.hol-modal-tabs {
display: flex;
border-bottom: 1px solid var(--border-light);
margin-top: 15px;
padding: 0 20px;
}
.hol-modal-tab-btn {
flex: 1;
padding: 10px;
background: none;
border: none;
border-bottom: 3px solid transparent;
font-weight: bold;
color: var(--text-muted);
cursor: pointer;
font-size: 0.95rem;
}
.hol-modal-tab-btn.active {
border-bottom-color: var(--primary);
color: var(--primary);
}
.hol-modal-form {
display: flex;
flex-direction: column;
max-height: calc(90vh - 100px);
}
.hol-tab-content {
padding: 20px;
overflow-y: auto;
}
.hol-search-block {
margin-bottom: 15px;
background: var(--bg-subtle);
padding: 12px;
border-radius: 8px;
border: 1px dashed var(--border-strong);
}
.hol-search-label {
margin-bottom: 4px;
font-size: 0.8rem;
}
.hol-search-input-group {
display: flex;
gap: 8px;
}
.hol-search-btn {
padding: 0 15px;
}
.hol-search-results {
margin-top: 8px;
max-height: 150px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 4px;
}
.hol-input-highlight {
font-weight: bold;
color: var(--primary);
font-size: 1.1rem;
}
.hol-date-range-block {
background: var(--bg-subtle);
padding: 12px;
border-radius: 8px;
border: 1px dashed var(--border-strong);
}
.hol-date-picker-input {
cursor: pointer;
background-color: var(--bg-panel);
color: var(--primary);
font-weight: bold;
text-align: center;
letter-spacing: 0.5px;
}
.hol-checkbox-group {
margin-top: 15px;
display: flex;
flex-direction: column;
gap: 8px;
}
.hol-checkbox-label {
display: flex;
align-items: center;
cursor: pointer;
font-size: 0.85rem;
color: var(--text-main);
}
.hol-checkbox-return {
margin-right: 8px;
width: 16px;
height: 16px;
accent-color: #ea580c;
}
.hol-checkbox {
margin-right: 8px;
width: 16px;
height: 16px;
}
.hol-prog-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
position: sticky;
top: 0;
background: var(--bg-panel);
z-index: 10;
padding-bottom: 10px;
border-bottom: 1px solid var(--border-light);
}
.hol-expenses-container {
display: flex;
flex-direction: column;
gap: 10px;
}
.hol-btn-delete {
color: var(--danger);
border-color: var(--border-danger-soft);
margin-right: auto;
display: none;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 24px;
padding-top: 16px;
border-top: 1px solid var(--border-light);
}
/* --- Modale Planning Global --- */
.hol-modal-planning {
max-width: 95vw;
width: 1400px;
height: 90vh;
display: flex;
flex-direction: column;
padding: 20px;
}
.hol-planning-container {
flex: 1;
overflow: hidden;
display: flex;
}
/* --- Modale Trajets & GPS --- */
.hol-modal-sm {
max-width: 500px;
}
.hol-transit-container {
max-height: 60vh;
overflow-y: auto;
padding-right: 5px;
}
.hol-modal-gps {
max-width: 320px;
height: auto !important;
min-height: 0 !important;
text-align: center;
padding: 20px;
margin: auto;
}
.hol-gps-buttons {
display: flex;
flex-direction: column;
gap: 12px;
}
.hol-gps-btn {
font-size: 1.1rem;
padding: 12px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.hol-gps-icon {
width: 24px;
height: 24px;
}
/* --- Modale Porte-Documents --- */
.hol-modal-docs {
max-width: 450px;
padding: 20px;
}
.hol-docs-dropzone {
text-align: center;
padding: 20px;
background: var(--bg-page);
border: 2px dashed var(--border-light);
border-radius: 8px;
margin-bottom: 15px;
}
.hol-docs-hint {
margin-top: 0;
color: var(--text-muted);
font-size: 0.9rem;
}
.hol-docs-select-btn {
margin: 10px 0;
}
.hol-upload-status {
font-size: 0.85rem;
font-weight: bold;
margin-top: 10px;
}
.hol-docs-list {
display: flex;
flex-direction: column;
gap: 8px;
}
/* ==========================================================================
10. PLANNING DRAG & DROP
========================================================================== */
.hol-planning-layout {
display: flex;
gap: 20px;
height: 65vh;
align-items: stretch;
overflow: hidden;
}
.hol-unmapped-zone {
width: 250px;
background: var(--bg-page);
padding: 15px;
border-radius: 12px;
border: 2px dashed var(--border-strong);
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
}
.hol-unmapped-title {
font-size: 0.85rem;
font-weight: 700;
text-transform: uppercase;
color: var(--text-muted);
margin-bottom: 5px;
text-align: center;
}
.hol-calendar-zone {
flex: 1;
display: flex;
gap: 15px;
overflow: auto;
padding-bottom: 10px;
position: relative;
}
.hol-calendar-zone .hol-drag-item {
position: absolute;
top: 1px;
left: 45px;
right: 5px;
height: calc(60px * var(--duration) - 2px);
}
.hol-unmapped-zone .hol-drag-item {
position: relative;
min-width: 150px;
height: auto;
}
.hol-drag-item.selected-for-move {
border-color: #f59e0b;
transform: scale(1.02);
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}
.hol-item-duration-controls {
display: flex;
align-items: center;
gap: 3px;
margin: 0;
padding: 2px;
border: none;
background: rgba(255, 255, 255, 0.4);
border-radius: 4px;
}
.hol-day-column {
min-width: 220px;
flex: 1;
background: white;
border-radius: 12px;
border: 1px solid var(--border-light);
display: flex;
flex-direction: column;
height: max-content;
overflow: visible;
}
.hol-calendar-day-header {
text-align: center;
padding: 12px 10px;
background: #f8fafc;
border-bottom: 2px solid #e2e8f0;
position: sticky;
top: 0;
z-index: 20;
}
.hol-time-slots-container {
display: flex;
flex-direction: column;
}
.hol-time-slot {
height: 60px;
border-bottom: 1px solid var(--border-light);
position: relative;
transition: background 0.2s;
box-sizing: border-box;
}
.hol-time-slot.drag-over {
background: #e0f2fe;
}
.hol-slot-label {
position: absolute;
top: 2px;
right: 5px;
font-size: 0.65rem;
font-weight: 700;
color: #94a3b8;
pointer-events: none;
}
.hol-drag-item {
background: white;
padding: 6px 8px;
border-radius: 6px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
cursor: grab;
font-size: 0.85rem;
border: 1px solid var(--border-light);
border-left: 4px solid var(--primary);
display: flex;
flex-direction: column;
z-index: 10;
overflow: hidden;
transition:
transform 0.2s,
border-color 0.2s;
}
.hol-drag-item:active {
cursor: grabbing;
}
.hol-drag-item.cat-accommodation {
border-left-color: #8b5cf6;
}
.hol-drag-item.cat-transport {
border-left-color: #10b981;
}
.hol-drag-title {
font-weight: 600;
color: #0f172a;
line-height: 1.2;
}
.hol-drag-note {
font-size: 0.75rem;
color: #64748b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.hol-dur-btn {
background: #f1f5f9;
border: none;
border-radius: 4px;
width: 18px;
height: 18px;
cursor: pointer;
font-weight: bold;
color: #475569;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.8rem;
}
.hol-dur-btn:hover {
background: #e2e8f0;
}
.hol-dur-text {
font-size: 0.7rem;
color: #64748b;
font-weight: 700;
}
.hol-unplace-btn {
display: none;
background: #fee2e2;
color: #ef4444;
border: 1px solid #fca5a5;
border-radius: 4px;
width: 24px;
height: 24px;
cursor: pointer;
font-size: 0.85rem;
align-items: center;
justify-content: center;
padding: 0;
transition: all 0.2s;
margin-left: 4px;
}
.hol-unplace-btn:hover {
background: #ef4444;
color: white;
}
.hol-time-slot .hol-drag-item .hol-unplace-btn {
display: flex;
}
/* ==========================================================================
11. MÉTÉO & DATES
========================================================================== */
.hol-weather-info {
display: inline-flex;
}
.pf-weather-badge {
display: flex;
align-items: center;
gap: 4px;
background: #f8fafc;
border: 1px solid var(--border-light);
padding: 1px 6px;
border-radius: 6px;
color: #475569;
font-weight: 600;
font-size: 0.7rem;
line-height: 1;
}
.pf-weather-icon {
font-size: 0.9rem;
}
.hol-date-weather-wrapper {
font-size: 0.75rem;
color: #64748b;
font-weight: normal;
margin-top: 4px;
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.hol-step-dates {
white-space: nowrap;
}
input[type="date"] {
color-scheme: light;
background-color: #ffffff;
color: #1e293b;
}
input[type="date"]::-webkit-calendar-picker-indicator {
cursor: pointer;
opacity: 0.6;
filter: invert(0);
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
opacity: 1;
}
/* ==========================================================================
12. UX MOBILE & ADAPTATIONS RESPONSIVE
========================================================================== */
@media (max-width: 768px) {
.pf-holidays__titlebar {
flex-direction: column;
align-items: stretch;
gap: 15px;
}
.hol-title-group {
flex-direction: column;
align-items: stretch;
gap: 15px;
}
.hol-filters-row {
justify-content: space-between;
width: 100%;
}
.hol-badge-left-to-pay {
flex: 1;
justify-content: center;
font-size: 0.8rem;
}
.hol-actions-group .hol-add-btn,
.hol-add-btn,
.hol-map-toggle {
width: 100%;
justify-content: center;
}
.pf-modal {
padding: 0 !important;
}
.pf-modal-content {
padding: 16px;
width: 100% !important;
height: 100dvh !important;
max-height: 100dvh !important;
margin: 0 !important;
border-radius: 0 !important;
overflow-y: auto;
overscroll-behavior-y: contain;
-webkit-overflow-scrolling: touch;
}
/* --- MODALE DE PLANNING MOBILE (BOTTOM SHEET) --- */
#planningModal .pf-modal-content {
padding: 6px !important;
height: 98vh !important;
max-height: 98vh !important;
display: flex !important;
flex-direction: column !important;
}
#planningModal .pf-modal-content > div:first-child {
margin-bottom: 6px !important;
padding-bottom: 6px !important;
}
#planningContainer > div {
flex-direction: column !important;
padding-bottom: 0 !important;
gap: 8px !important;
height: 100% !important;
}
.hol-calendar-zone {
width: 100% !important;
flex: 1 1 auto !important;
order: 1 !important;
padding-bottom: 35vh !important;
margin-top: 0 !important;
gap: 6px !important;
}
.hol-unmapped-zone {
width: 100% !important;
height: 35vh !important;
min-height: 180px !important;
flex: 0 0 auto !important;
order: 2 !important;
border-radius: 12px 12px 0 0 !important;
border-top: 2px solid var(--primary) !important;
border-bottom: none !important;
border-left: none !important;
border-right: none !important;
box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15) !important;
margin: 0 !important;
padding: 6px !important;
z-index: 100;
background: var(--bg-panel) !important;
display: flex !important;
flex-direction: column !important;
}
#unmapped-pool {
flex-direction: column !important;
overflow-y: auto !important;
overflow-x: hidden !important;
padding-bottom: 10px !important;
gap: 8px !important;
-webkit-overflow-scrolling: touch;
flex: 1 !important;
align-items: stretch !important;
}
#unmapped-pool .hol-drag-item {
width: 100% !important;
height: auto !important;
min-height: 50px !important;
padding: 8px 10px !important;
white-space: normal !important;
}
#planningModal .modal-footer {
display: none !important;
}
}
/* Modale JS d'ajout de dépense */
.hol-form-row {
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px;
background: var(--bg-page);
border-radius: 8px;
border: 1px solid var(--border-light);
margin-bottom: 10px;
}
.hol-form-inner {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
width: 100%;
}
.hol-form-select {
flex: 0 0 50px;
padding: 8px 4px;
font-size: 1.1rem;
cursor: pointer;
margin: 0 !important;
}
.hol-form-text {
flex: 1;
min-width: 140px;
padding: 8px;
font-size: 0.9rem;
margin: 0 !important;
}
.hol-form-number {
flex: 0 0 90px;
text-align: right;
padding: 8px;
font-size: 0.9rem;
font-weight: bold;
color: var(--primary);
margin: 0 !important;
}
.hol-form-paid-label {
display: flex;
align-items: center;
cursor: pointer;
flex: 0 0 60px;
margin: 0 !important;
}
.hol-form-paid-text {
font-size: 0.8rem;
margin-left: 6px;
font-weight: 600;
color: var(--text-muted);
}