forked from FroSteel/Planification
1041 lines
23 KiB
CSS
1041 lines
23 KiB
CSS
/* ==========================================================================
|
|
Thème clair (défaut)
|
|
========================================================================== */
|
|
:root {
|
|
--bg: #f4f5f7;
|
|
--bg-elevated: #ffffff;
|
|
--bg-muted: #f0f1f3;
|
|
--bg-hover: #f7f8fa;
|
|
--border: #e2e4e8;
|
|
--border-strong: #cfd3da;
|
|
--text: #1a1f2b;
|
|
--text-muted: #5b6573;
|
|
--text-faint: #8892a0;
|
|
--accent: #0f4f8b;
|
|
--accent-soft: #e1ecf7;
|
|
--danger: #b03030;
|
|
--danger-soft: #fbe6e6;
|
|
--warn: #b87a00;
|
|
--warn-soft: #fff2d6;
|
|
--ok: #2e7b4a;
|
|
--ok-soft: #dff0e4;
|
|
|
|
/* Palette par type d'intervention */
|
|
--c-livraison: #2563eb;
|
|
--c-livraison-soft: #dbeafe;
|
|
--c-recup: #16a34a;
|
|
--c-recup-soft: #dcfce7;
|
|
--c-remplacement: #ea580c;
|
|
--c-remplacement-soft: #fed7aa;
|
|
--c-incident: #8b5cf6;
|
|
--c-incident-soft: #ede9fe;
|
|
--c-installation: #2563eb;
|
|
--c-installation-soft: #dbeafe;
|
|
--c-rollout: #92400e; /* brun */
|
|
--c-rollout-soft: #fde68a;
|
|
--c-reservation: #f59e0b; /* jaune/ambre */
|
|
--c-reservation-soft: #fef3c7;
|
|
--c-autre: #6b7280;
|
|
--c-autre-soft: #e5e7eb;
|
|
|
|
/* Statuts clos */
|
|
--c-closed: #15803d; /* vert foncé = Clôturé */
|
|
--c-closed-soft: #bbf7d0;
|
|
--c-resolved: #4ade80; /* vert clair = Résolu */
|
|
--c-resolved-soft: #dcfce7;
|
|
|
|
--shadow: 0 1px 3px rgba(20, 30, 50, 0.06), 0 1px 2px rgba(20, 30, 50, 0.04);
|
|
--shadow-hover: 0 2px 8px rgba(20, 30, 50, 0.08);
|
|
--radius: 8px;
|
|
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
--mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--bg: #16181d;
|
|
--bg-elevated: #21242b;
|
|
--bg-muted: #1c1f25;
|
|
--bg-hover: #2a2e36;
|
|
--border: #2e333c;
|
|
--border-strong: #414754;
|
|
--text: #e6e8ec;
|
|
--text-muted: #9ba2ad;
|
|
--text-faint: #6a727e;
|
|
--accent: #5ea8e8;
|
|
--accent-soft: #223348;
|
|
--danger: #e87878;
|
|
--danger-soft: #3b2626;
|
|
--warn: #d9a753;
|
|
--warn-soft: #3a2e1a;
|
|
--ok: #78c59a;
|
|
--ok-soft: #1f3a2b;
|
|
|
|
--c-livraison: #60a5fa;
|
|
--c-livraison-soft: #1e3a5f;
|
|
--c-recup: #4ade80;
|
|
--c-recup-soft: #14432a;
|
|
--c-remplacement: #fb923c;
|
|
--c-remplacement-soft: #4a2512;
|
|
--c-incident: #a78bfa;
|
|
--c-incident-soft: #2e1065;
|
|
--c-installation: #60a5fa;
|
|
--c-installation-soft: #1e3a5f;
|
|
--c-autre: #9ca3af;
|
|
--c-autre-soft: #2a2e36;
|
|
|
|
--c-closed: #22c55e;
|
|
--c-closed-soft: #14432a;
|
|
--c-resolved: #86efac;
|
|
--c-resolved-soft: #0f3320;
|
|
|
|
--shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
--shadow-hover: 0 2px 10px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Base
|
|
========================================================================== */
|
|
* { box-sizing: border-box; }
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: var(--font);
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.hidden { display: none !important; }
|
|
|
|
/* ==========================================================================
|
|
Topbar
|
|
========================================================================== */
|
|
.topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 20px;
|
|
background: var(--bg-elevated);
|
|
border-bottom: 1px solid var(--border);
|
|
box-shadow: var(--shadow);
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.topbar-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.topbar h1 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.capture-info {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.refresh-check {
|
|
font-size: 14px;
|
|
color: var(--c-recup); /* vert */
|
|
font-weight: 700;
|
|
opacity: 0;
|
|
transform: scale(0.5);
|
|
transition: opacity 0.25s ease, transform 0.25s ease;
|
|
pointer-events: none;
|
|
}
|
|
.refresh-check.visible {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
.refresh-check.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.topbar-right {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Navigation de date */
|
|
.date-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.btn-nav {
|
|
padding: 6px 10px;
|
|
font-size: 13px;
|
|
min-width: 32px;
|
|
}
|
|
|
|
.btn-today {
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.date-input {
|
|
padding: 5px 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--bg-muted);
|
|
color: var(--text);
|
|
font-family: inherit;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
.date-input:hover {
|
|
border-color: var(--border-strong);
|
|
}
|
|
.date-input:focus {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
background: var(--bg-muted);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
transition: background 0.1s, border-color 0.1s;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.btn:active {
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-icon {
|
|
padding: 6px 10px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.btn-subtle {
|
|
opacity: 0.75;
|
|
font-size: 12px;
|
|
}
|
|
.btn-subtle:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: white;
|
|
border-color: var(--accent);
|
|
}
|
|
.btn-primary:hover {
|
|
background: var(--accent);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Bouton "Arrêter" (apparaît pendant un refresh manuel) */
|
|
.btn-abort {
|
|
background: var(--danger-soft);
|
|
color: var(--danger);
|
|
border-color: var(--danger);
|
|
}
|
|
.btn-abort:hover {
|
|
background: var(--danger);
|
|
color: white;
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
#refresh-icon.spinning {
|
|
display: inline-block;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
@keyframes spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Écrans d'état
|
|
========================================================================== */
|
|
.loading {
|
|
padding: 40px 20px;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.error-box {
|
|
margin: 20px;
|
|
padding: 14px 18px;
|
|
background: var(--danger-soft);
|
|
color: var(--danger);
|
|
border: 1px solid var(--danger);
|
|
border-radius: var(--radius);
|
|
font-size: 14px;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.session-needed {
|
|
max-width: 500px;
|
|
margin: 60px auto;
|
|
padding: 28px 32px;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
text-align: center;
|
|
}
|
|
.session-needed h2 {
|
|
margin: 0 0 12px 0;
|
|
color: var(--text);
|
|
}
|
|
.session-needed p {
|
|
margin: 10px 0;
|
|
color: var(--text-muted);
|
|
}
|
|
.session-needed code {
|
|
background: var(--bg-muted);
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
}
|
|
.session-needed button {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Stats globales
|
|
========================================================================== */
|
|
.stats {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
padding: 12px 20px 4px 20px;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
}
|
|
.global-stat b {
|
|
color: var(--text);
|
|
font-weight: 600;
|
|
}
|
|
.global-stat-main b {
|
|
font-size: 16px;
|
|
}
|
|
.global-stat-sub {
|
|
color: var(--text-faint);
|
|
font-size: 12px;
|
|
}
|
|
.global-stat-sep {
|
|
color: var(--text-faint);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Grille de cartes
|
|
========================================================================== */
|
|
.cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
|
gap: 14px;
|
|
padding: 14px 20px 40px 20px;
|
|
}
|
|
|
|
.card {
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.card-header {
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-muted);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.card-tech-name {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.card-tech-badge {
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge-pompier {
|
|
background: var(--danger-soft);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.badge-absent {
|
|
background: var(--bg-muted);
|
|
color: var(--text-faint);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.badge-count {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.card-body {
|
|
padding: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.card-empty {
|
|
padding: 14px;
|
|
color: var(--text-faint);
|
|
font-size: 13px;
|
|
font-style: italic;
|
|
text-align: center;
|
|
}
|
|
|
|
.card.is-pompier {
|
|
border-left: 3px solid var(--danger);
|
|
}
|
|
.card.is-absent {
|
|
opacity: 0.85;
|
|
}
|
|
.card.is-absent .card-header {
|
|
background: var(--bg);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Frise de temps
|
|
========================================================================== */
|
|
.timeline {
|
|
padding: 12px 14px 6px 14px;
|
|
background: var(--bg-muted);
|
|
border-bottom: 1px solid var(--border);
|
|
position: relative;
|
|
}
|
|
.timeline-pompier {
|
|
background: var(--danger-soft);
|
|
}
|
|
|
|
.timeline-bar {
|
|
position: relative;
|
|
height: 20px;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.timeline-hole {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
background: repeating-linear-gradient(
|
|
45deg,
|
|
transparent 0 4px,
|
|
rgba(0, 0, 0, 0.035) 4px 8px
|
|
);
|
|
cursor: help;
|
|
transition: background 0.1s;
|
|
}
|
|
[data-theme="dark"] .timeline-hole {
|
|
background: repeating-linear-gradient(
|
|
45deg,
|
|
transparent 0 4px,
|
|
rgba(255, 255, 255, 0.04) 4px 8px
|
|
);
|
|
}
|
|
.timeline-hole:hover {
|
|
background: var(--ok-soft);
|
|
}
|
|
|
|
.timeline-slot {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
cursor: help;
|
|
transition: filter 0.1s;
|
|
border-right: 1px solid var(--bg-elevated);
|
|
}
|
|
|
|
.timeline-slot.color-livraison { background: var(--c-livraison); }
|
|
.timeline-slot.color-installation { background: var(--c-installation); }
|
|
.timeline-slot.color-recup { background: var(--c-recup); }
|
|
.timeline-slot.color-remplacement { background: var(--c-remplacement); }
|
|
.timeline-slot.color-incident { background: var(--c-incident); }
|
|
.timeline-slot.color-rollout { background: var(--c-rollout); }
|
|
.timeline-slot.color-reservation { background: var(--c-reservation); }
|
|
.timeline-slot.color-autre { background: var(--c-autre); }
|
|
|
|
/* Statuts clos sur la timeline */
|
|
.timeline-slot.status-closed { background: var(--c-closed); }
|
|
.timeline-slot.status-resolved { background: var(--c-resolved); }
|
|
|
|
.timeline-slot.kind-absence {
|
|
background: repeating-linear-gradient(
|
|
45deg,
|
|
var(--text-faint) 0 6px,
|
|
var(--bg-muted) 6px 12px
|
|
);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.timeline-slot:hover,
|
|
.timeline-slot.highlight {
|
|
filter: brightness(1.12);
|
|
outline: 2px solid var(--text);
|
|
outline-offset: -2px;
|
|
z-index: 2;
|
|
}
|
|
|
|
.timeline-noon {
|
|
position: absolute;
|
|
top: -2px;
|
|
bottom: -2px;
|
|
width: 1px;
|
|
background: var(--border-strong);
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.timeline-scale {
|
|
position: relative;
|
|
height: 14px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.timeline-tick {
|
|
position: absolute;
|
|
transform: translateX(-50%);
|
|
font-size: 10px;
|
|
color: var(--text-faint);
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
/* Stats par carte */
|
|
.card-stats {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
padding: 10px 14px;
|
|
background: var(--bg-muted);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.stat-total {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 6px;
|
|
}
|
|
.stat-total-num {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
line-height: 1;
|
|
}
|
|
.stat-total-lbl {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
.stat-split {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
color: var(--text-faint);
|
|
}
|
|
.stat-split-item b {
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
}
|
|
.stat-split-sep {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
/* Notes de statut */
|
|
.card-status-note {
|
|
padding: 8px 14px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
}
|
|
.card-status-note.pompier {
|
|
background: var(--danger-soft);
|
|
color: var(--danger);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.card-status-note.absent {
|
|
background: var(--bg);
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border);
|
|
font-style: italic;
|
|
}
|
|
|
|
.card-empty.subtle {
|
|
font-size: 12px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.intervention.highlight {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Interventions — layout v2 (heures verticales)
|
|
========================================================================== */
|
|
.intervention-v2 {
|
|
display: grid;
|
|
grid-template-columns: 4px 58px 1fr auto;
|
|
grid-template-rows: auto auto;
|
|
grid-template-areas:
|
|
"dot time ref copy"
|
|
"dot time right status";
|
|
gap: 2px 10px;
|
|
align-items: start;
|
|
padding: 10px 12px 12px 8px;
|
|
border-top: 1px solid var(--border);
|
|
cursor: default;
|
|
transition: background 0.08s;
|
|
position: relative;
|
|
}
|
|
.intervention-v2:first-child { border-top: none; }
|
|
.intervention-v2:hover { background: var(--bg-hover); }
|
|
|
|
/* Pastille colorée (barre verticale) */
|
|
.intervention-v2 .intervention-dot {
|
|
grid-area: dot;
|
|
width: 4px;
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
align-self: stretch;
|
|
}
|
|
.intervention-v2.color-livraison .intervention-dot { background: var(--c-livraison); }
|
|
.intervention-v2.color-installation .intervention-dot { background: var(--c-installation); }
|
|
.intervention-v2.color-recup .intervention-dot { background: var(--c-recup); }
|
|
.intervention-v2.color-remplacement .intervention-dot { background: var(--c-remplacement); }
|
|
.intervention-v2.color-incident .intervention-dot { background: var(--c-incident); }
|
|
.intervention-v2.color-rollout .intervention-dot { background: var(--c-rollout); }
|
|
.intervention-v2.color-reservation .intervention-dot { background: var(--c-reservation); }
|
|
.intervention-v2.color-autre .intervention-dot { background: var(--c-autre); }
|
|
|
|
.intervention-v2.clickable { cursor: pointer; }
|
|
.intervention-v2.clickable:active { transform: translateY(1px); }
|
|
|
|
.intervention-v2.status-closed {
|
|
background: var(--c-closed-soft);
|
|
box-shadow: inset 4px 0 0 var(--c-closed);
|
|
}
|
|
.intervention-v2.status-closed:hover {
|
|
background: var(--c-closed-soft);
|
|
filter: brightness(0.96);
|
|
}
|
|
.intervention-v2.status-closed .intervention-dot {
|
|
background: var(--c-closed);
|
|
width: 5px;
|
|
}
|
|
|
|
.intervention-v2.status-resolved {
|
|
background: var(--c-resolved-soft);
|
|
box-shadow: inset 4px 0 0 var(--c-resolved);
|
|
}
|
|
.intervention-v2.status-resolved:hover {
|
|
background: var(--c-resolved-soft);
|
|
filter: brightness(0.96);
|
|
}
|
|
.intervention-v2.status-resolved .intervention-dot {
|
|
background: var(--c-resolved);
|
|
width: 5px;
|
|
}
|
|
|
|
.intervention-v2.is-ghost {
|
|
opacity: 0.5;
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
/* Ligne 1 : REF en titre centré gros gras */
|
|
.iv-ref-header {
|
|
grid-area: ref;
|
|
font-family: var(--mono);
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
letter-spacing: 0.03em;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
padding: 2px 0;
|
|
}
|
|
.iv-ref-header.no-ref {
|
|
font-family: var(--font);
|
|
font-weight: 500;
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
.iv-status-check {
|
|
grid-area: status;
|
|
align-self: center;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--c-closed);
|
|
padding-right: 6px;
|
|
}
|
|
.intervention-v2.status-resolved .iv-status-check { color: var(--c-resolved); }
|
|
|
|
.intervention-copy {
|
|
grid-area: copy;
|
|
align-self: start;
|
|
padding: 2px 6px;
|
|
background: transparent;
|
|
color: var(--text-faint);
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
opacity: 0;
|
|
transition: opacity 0.1s, background 0.1s, color 0.1s;
|
|
font-family: inherit;
|
|
}
|
|
.intervention-v2:hover .intervention-copy { opacity: 1; }
|
|
.intervention-copy:hover {
|
|
background: var(--bg-muted);
|
|
color: var(--text);
|
|
border-color: var(--border);
|
|
}
|
|
.intervention-copy.copied {
|
|
color: var(--ok);
|
|
background: var(--ok-soft);
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Ligne 2 GAUCHE : heures VERTICALES, centrées par rapport au bloc droit */
|
|
.iv-time-vertical {
|
|
grid-area: time;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center; /* centrage vertical */
|
|
align-self: center; /* centrage dans la cellule grille */
|
|
gap: 1px;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
color: var(--text);
|
|
height: 100%;
|
|
}
|
|
.iv-time-start, .iv-time-end {
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.iv-time-arrow {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
line-height: 1;
|
|
}
|
|
.intervention-v2.is-pompier-line .iv-time-start,
|
|
.intervention-v2.is-pompier-line .iv-time-end {
|
|
color: var(--danger);
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Ligne 2 DROITE : lieu / contact+tél / bas (catégorie + signature) */
|
|
.iv-right {
|
|
grid-area: right;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* Lieu : ville (MAJ gras) + adresse (italique noir) */
|
|
.iv-lieu-block {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
.iv-lieu-ville {
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
letter-spacing: 0.04em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.iv-lieu-adresse {
|
|
font-size: 12.5px;
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
color: var(--text); /* noir, pas gris */
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Contact + tél — wrap intelligent (pas de coupure de mot) */
|
|
.iv-contact-line {
|
|
font-size: 13px;
|
|
word-break: normal;
|
|
overflow-wrap: break-word;
|
|
white-space: normal;
|
|
line-height: 1.35;
|
|
}
|
|
.iv-contact {
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
.iv-sep {
|
|
color: var(--text-faint);
|
|
font-weight: 400;
|
|
margin: 0 2px;
|
|
}
|
|
.iv-phone {
|
|
font-family: var(--mono);
|
|
color: var(--text-muted);
|
|
font-weight: 400;
|
|
font-size: 12px;
|
|
white-space: nowrap; /* numéro pas coupé */
|
|
}
|
|
|
|
/* Bas : catégorie à gauche + signature à droite */
|
|
.iv-bottom-line {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
}
|
|
.iv-category {
|
|
color: var(--text-muted);
|
|
font-weight: 400;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.iv-signature {
|
|
color: var(--text-faint);
|
|
font-size: 11px;
|
|
font-family: var(--mono);
|
|
flex-shrink: 0;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
/* Réservation (créneau bloqué par un coordinateur) */
|
|
.iv-ref-header.is-reservation-title {
|
|
color: var(--c-reservation);
|
|
font-family: var(--font);
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.iv-reservation-par {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
.iv-reservation-sujet {
|
|
font-size: 12.5px;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* ──────────────────────────────────────────────────────────────────────────
|
|
Anciens styles .intervention (v1) — gardés pour ne pas casser le reste
|
|
────────────────────────────────────────────────────────────────────────── */
|
|
.intervention {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 14px 8px 10px;
|
|
border-top: 1px solid var(--border);
|
|
cursor: default;
|
|
transition: background 0.08s;
|
|
position: relative;
|
|
}
|
|
.intervention:first-child { border-top: none; }
|
|
.intervention:hover { background: var(--bg-hover); }
|
|
.intervention-dot {
|
|
flex-shrink: 0;
|
|
width: 4px;
|
|
align-self: stretch;
|
|
margin: 2px 4px 2px 0;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Tooltip
|
|
========================================================================== */
|
|
.tooltip {
|
|
position: fixed;
|
|
z-index: 100;
|
|
max-width: 620px;
|
|
max-height: calc(100vh - 40px);
|
|
overflow-y: auto;
|
|
padding: 12px 14px;
|
|
background: var(--bg-elevated);
|
|
color: var(--text);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 8px;
|
|
box-shadow: var(--shadow-hover);
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transition: opacity 0.1s;
|
|
}
|
|
.tooltip.visible {
|
|
opacity: 1;
|
|
}
|
|
|
|
.tooltip dl {
|
|
margin: 0;
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
column-gap: 10px;
|
|
row-gap: 4px;
|
|
}
|
|
|
|
.tooltip dt {
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tooltip dd {
|
|
margin: 0;
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.tooltip dd.description,
|
|
.tooltip dd.commentaire {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.tooltip dd.commentaire {
|
|
padding: 6px 8px;
|
|
background: var(--bg-muted);
|
|
border-radius: 4px;
|
|
border-left: 2px solid var(--c-closed);
|
|
font-style: italic;
|
|
}
|
|
|
|
.tooltip hr {
|
|
border: none;
|
|
border-top: 1px solid var(--border);
|
|
margin: 8px 0;
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
/* Badge de statut dans le tooltip */
|
|
.status-pill {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.status-pill.closed {
|
|
background: var(--c-closed-soft);
|
|
color: var(--c-closed);
|
|
}
|
|
.status-pill.resolved {
|
|
background: var(--c-resolved-soft);
|
|
color: var(--c-resolved);
|
|
}
|
|
.status-pill.ongoing {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
}
|
|
.status-pill.other {
|
|
background: var(--bg-muted);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Toasts de notification (ouverture d'intervention)
|
|
========================================================================== */
|
|
.toast-stack {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
z-index: 200;
|
|
display: flex;
|
|
flex-direction: column-reverse; /* les nouveaux en bas, les anciens au-dessus */
|
|
gap: 8px;
|
|
pointer-events: none;
|
|
}
|
|
.toast {
|
|
min-width: 200px;
|
|
max-width: 340px;
|
|
padding: 10px 14px;
|
|
background: var(--bg-elevated);
|
|
color: var(--text);
|
|
border: 1px solid var(--border-strong);
|
|
border-left: 3px solid var(--c-livraison);
|
|
border-radius: 6px;
|
|
box-shadow: var(--shadow-hover);
|
|
font-size: 13px;
|
|
opacity: 0;
|
|
transform: translateX(40px);
|
|
transition: opacity 0.18s ease-out, transform 0.18s ease-out;
|
|
pointer-events: auto;
|
|
}
|
|
.toast.visible {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
.toast.leaving {
|
|
opacity: 0;
|
|
transform: translateX(40px);
|
|
}
|
|
.toast-label {
|
|
color: var(--text-muted);
|
|
font-size: 11px;
|
|
margin-right: 6px;
|
|
}
|
|
.toast-ref {
|
|
font-family: var(--mono);
|
|
font-weight: 700;
|
|
letter-spacing: 0.02em;
|
|
}
|