Planificateur « Suggérer » : 4 stratégies (smart / meilleurs d'abord / équilibré / juste ce qu'il faut), compétences+niveaux par tech (édition inline), niveau requis par compétence + par job, carte des tournées (1 couleur/tech, domicile→arrêts, sélecteur de jour), fenêtre de dispatch auj.+demain (dates sélectionnées), règle week-end + placeholder « en attente du quart », clustering + lasso + filtre-date sur la carte, accès rapide « À assigner » (badge). Boîte : liste /conversations allégée (45 Mo → ~1 Mo, 17×) + messages chargés à l'ouverture. Rapports : cache SWR sur revenue-explorer (22×). Session : keep-alive + timeout fetch global + authFetch durci → fin des rechargements manuels. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
273 lines
12 KiB
SCSS
273 lines
12 KiB
SCSS
// Targo Ops — Global styles
|
|
|
|
:root {
|
|
// ── Palette MODERNE (défaut) — vert de marque + near-black + off-white + teinte verte + gris.
|
|
// Inspirée de gigafibre.ca / dashboards modernes. Éditable via Administration → « Thème & couleurs »
|
|
// (composables/useTheme.js PRESETS.default doit rester aligné sur ces valeurs). ──
|
|
// Palette sombre partagée (sidebar + dispatch)
|
|
--ops-sidebar-bg: #0d0d0d;
|
|
--ops-sidebar-hover: rgba(255,255,255,0.06);
|
|
--ops-sidebar-border: rgba(255,255,255,0.06);
|
|
--ops-sidebar-text: rgba(255,255,255,0.55);
|
|
--ops-sidebar-text-active: #ffffff;
|
|
|
|
// ── Rôles sémantiques (badges, boutons, icônes) — miroités par Quasar primary/positive/negative/warning/info ──
|
|
--ops-accent: #16a34a; // MARQUE — actions principales, liens, états actifs
|
|
--ops-success: #16a34a; // SUCCÈS — payé, actif, complété
|
|
--ops-warning: #f59e0b; // ATTENTION — en attente, priorité moyenne, brouillon (ex-amber/orange)
|
|
--ops-danger: #ef4444; // ERREUR — destructif, en retard, priorité haute (ex-red)
|
|
--ops-info: #2563eb; // INFO — liens externes, mentions neutres, en cours (ex-blue/cyan)
|
|
|
|
// Zone de contenu claire
|
|
--ops-bg-hover: #dcf5d3; // survol de ligne / élément sélectionné (teinte verte)
|
|
--ops-bg-light: #f4f5f2; // alias de fond
|
|
--ops-bg: #f4f5f2; // fond de page
|
|
--ops-surface: #ffffff; // cartes, panneaux, modales
|
|
--ops-border: #e5e7e2; // bordures, séparateurs
|
|
--ops-text: #0d0d0d; // texte principal
|
|
--ops-text-muted: #6b7280; // texte secondaire, libellés
|
|
|
|
// Alias legacy
|
|
--ops-primary: #0d0d0d;
|
|
}
|
|
|
|
body {
|
|
background: var(--ops-bg);
|
|
color: var(--ops-text);
|
|
}
|
|
|
|
// ── Sidebar ─────────────────────────────────────────────────────────────────
|
|
.ops-sidebar {
|
|
background: var(--ops-sidebar-bg) !important;
|
|
border-right: 1px solid var(--ops-sidebar-border) !important;
|
|
transition: width 0.2s ease;
|
|
|
|
// .ops-sidebar EST le .q-drawer__content (Quasar y pose la classe) → flex colonne : la liste de nav défile
|
|
// dans SON espace, le pied (.ops-sidebar-bottom) reste ANCRÉ en bas et ne se superpose jamais aux liens
|
|
// (fin du chevauchement Réduire / déconnexion quand le menu est long).
|
|
display: flex; flex-direction: column;
|
|
|
|
// Kill Quasar's default white border
|
|
&.q-drawer--bordered { border-right-color: var(--ops-sidebar-border) !important; }
|
|
|
|
.q-list { padding-top: 0; }
|
|
> .q-list { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
|
|
|
|
.q-item {
|
|
color: var(--ops-sidebar-text);
|
|
border-radius: 8px;
|
|
margin: 2px 8px;
|
|
min-height: 40px;
|
|
transition: all 0.15s ease;
|
|
&:hover { background: var(--ops-sidebar-hover); color: rgba(255,255,255,0.8); }
|
|
&.active-link {
|
|
color: var(--ops-sidebar-text-active);
|
|
background: var(--ops-accent);
|
|
}
|
|
}
|
|
|
|
.q-separator--dark { background: var(--ops-sidebar-border) !important; }
|
|
|
|
// Collapsed state
|
|
&.ops-sidebar-mini {
|
|
.q-item {
|
|
margin: 2px 6px;
|
|
padding: 8px 0;
|
|
justify-content: center;
|
|
.q-item__section--avatar { min-width: unset; padding-right: 0; }
|
|
}
|
|
}
|
|
}
|
|
|
|
// Sidebar bottom section
|
|
.ops-sidebar-bottom {
|
|
flex: 0 0 auto; // ancré en bas via le flex du parent (plus de position:absolute qui se superposait)
|
|
background: var(--ops-sidebar-bg); // fond opaque : les liens qui défilent passent DERRIÈRE, jamais au travers
|
|
padding: 8px 0;
|
|
border-top: 1px solid var(--ops-sidebar-border);
|
|
.q-item {
|
|
color: var(--ops-sidebar-text);
|
|
font-size: 0.78rem;
|
|
&:hover { color: rgba(255,255,255,0.8); }
|
|
}
|
|
}
|
|
|
|
.ops-collapse-btn {
|
|
color: var(--ops-sidebar-text) !important;
|
|
opacity: 0.7;
|
|
&:hover { opacity: 1; }
|
|
}
|
|
|
|
// ── Mobile header ───────────────────────────────────────────────────────────
|
|
.ops-mobile-header {
|
|
background: var(--ops-sidebar-bg) !important;
|
|
border-bottom: 1px solid var(--ops-sidebar-border) !important;
|
|
}
|
|
|
|
// ── Desktop top bar ─────────────────────────────────────────────────────────
|
|
.ops-topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 24px;
|
|
border-bottom: 1px solid var(--ops-border);
|
|
background: var(--ops-surface);
|
|
position: relative;
|
|
}
|
|
|
|
// ── Cards ───────────────────────────────────────────────────────────────────
|
|
.ops-card {
|
|
background: var(--ops-surface);
|
|
border: 1px solid var(--ops-border);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
}
|
|
|
|
// ── Stat cards ──────────────────────────────────────────────────────────────
|
|
.ops-stat {
|
|
text-align: center;
|
|
.ops-stat-value { font-size: 1.8rem; font-weight: 700; line-height: 1.2; }
|
|
.ops-stat-label { font-size: 0.8rem; color: var(--ops-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
|
|
}
|
|
|
|
// ── Data tables ─────────────────────────────────────────────────────────────
|
|
.ops-table {
|
|
.q-table__top { padding: 8px 16px; }
|
|
th { font-weight: 600; color: var(--ops-text-muted); font-size: 0.75rem; text-transform: uppercase; }
|
|
td { font-size: 0.875rem; }
|
|
}
|
|
|
|
// ── Status badges ───────────────────────────────────────────────────────────
|
|
.ops-badge {
|
|
display: inline-flex; align-items: center;
|
|
padding: 2px 10px; border-radius: 20px;
|
|
font-size: 0.75rem; font-weight: 600;
|
|
&.active { background: #d1fae5; color: #065f46; }
|
|
&.inactive { background: #fee2e2; color: #991b1b; }
|
|
&.draft { background: #e0e7ff; color: #3730a3; }
|
|
&.open { background: #fef3c7; color: #92400e; }
|
|
&.closed { background: #f1f5f9; color: #475569; }
|
|
}
|
|
|
|
// ── Search bar ──────────────────────────────────────────────────────────────
|
|
.ops-search {
|
|
.q-field__control {
|
|
border-radius: 10px;
|
|
background: var(--ops-surface);
|
|
border: 1px solid var(--ops-border);
|
|
}
|
|
}
|
|
|
|
.ops-search-dark {
|
|
.q-field__control {
|
|
border-radius: 10px;
|
|
background: rgba(255,255,255,0.06);
|
|
border: 1px solid var(--ops-sidebar-border);
|
|
}
|
|
.q-field__native { color: #fff; }
|
|
}
|
|
|
|
// ── Search results dropdown ────────────────────────────────────────────────
|
|
.ops-search-results {
|
|
background: #fff;
|
|
border: 1px solid var(--ops-border);
|
|
border-top: none;
|
|
border-radius: 0 0 10px 10px;
|
|
box-shadow: 0 8px 24px rgba(0,0,0,0.12);
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
.ops-search-results-desktop {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 9999;
|
|
}
|
|
.ops-search-result {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
&:hover, &.ops-search-highlighted { background: #f1f5f9; }
|
|
&:not(:last-child) { border-bottom: 1px solid #f1f5f9; }
|
|
}
|
|
.ops-search-title { font-size: 0.875rem; font-weight: 600; color: var(--ops-text); line-height: 1.2; }
|
|
.ops-search-sub { font-size: 0.75rem; color: var(--ops-text-muted); }
|
|
.ops-search-type {
|
|
font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
|
|
letter-spacing: 0.05em; color: var(--ops-text-muted); margin-left: auto; white-space: nowrap;
|
|
}
|
|
|
|
// ── ERP links ──────────────────────────────────────────────────────────────
|
|
.erp-link {
|
|
color: var(--ops-accent, #6366f1);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
&:hover { text-decoration: underline; }
|
|
}
|
|
|
|
// ── Clickable table rows ───────────────────────────────────────────────────
|
|
.clickable-table :deep(tbody tr) {
|
|
cursor: pointer;
|
|
&:hover td { background: var(--ops-bg-hover, #eef2ff) !important; }
|
|
}
|
|
|
|
// ── Sticky Convos panel (right column) ─────────────────────────────────────
|
|
.convos-sticky {
|
|
position: sticky;
|
|
top: 16px;
|
|
max-height: calc(100vh - 32px);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
// Sur tablette/téléphone, la colonne droite « collante » est empilée sous le contenu : on la dé-colle
|
|
// et on retire le plafond 100vh (sinon elle mange tout un écran une fois empilée). Voir audit ergonomie.
|
|
@media (max-width: 1023px) {
|
|
.convos-sticky {
|
|
position: static;
|
|
max-height: none;
|
|
overflow: visible;
|
|
}
|
|
}
|
|
|
|
/* ──────────────────────────────────────────────────────────────────────────
|
|
Durcissement RESPONSIVE mobile (≤ 599px = xs) — toute l'app Ops.
|
|
Empêche les dialogues / pop-up à largeur fixe (style inline min-width:NNNpx :
|
|
480/540/680px…) de déborder sur un petit écran. Audit responsive 2026-06-21.
|
|
────────────────────────────────────────────────────────────────────────── */
|
|
@media (max-width: 599px) {
|
|
/* TOUT dialogue (centré OU positionné top/bottom/left/right) remplit l'écran ;
|
|
on neutralise les min-width inline pour qu'aucune carte ne dépasse.
|
|
On exclut --maximized (déjà plein écran, garde sa mise en page bord-à-bord). */
|
|
.q-dialog__inner:not(.q-dialog__inner--maximized) { padding: 10px !important; }
|
|
.q-dialog__inner > * { min-width: 0 !important; max-width: 100% !important; }
|
|
.q-dialog__inner:not(.q-dialog__inner--maximized) > * { width: 100%; }
|
|
/* Menus / listes déroulantes (q-select, création rapide) bornés à l'écran. */
|
|
.q-menu { max-width: calc(100vw - 16px) !important; }
|
|
/* Panneaux flottants custom (position:fixed) sans garde mobile :
|
|
softphone (PhoneModal) + panneau d'affectation (Planification). */
|
|
.phone-modal { width: auto !important; left: 12px !important; right: 12px !important; max-width: calc(100vw - 24px) !important; }
|
|
.assign-panel { max-width: calc(100vw - 20px) !important; }
|
|
}
|
|
|
|
/* ──────────────────────────────────────────────────────────────────────────
|
|
Plancher d'accessibilité (audit UI 2026-06-30). Anneau de focus CLAVIER
|
|
visible partout (:focus-visible → rien au clic souris) + respect de
|
|
« réduire les animations ». Additif, sans régression visuelle.
|
|
────────────────────────────────────────────────────────────────────────── */
|
|
:focus-visible {
|
|
outline: 2px solid var(--ops-accent);
|
|
outline-offset: 2px;
|
|
border-radius: 3px;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|