df
This commit is contained in:
parent
ed66ff983b
commit
310de1a8e6
|
|
@ -1,70 +1,67 @@
|
|||
:root {
|
||||
--primary: #2C3E50;
|
||||
--primary: #1e293b;
|
||||
--accent: #08C5D1;
|
||||
--bg-app: #F8FAFC;
|
||||
--border-color: #E2E8F0;
|
||||
--border-light: #f1f5f9;
|
||||
--text-main: #334155;
|
||||
--bg-light: #ffffff;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--bg-app) !important;
|
||||
font-family: 'Plus Jakarta Sans', sans-serif !important;
|
||||
background-color: #f8fafc !important; /* Fond de page gris très léger */
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
/* On supprime l'aspect "carte flottante" du main pour l'intégrer au fond */
|
||||
/* On supprime le cadre blanc du main pour qu'il se fonde dans le décor */
|
||||
#main {
|
||||
margin-top: 70px !important;
|
||||
padding: 20px 40px !important;
|
||||
background: transparent !important; /* Fond transparent pour éviter la double couche */
|
||||
border: none !important;
|
||||
margin-left: 260px !important; /* Ajuster selon ta sidebar */
|
||||
padding: 30px 40px !important;
|
||||
background: transparent !important;
|
||||
box-shadow: none !important;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
/* --- TABLEAUX ÉPURÉS (ZÉRO SUPERPOSITION) --- */
|
||||
/* --- TABLEAUX : LE SECRET DU WAHOO EST ICI --- */
|
||||
/* On abandonne les bordures de cellules pour des lignes aérées */
|
||||
.table {
|
||||
background: white !important;
|
||||
border-radius: 12px !important;
|
||||
overflow: hidden !important;
|
||||
border: 1px solid var(--border-color) !important;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
|
||||
border: 1px solid #e2e8f0 !important;
|
||||
border-collapse: collapse !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.table thead th {
|
||||
background: #F1F5F9 !important;
|
||||
color: #64748B !important;
|
||||
background: #f8fafc !important;
|
||||
border-bottom: 1px solid #e2e8f0 !important;
|
||||
color: #64748b !important;
|
||||
font-weight: 700 !important;
|
||||
font-size: 0.75rem !important;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.7rem;
|
||||
padding: 15px !important;
|
||||
border-bottom: 1px solid var(--border-color) !important;
|
||||
padding: 15px 20px !important;
|
||||
}
|
||||
|
||||
.table tbody tr {
|
||||
transition: background 0.2s ease !important;
|
||||
border-bottom: 1px solid #F1F5F9 !important;
|
||||
border-bottom: 1px solid #f1f5f9 !important;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.table tbody tr:hover {
|
||||
background: #F8FAFC !important; /* Simple changement de couleur au survol, pas d'ombre */
|
||||
background-color: #f1f9fa !important; /* Un bleu-vert très pâle au survol */
|
||||
}
|
||||
|
||||
.table td {
|
||||
padding: 12px 15px !important;
|
||||
padding: 15px 20px !important;
|
||||
font-size: 0.9rem !important;
|
||||
border: none !important;
|
||||
font-size: 0.9rem;
|
||||
vertical-align: middle !important;
|
||||
}
|
||||
|
||||
/* --- BARRE DE CONTEXTE À DROITE (FIXE ET PLATE) --- */
|
||||
/* --- BARRE DE CONTEXTE DROITE (FLAT & CLEAN) --- */
|
||||
.sidenav {
|
||||
background: white !important;
|
||||
border-left: 1px solid var(--border-color) !important;
|
||||
box-shadow: none !important; /* On retire l'ombre portée */
|
||||
padding-top: 85px !important;
|
||||
}
|
||||
|
||||
.context-widget {
|
||||
background: #F8FAFC !important;
|
||||
border: 1px solid var(--border-color) !important;
|
||||
border-radius: 8px !important; /* Moins d'arrondis pour un look plus "pro" */
|
||||
margin-bottom: 10px !important;
|
||||
border-left: 1px solid #e2e8f0 !important;
|
||||
box-shadow: none !important;
|
||||
width: 300px !important;
|
||||
padding: 90px 20px 20px 20px !important;
|
||||
}
|
||||
|
|
@ -1,167 +1,40 @@
|
|||
<?php
|
||||
/**
|
||||
* BARRE DE CONTEXTE - INTER SANTÉ 2026
|
||||
* Widgetisation des données de session (Garant, Prospect, Assuré, Police)
|
||||
*/
|
||||
?>
|
||||
|
||||
<input type="text" class="sr-only d-none" id="numeroClient_C" name="numeroClient_C" value="<?= $this->nettoyer($_SESSION['numeroClient_C']) ?>">
|
||||
<input type="text" class="sr-only d-none" id="codeGcAssureur_C" NAME="codeGcAssureur_C" value="<?= $this->nettoyer($_SESSION['codeGcAssureur_C']) ?>">
|
||||
|
||||
<div id="barre_laterale_d" class="context-sidebar shadow-lg">
|
||||
|
||||
<div class="context-header d-flex align-items-center justify-content-between mb-4">
|
||||
<h5 class="fw-800 text-primary mb-0"><i class="bi bi-info-circle-fill me-2"></i><?= _("Dossier") ?></h5>
|
||||
<button class="btn btn-soft-danger rounded-circle p-2" id="hideSideNav" title="<?= _("Cacher contexte") ?>">
|
||||
<i class="bi bi-x-lg"></i>
|
||||
</button>
|
||||
<div id="barre_laterale_d" class="sidenav">
|
||||
<div class="d-flex justify-content-between align-items-center mb-4 pb-2 border-bottom">
|
||||
<span class="small fw-bold text-muted text-uppercase tracking-wider"><?= _("Fiche Contexte") ?></span>
|
||||
<i class="bi bi-x-lg cursor-pointer text-muted" id="hideSideNav"></i>
|
||||
</div>
|
||||
|
||||
<div class="context-body">
|
||||
|
||||
<div class="context-widget mb-4 border-start border-4 border-primary">
|
||||
<div class="d-flex align-items-center mb-2">
|
||||
<div class="widget-icon bg-soft-primary text-primary me-2">
|
||||
<i class="bi bi-bank"></i>
|
||||
</div>
|
||||
<label class="widget-label"><?= _("GARANT") ?></label>
|
||||
</div>
|
||||
<div class="widget-content">
|
||||
<div class="fw-bold text-dark fs-6"><?= $this->nettoyer($_SESSION['nomGcAssureur_C']) ?></div>
|
||||
<div class="text-muted small"><?= $this->nettoyer($_SESSION['codeGcAssureur_C']) ?></div>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label class="d-block small text-primary fw-bold mb-2"><?= _("GARANT") ?></label>
|
||||
<div class="p-3 bg-light rounded-3 border">
|
||||
<div class="fw-bold" style="font-size: 0.85rem;"><?= $this->nettoyer($_SESSION['nomGcAssureur_C']) ?></div>
|
||||
<div class="text-muted" style="font-size: 0.75rem;"><?= $this->nettoyer($_SESSION['codeGcAssureur_C']) ?></div>
|
||||
</div>
|
||||
|
||||
<?php if(!empty($_SESSION['numeroClient_C'])): ?>
|
||||
<div class="context-widget mb-4 hover-shadow" onclick="javascript:afficher_client_id();" style="cursor: pointer;">
|
||||
<div class="d-flex align-items-center mb-3">
|
||||
<div class="widget-icon bg-soft-info text-info me-2">
|
||||
<i class="bi bi-person-badge"></i>
|
||||
</div>
|
||||
<label class="widget-label"><?= _("ASSURÉ PRINCIPAL") ?></label>
|
||||
</div>
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="position-relative me-3">
|
||||
<img src="<?= $_SESSION['photoAssureCrypte'] ?>" class="rounded-circle border border-2 border-white shadow-sm" width="50" height="50">
|
||||
<span class="status-indicator-online"></span>
|
||||
</div>
|
||||
<div>
|
||||
<div class="fw-800 text-dark small text-uppercase"><?= substr($this->nettoyer($_SESSION['nomClient_C']), 0, 22) ?></div>
|
||||
<span class="badge bg-soft-info text-info rounded-pill mt-1" style="font-size: 0.7rem;">
|
||||
<i class="bi bi-hash"></i> <?= $_SESSION['numeroClient_C'] ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(!empty($_SESSION['numeroPolice_C'])): ?>
|
||||
<div class="context-widget mb-4" onclick="javascript:afficher_police_id_init();" style="cursor: pointer;">
|
||||
<div class="d-flex align-items-center mb-2">
|
||||
<div class="widget-icon bg-soft-secondary text-secondary me-2">
|
||||
<i class="bi bi-file-earmark-medical"></i>
|
||||
</div>
|
||||
<label class="widget-label"><?= _("POLICE / CONTRAT") ?></label>
|
||||
</div>
|
||||
<div class="ps-1">
|
||||
<div class="fw-bold text-secondary"><?= $this->nettoyer($_SESSION['numeroPolice_C']) ?></div>
|
||||
<div class="progress mt-2" style="height: 6px;">
|
||||
<div class="progress-bar bg-info" role="progressbar" style="width: 70%" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100"></div>
|
||||
</div>
|
||||
<div class="text-muted small mt-1" style="font-size: 0.6rem;"><?= _("Consommation Plafond : 70%") ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(!empty($_SESSION['numeroClient_d_C'])): ?>
|
||||
<div class="context-widget border-top-warning bg-soft-warning p-3">
|
||||
<h6 class="text-warning fw-bold mb-3 small uppercase text-center"><?= _("GESTION DES COTATIONS") ?></h6>
|
||||
|
||||
<button class="btn btn-warning w-100 text-white rounded-4 mb-2 shadow-sm" onclick="javascript:afficher_client_d_id();">
|
||||
<i class="bi bi-person-plus-fill me-2"></i>
|
||||
<?= substr($this->nettoyer($_SESSION['nomClient_d_C']), 0, 20) ?>
|
||||
</button>
|
||||
|
||||
<button class="btn btn-outline-warning w-100 rounded-4" onclick="javascript:afficher_police_d_id_init();">
|
||||
<i class="bi bi-file-text me-2"></i>
|
||||
<?= $this->nettoyer($_SESSION['numeroPolice_d_C']) ?>
|
||||
</button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="context-footer mt-auto pt-4 text-center">
|
||||
<p class="text-muted" style="font-size: 0.65rem;">
|
||||
© <?= date('Y') ?> <strong>INTER SANTÉ</strong><br>
|
||||
Version 2.0.4 - Premium Edition
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
<?php if(!empty($_SESSION['numeroClient_C'])): ?>
|
||||
<div class="mb-4">
|
||||
<label class="d-block small text-primary fw-bold mb-2"><?= _("ASSURÉ") ?></label>
|
||||
<div class="d-flex align-items-center p-3 border rounded-3 bg-white hover-light" onclick="afficher_client_id();" style="cursor:pointer">
|
||||
<div class="avatar-circle me-3">
|
||||
<img src="<?= $_SESSION['photoAssureCrypte'] ?>" class="rounded-circle" width="45" height="45" style="object-fit: cover; border: 1px solid #eee;">
|
||||
</div>
|
||||
<div style="line-height: 1.2;">
|
||||
<div class="fw-bold text-dark" style="font-size: 0.85rem;"><?= $this->nettoyer($_SESSION['nomClient_C']) ?></div>
|
||||
<div class="text-info fw-bold mt-1" style="font-size: 0.75rem;"><?= $_SESSION['numeroClient_C'] ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<style>
|
||||
/* Styles spécifiques pour le Wahoo (à intégrer ou laisser ici) */
|
||||
.context-sidebar {
|
||||
position: fixed;
|
||||
right: -320px;
|
||||
top: 0;
|
||||
width: 320px;
|
||||
height: 100vh;
|
||||
background: #fff;
|
||||
z-index: 1050;
|
||||
transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||
padding: 25px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.context-sidebar.active { right: 0; }
|
||||
|
||||
.context-widget {
|
||||
background: #fdfdfe;
|
||||
border: 1px solid #f1f4f9;
|
||||
border-radius: 20px;
|
||||
padding: 18px;
|
||||
transition: 0.3s ease;
|
||||
}
|
||||
|
||||
.context-widget.hover-shadow:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 12px 25px rgba(0,0,0,0.06);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.widget-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.widget-label {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 800;
|
||||
color: #94a3b8;
|
||||
letter-spacing: 0.8px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.status-indicator-online {
|
||||
position: absolute;
|
||||
bottom: 2px;
|
||||
right: 2px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background: #10b981;
|
||||
border: 2px solid #fff;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.bg-soft-primary { background-color: rgba(44, 62, 80, 0.08); }
|
||||
.bg-soft-info { background-color: rgba(8, 197, 209, 0.1); }
|
||||
.bg-soft-warning { background-color: rgba(255, 152, 0, 0.1); }
|
||||
.text-info { color: #08C5D1 !important; }
|
||||
</style>
|
||||
<?php if(!empty($_SESSION['numeroPolice_C'])): ?>
|
||||
<div class="mb-4">
|
||||
<label class="d-block small text-primary fw-bold mb-2"><?= _("POLICE") ?></label>
|
||||
<div class="p-3 border rounded-3 bg-white shadow-xs">
|
||||
<div class="fw-bold text-dark" style="font-size: 0.85rem;">
|
||||
<i class="bi bi-file-earmark-text me-2"></i><?= $this->nettoyer($_SESSION['numeroPolice_C']) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user