/* Pointage Flow 8.0 white visual layer.
   This file intentionally overrides the 7.4.x dark/neon look without changing business logic. */
:root{
  --pf8-bg:#f5f7fb;
  --pf8-card:#ffffff;
  --pf8-text:#101827;
  --pf8-muted:#64748b;
  --pf8-line:#e5e7eb;
  --pf8-blue:#2563eb;
  --pf8-blue-dark:#1d4ed8;
  --pf8-blue-soft:#eff6ff;
  --pf8-green:#16a34a;
  --pf8-orange:#f97316;
  --pf8-red:#dc2626;
  --pf8-shadow:0 14px 34px rgba(15,23,42,.08);
  --pf8-radius:18px;
}

html{background:var(--pf8-bg) !important;}
body,
body.remote-bg,
body.pf-2026{
  background:
    radial-gradient(700px 460px at 8% -6%, rgba(37,99,235,.12), transparent 62%),
    radial-gradient(620px 420px at 108% 4%, rgba(14,165,233,.10), transparent 60%),
    linear-gradient(180deg,#fbfdff 0%,var(--pf8-bg) 56%,#eef3fb 100%) !important;
  color:var(--pf8-text) !important;
}

main,
.remote,
.admin-card,
.remote-card,
.pf-glass-card,
.why-modal,
.pf-app-shell,
.pf-login-panel,
.pf-metrics-card,
.tile.tile-blue,
.sync-card,
#login-error .admin-card{
  background:rgba(255,255,255,.92) !important;
  color:var(--pf8-text) !important;
  border:1px solid var(--pf8-line) !important;
  box-shadow:var(--pf8-shadow) !important;
  backdrop-filter:blur(10px);
}

.remote-header,
.pf-header,
.status-pill,
.client-picker,
.notif-pop,
.settings-panel,
.why-overlay .why-modal{
  background:rgba(255,255,255,.94) !important;
  color:var(--pf8-text) !important;
  border-color:var(--pf8-line) !important;
}

h1,h2,h3,
.pf-title,
.remote-header h1,
.remote-card h2,
.pf-section-title,
.why-title,
.btn-label,
label,
strong{
  color:var(--pf8-text) !important;
}

.muted,
.pf-subtitle,
.remote-header .muted,
footer,
footer a,
.why-text,
.status,
#status,
.pf-status-line,
.pf-metric-label,
.pf-metric-icon,
.sync-card span{
  color:var(--pf8-muted) !important;
}

footer a{font-weight:900;text-decoration:none;}

input,
select,
textarea,
.field{
  background:#fff !important;
  color:var(--pf8-text) !important;
  border:1px solid var(--pf8-line) !important;
  border-radius:13px !important;
  box-shadow:none !important;
}

button,
.btn,
.menu-btn,
.btn-primary,
.btn-pink,
.pf-primary-btn,
.pf-secondary-btn,
.btn-ghost{
  border-radius:999px !important;
}

.menu-btn:not(.pf8-menu-card):not(.sub),
.btn-pink:not(.pf8-menu-card),
.btn-primary,
.btn-admin,
.btn-emp,
.pf-primary-btn,
.tile-blue{
  background:linear-gradient(135deg,var(--pf8-blue),#0ea5e9) !important;
  color:#fff !important;
  border:1px solid transparent !important;
  box-shadow:0 12px 26px rgba(37,99,235,.20) !important;
}

.menu-btn.sub,
.btn-ghost,
.pf-secondary-btn,
.why-close,
.btn:not(.btn-primary):not(.btn-pink):not(.btn-admin):not(.btn-emp){
  background:#fff !important;
  color:var(--pf8-blue) !important;
  border:1px solid #bfdbfe !important;
  box-shadow:0 8px 20px rgba(15,23,42,.05) !important;
}

.menu-btn.red,
.btn-red,
.why-close,
#do-rollback,
#clear-webhook,
#clear-webhook-conges,
#clear-conges-stamp{
  background:#fff5f5 !important;
  color:var(--pf8-red) !important;
  border-color:#fecaca !important;
}

.menu-btn.has-panel.open{
  background:#fff7ed !important;
  color:#c2410c !important;
  border-color:#fed7aa !important;
}

.tile-green{
  background:#ecfdf5 !important;
  color:#047857 !important;
  border:1px solid #bbf7d0 !important;
}
.tile-red{
  background:#fef2f2 !important;
  color:#b91c1c !important;
  border:1px solid #fecaca !important;
}
.tile-green span,
.tile-red span,
.tile-gray span{
  color:inherit !important;
}

.pf-ring-button{
  background:#fff !important;
  color:var(--pf8-text) !important;
  border:10px solid #dbeafe !important;
  box-shadow:0 18px 42px rgba(37,99,235,.16) !important;
}
.pf-ring-button.is-working{border-color:#fed7aa !important;}
.pf-ring-button.is-out{border-color:#bbf7d0 !important;}
.pf-ring-state,
.pf-ring-action,
.pf-ring-icon,
.pf-ring-meta{
  color:var(--pf8-text) !important;
}

.pf-metric,
.tile,
.status-pill{
  background:#fff !important;
  border:1px solid var(--pf8-line) !important;
  color:var(--pf8-text) !important;
  box-shadow:0 8px 20px rgba(15,23,42,.05) !important;
}
.pf-metric-value,
.status-pill .label{
  color:var(--pf8-text) !important;
}

.pf-bottom-nav,
.bottom-nav{
  background:rgba(255,255,255,.96) !important;
  border:1px solid var(--pf8-line) !important;
  box-shadow:0 14px 34px rgba(15,23,42,.14) !important;
}
.pf-nav-item,
.bottom-nav a{
  color:var(--pf8-muted) !important;
}
.pf-nav-item.active,
.bottom-nav a.active{
  background:var(--pf8-blue-soft) !important;
  color:var(--pf8-blue) !important;
}

table,
thead,
tbody,
tr,
td,
th{
  color:var(--pf8-text) !important;
}
th{
  color:var(--pf8-muted) !important;
}

a{color:var(--pf8-blue);}
img.logo,
.admin-logo,
.header img.ill{
  filter:drop-shadow(0 12px 22px rgba(37,99,235,.12)) !important;
}

@media (max-width:560px){
  body,
  body.remote-bg,
  body.pf-2026{
    padding-left:12px !important;
    padding-right:12px !important;
  }
}

/* === PF 8.0 final polish layer === */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}

body.pf8-page,
body.pf8-root-entry,
body.pf8-planning-admin,
body.pf8-planning-employee,
body.pf8-clients-employee,
body.pf8-bureau-admin,
body.pf8-bureau-employee,
body.pf8-dashboard-admin,
body.pf8-pointage-employee{
  min-height:100vh !important;
  background:
    radial-gradient(720px 460px at 10% -10%, rgba(37,99,235,.12), transparent 64%),
    radial-gradient(620px 420px at 110% 0%, rgba(14,165,233,.09), transparent 62%),
    linear-gradient(180deg,#fbfdff 0%,#f5f7fb 58%,#edf3fb 100%) !important;
  color:var(--pf8-text) !important;
}

body.pf8-page{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:center !important;
  padding:18px 14px 32px !important;
  text-align:left !important;
}

body.pf8-page main,
body.pf8-page .card,
body.pf8-page .dash-card,
body.pf8-page .admin-card{
  width:min(100%, 980px) !important;
  max-width:980px !important;
  margin:0 auto !important;
  padding:22px !important;
  border-radius:26px !important;
  background:rgba(255,255,255,.94) !important;
  border:1px solid var(--pf8-line) !important;
  box-shadow:var(--pf8-shadow) !important;
  color:var(--pf8-text) !important;
}

body.pf8-users main,
body.pf8-leave-admin main,
body.pf8-leave-employee main,
body.pf8-profile-employee main,
body.pf8-rapports-employee main,
body.pf8-rapports-tracking main{
  max-width:520px !important;
}

body.pf8-clients-admin main,
body.pf8-rapports-clients main,
body.pf8-adjustments main,
body.pf8-pointage-control main,
body.pf8-conges-stats main{
  max-width:1120px !important;
}

body.pf8-page .logo,
body.pf8-page img.logo{
  width:clamp(96px, 26vw, 154px) !important;
  margin:0 auto 12px !important;
}

body.pf8-page h1,
body.pf8-page h2,
body.pf8-page h3{
  color:var(--pf8-text) !important;
  letter-spacing:-.02em;
}

body.pf8-page h1{
  font-size:clamp(1.35rem, 1rem + 1.4vw, 2rem) !important;
  line-height:1.08 !important;
}

body.pf8-page .subtitle,
body.pf8-page .panel-copy,
body.pf8-page .hint,
body.pf8-page .small,
body.pf8-page footer{
  color:var(--pf8-muted) !important;
}

body.pf8-page section,
body.pf8-page .panel,
body.pf8-page .accordion,
body.pf8-page .group,
body.pf8-page .req-card,
body.pf8-page .item,
body.pf8-page .month,
body.pf8-page .summary-box,
body.pf8-page .tracking-panel,
body.pf8-page .collab-card,
body.pf8-page .attachment-panel,
body.pf8-page .detail-card,
body.pf8-page .bigcard{
  background:#fff !important;
  border:1px solid var(--pf8-line) !important;
  border-radius:18px !important;
  box-shadow:0 8px 22px rgba(15,23,42,.05) !important;
  color:var(--pf8-text) !important;
}

body.pf8-page .topbar,
body.pf8-page .actions,
body.pf8-page .tabs,
body.pf8-page .row,
body.pf8-page .filters,
body.pf8-page .inline{
  max-width:100%;
}

body.pf8-page input,
body.pf8-page select,
body.pf8-page textarea{
  width:100%;
  min-height:46px;
  padding:11px 13px !important;
  border:1px solid var(--pf8-line) !important;
  border-radius:13px !important;
  background:#fff !important;
  color:var(--pf8-text) !important;
  text-align:left !important;
  box-shadow:none !important;
}

body.pf8-page input::placeholder,
body.pf8-page textarea::placeholder{
  color:#94a3b8 !important;
}

body.pf8-page input:focus,
body.pf8-page select:focus,
body.pf8-page textarea:focus,
body.pf8-page button:focus-visible,
body.pf8-page a:focus-visible{
  outline:3px solid rgba(37,99,235,.24) !important;
  outline-offset:2px !important;
}

body.pf8-page button,
body.pf8-page .btn,
body.pf8-page .btn-primary,
body.pf8-page .btn-main,
body.pf8-page .btn-bureau,
body.pf8-page .btn-pink,
body.pf8-page .tab.active{
  min-height:44px;
  border-radius:999px !important;
  border:1px solid transparent !important;
  background:linear-gradient(135deg,var(--pf8-blue),#0ea5e9) !important;
  color:#fff !important;
  box-shadow:0 10px 24px rgba(37,99,235,.18) !important;
}

body.pf8-page .btn-outline,
body.pf8-page .btn-ghost,
body.pf8-page .secondary,
body.pf8-page .tab:not(.active),
body.pf8-page button.secondary{
  background:#fff !important;
  color:var(--pf8-blue) !important;
  border:1px solid #bfdbfe !important;
  box-shadow:0 8px 20px rgba(15,23,42,.05) !important;
}

body.pf8-page .btn-retour,
body.pf8-page .btn-back,
body.pf8-page .btn-red,
body.pf8-page .btn-del,
body.pf8-page .btn-refuse,
body.pf8-page .menu-btn.red{
  background:#fff5f5 !important;
  color:var(--pf8-red) !important;
  border:1px solid #fecaca !important;
}

body.pf8-page .btn-accept{
  background:#ecfdf5 !important;
  color:#047857 !important;
  border:1px solid #bbf7d0 !important;
}

body.pf8-page table{
  width:100% !important;
  border-collapse:collapse !important;
  table-layout:auto;
  background:#fff !important;
  color:var(--pf8-text) !important;
}

body.pf8-page th,
body.pf8-page td{
  color:var(--pf8-text) !important;
  border-color:var(--pf8-line) !important;
  padding:11px 10px !important;
  vertical-align:top;
  overflow-wrap:anywhere;
}

body.pf8-page th{
  color:var(--pf8-muted) !important;
  font-size:.76rem !important;
  text-transform:uppercase;
  letter-spacing:.03em;
  font-weight:900 !important;
}

body.pf8-page .table-wrap,
body.pf8-page .table-wrapper,
body.pf8-page .tracking-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto !important;
  border:1px solid var(--pf8-line) !important;
  border-radius:16px !important;
  background:#fff !important;
}

body.pf8-page .badge,
body.pf8-page .pill,
body.pf8-page .status-badge,
body.pf8-page .req-status,
body.pf8-page .pending-badge,
body.pf8-page .client-pill,
body.pf8-page .detail-chip{
  border-radius:999px !important;
  border:1px solid var(--pf8-line) !important;
  background:#f8fafc !important;
  color:#334155 !important;
  box-shadow:none !important;
}

body.pf8-page .status-on,
body.pf8-page .accepted,
body.pf8-page .badge.online,
body.pf8-page .badge.in{
  background:#ecfdf5 !important;
  color:#047857 !important;
  border-color:#bbf7d0 !important;
}

body.pf8-page .status-off,
body.pf8-page .refused,
body.pf8-page .badge.offline,
body.pf8-page .badge.out{
  background:#fef2f2 !important;
  color:#b91c1c !important;
  border-color:#fecaca !important;
}

body.pf8-page .pending,
body.pf8-page .badge.vacances{
  background:#fff7ed !important;
  color:#c2410c !important;
  border-color:#fed7aa !important;
}

body.pf8-page .badge.maladie{
  background:#eef2ff !important;
  color:#3730a3 !important;
  border-color:#c7d2fe !important;
}

body.pf8-root-entry main{
  background:rgba(255,255,255,.94) !important;
  border:1px solid var(--pf8-line) !important;
  color:var(--pf8-text) !important;
  box-shadow:var(--pf8-shadow) !important;
}

body.pf8-root-entry h1,
body.pf8-root-entry .desc{
  color:var(--pf8-text) !important;
}

body.pf8-root-entry .btn-admin,
body.pf8-root-entry .btn-emp{
  background:linear-gradient(135deg,var(--pf8-blue),#0ea5e9) !important;
  color:#fff !important;
  box-shadow:0 14px 28px rgba(37,99,235,.18) !important;
}

body.pf8-bureau-admin #bureau-ui,
body.pf8-bureau-employee main{
  width:min(100%, 430px) !important;
  padding:18px !important;
  border-radius:26px !important;
}

body.pf8-bureau-admin .menu-btn,
body.pf8-bureau-employee .btn{
  justify-content:flex-start !important;
  text-align:left !important;
  min-height:52px;
  padding:13px 18px !important;
  margin:8px 0 !important;
}

body.pf8-pointage-employee .pf-app-shell,
body.pf8-dashboard-admin .pf-admin-shell,
body.pf8-clients-employee .client-shell{
  width:min(100%, 430px) !important;
  max-width:430px !important;
}

body.pf8-pointage-employee .pf-header,
body.pf8-dashboard-admin .pf-admin-head,
body.pf8-clients-employee .client-head{
  background:#fff !important;
  border:1px solid var(--pf8-line) !important;
  border-radius:24px !important;
  padding:14px !important;
  box-shadow:0 8px 22px rgba(15,23,42,.05) !important;
}

body.pf8-pointage-employee .pf-ring-button{
  width:min(292px, 74vw) !important;
  background:#fff !important;
  border:10px solid #dbeafe !important;
  animation:none !important;
}

body.pf8-pointage-employee .pf-ring-button::before{
  opacity:.18 !important;
  filter:none !important;
}

body.pf8-pointage-employee .pf-metric-icon{
  box-shadow:none !important;
  background:var(--pf8-blue-soft);
}

body.pf8-dashboard-admin .pf-admin-kpi{
  background:#fff !important;
  border:1px solid var(--pf8-line) !important;
  box-shadow:0 8px 20px rgba(15,23,42,.05) !important;
}

body.pf8-clients-employee .client-card,
body.pf8-clients-employee .info-row{
  background:#fff !important;
  border:1px solid var(--pf8-line) !important;
  box-shadow:0 8px 20px rgba(15,23,42,.05) !important;
}

body.pf8-clients-employee .client-title,
body.pf8-clients-employee .info-copy p{
  color:var(--pf8-text) !important;
}

body.pf8-clients-employee .client-title-text span,
body.pf8-clients-employee .info-copy span{
  color:var(--pf8-muted) !important;
}

body.pf8-clients-employee .client-mark,
body.pf8-clients-employee .info-icon{
  background:var(--pf8-blue) !important;
  color:#fff !important;
  box-shadow:none !important;
}

body.pf8-leave-admin .req-card,
body.pf8-leave-employee .req-card{
  display:grid;
  gap:10px;
  overflow:hidden;
}

body.pf8-leave-admin .req-card::after,
body.pf8-leave-employee .req-card::after{
  box-shadow:none !important;
}

@media (max-width:760px){
  body.pf8-page{
    padding:12px 10px 24px !important;
  }
  body.pf8-page main,
  body.pf8-page .card,
  body.pf8-page .dash-card,
  body.pf8-page .admin-card{
    padding:16px 13px !important;
    border-radius:22px !important;
  }
  body.pf8-page .topbar,
  body.pf8-page .actions,
  body.pf8-page .tabs,
  body.pf8-page .row,
  body.pf8-page .filters,
  body.pf8-page .inline{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:9px !important;
  }
  body.pf8-page .actions .btn,
  body.pf8-page .tab,
  body.pf8-page button{
    width:100% !important;
    min-width:0 !important;
  }
  body.pf8-page table{
    font-size:.82rem !important;
  }
  body.pf8-page th,
  body.pf8-page td{
    padding:9px 8px !important;
  }
}

@media (max-width:420px){
  body.pf8-page{
    padding-left:8px !important;
    padding-right:8px !important;
  }
  body.pf8-page main,
  body.pf8-page .card,
  body.pf8-page .dash-card,
  body.pf8-page .admin-card{
    padding:14px 10px !important;
  }
  body.pf8-pointage-employee .pf-app-shell,
  body.pf8-dashboard-admin .pf-admin-shell,
  body.pf8-clients-employee .client-shell{
    padding-left:0 !important;
    padding-right:0 !important;
  }
  .pf-bottom-nav,
  .bottom-nav{
    width:calc(100% - 16px) !important;
  }
}

/* Higher-specificity override for legacy 7.4 rules that used !important. */
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026),
body.pf8-rapports-tracking:not(.pf-admin-dashboard):not(.pf-2026),
body.pf8-dashboard-admin.pf-2026,
body.pf8-pointage-employee.pf-2026,
body.pf8-bureau-admin.pf-2026,
body.pf8-bureau-employee.pf-2026,
body.pf8-clients-employee.pf-2026{
  background:
    radial-gradient(720px 460px at 10% -10%, rgba(37,99,235,.12), transparent 64%),
    radial-gradient(620px 420px at 110% 0%, rgba(14,165,233,.09), transparent 62%),
    linear-gradient(180deg,#fbfdff 0%,#f5f7fb 58%,#edf3fb 100%) !important;
  color:var(--pf8-text) !important;
}

body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) main,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .card,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .dash-card,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .admin-card,
body.pf8-dashboard-admin.pf-2026 .pf-admin-shell,
body.pf8-pointage-employee.pf-2026 .pf-app-shell,
body.pf8-bureau-admin.pf-2026 #bureau-ui,
body.pf8-bureau-employee.pf-2026 main,
body.pf8-clients-employee.pf-2026 .client-shell{
  background:#fff !important;
  color:var(--pf8-text) !important;
  border:1px solid var(--pf8-line) !important;
  box-shadow:var(--pf8-shadow) !important;
}

body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) section,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .panel,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .form-block,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .accordion,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .group,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .req-card,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .item,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .month,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .summary-box,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .section-divider,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .tracking-panel,
body.pf8-dashboard-admin.pf-2026 section,
body.pf8-dashboard-admin.pf-2026 .pf-admin-panel,
body.pf8-pointage-employee.pf-2026 .pf-glass-card,
body.pf8-pointage-employee.pf-2026 .remote-card,
body.pf8-pointage-employee.pf-2026 .tile,
body.pf8-bureau-admin.pf-2026 .settings-panel,
body.pf8-clients-employee.pf-2026 .client-card,
body.pf8-clients-employee.pf-2026 .info-row{
  background:#fff !important;
  color:var(--pf8-text) !important;
  border:1px solid var(--pf8-line) !important;
  box-shadow:0 8px 22px rgba(15,23,42,.05) !important;
}

body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) input,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) select,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) textarea,
body.pf8-dashboard-admin.pf-2026 input,
body.pf8-dashboard-admin.pf-2026 select,
body.pf8-dashboard-admin.pf-2026 textarea,
body.pf8-pointage-employee.pf-2026 input,
body.pf8-pointage-employee.pf-2026 select,
body.pf8-pointage-employee.pf-2026 textarea,
body.pf8-bureau-admin.pf-2026 input,
body.pf8-bureau-admin.pf-2026 select,
body.pf8-bureau-admin.pf-2026 textarea,
body.pf8-bureau-employee.pf-2026 input,
body.pf8-bureau-employee.pf-2026 select,
body.pf8-bureau-employee.pf-2026 textarea,
body.pf8-clients-employee.pf-2026 input,
body.pf8-clients-employee.pf-2026 select,
body.pf8-clients-employee.pf-2026 textarea{
  background:#fff !important;
  color:var(--pf8-text) !important;
  border:1px solid var(--pf8-line) !important;
  box-shadow:none !important;
}

body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) label,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) h1,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) h2,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) h3,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) strong,
body.pf8-dashboard-admin.pf-2026 h1,
body.pf8-dashboard-admin.pf-2026 h2,
body.pf8-dashboard-admin.pf-2026 h3,
body.pf8-dashboard-admin.pf-2026 strong,
body.pf8-pointage-employee.pf-2026 h1,
body.pf8-pointage-employee.pf-2026 h2,
body.pf8-pointage-employee.pf-2026 h3,
body.pf8-pointage-employee.pf-2026 strong,
body.pf8-clients-employee.pf-2026 h1,
body.pf8-clients-employee.pf-2026 h2,
body.pf8-clients-employee.pf-2026 h3,
body.pf8-clients-employee.pf-2026 strong{
  color:var(--pf8-text) !important;
}

body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .subtitle,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .muted,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .panel-copy,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .hint,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) footer,
body.pf8-dashboard-admin.pf-2026 .subtitle,
body.pf8-dashboard-admin.pf-2026 .muted,
body.pf8-pointage-employee.pf-2026 .pf-subtitle,
body.pf8-pointage-employee.pf-2026 .muted,
body.pf8-clients-employee.pf-2026 .client-title-text span,
body.pf8-clients-employee.pf-2026 .info-copy span{
  color:var(--pf8-muted) !important;
}

body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .btn-primary,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .btn-main,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .btn-bureau,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .btn-pink,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .tab.active,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) button:not(.secondary):not(.btn-retour):not(.btn-back):not(.btn-red):not(.btn-logout):not(.icon-btn):not(.pf-nav-item):not(.btn-del):not(.btn-refuse):not(.btn-accept):not(.pf8-pending-toggle):not(.pf8-leave-tab):not(.pf8-card-action):not(.pf8-back-button),
body.pf8-dashboard-admin.pf-2026 .btn-bureau,
body.pf8-pointage-employee.pf-2026 .pf-primary-btn{
  background:linear-gradient(135deg,var(--pf8-blue),#0ea5e9) !important;
  color:#fff !important;
  border:1px solid transparent !important;
  box-shadow:0 10px 24px rgba(37,99,235,.18) !important;
}

body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .btn-outline,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .btn-ghost,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .secondary,
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) .tab:not(.active),
body.pf8-page:not(.pf-admin-dashboard):not(.pf-2026) button.secondary,
body.pf8-dashboard-admin.pf-2026 .pf-secondary-btn,
body.pf8-pointage-employee.pf-2026 .pf-secondary-btn{
  background:#fff !important;
  color:var(--pf8-blue) !important;
  border:1px solid #bfdbfe !important;
  box-shadow:0 8px 20px rgba(15,23,42,.05) !important;
}

body.pf8-rapports-tracking .agg-actions button,
body.pf8-clients-admin .tabs .tab{
  background:#fff !important;
  color:var(--pf8-blue) !important;
  border:1px solid #bfdbfe !important;
}

body.pf8-clients-admin .tabs .tab.active{
  background:linear-gradient(135deg,var(--pf8-blue),#0ea5e9) !important;
  color:#fff !important;
}

body.pf8-clients-admin .switch{
  background:#f8fafc !important;
  color:var(--pf8-text) !important;
  border:1px solid var(--pf8-line) !important;
}

body.pf8-clients-admin .switch input,
body.pf8-page input[type="checkbox"]{
  width:22px !important;
  height:22px !important;
  min-height:22px !important;
  accent-color:var(--pf8-blue);
}

/* Final anti-dark reset for pre-update pages. Keep this block last. */
body[class*="pf8-"]{
  color-scheme:light !important;
}

body[class*="pf8-"] *,
body[class*="pf8-"] *::before,
body[class*="pf8-"] *::after{
  text-shadow:none !important;
}

body[class*="pf8-"] .card,
body[class*="pf8-"] .dash-card,
body[class*="pf8-"] .admin-card,
body[class*="pf8-"] .remote,
body[class*="pf8-"] .remote-card,
body[class*="pf8-"] .remote-header,
body[class*="pf8-"] .panel,
body[class*="pf8-"] .section,
body[class*="pf8-"] .tracking-panel,
body[class*="pf8-"] .tracking-table-wrap,
body[class*="pf8-"] .group,
body[class*="pf8-"] .group-list,
body[class*="pf8-"] .req-card,
body[class*="pf8-"] .accordion,
body[class*="pf8-"] .accordion-body,
body[class*="pf8-"] .switch,
body[class*="pf8-"] .absence-line,
body[class*="pf8-"] .leave-stat,
body[class*="pf8-"] .leave-stats,
body[class*="pf8-"] #list,
body[class*="pf8-"] #presence,
body[class*="pf8-"] #recent,
body[class*="pf8-"] #raw,
body[class*="pf8-"] #report,
body[class*="pf8-"] .bigcard,
body[class*="pf8-"] .records,
body[class*="pf8-"] .month,
body[class*="pf8-"] .summary-box,
body[class*="pf8-"] .attachment-panel,
body[class*="pf8-"] .attachment-item,
body[class*="pf8-"] .attachment-thumb,
body[class*="pf8-"] .assign-item,
body[class*="pf8-"] .collab-card,
body[class*="pf8-"] .file-card,
body[class*="pf8-"] .info-row,
body[class*="pf8-"] .client-card,
body[class*="pf8-"] .status-pill,
body[class*="pf8-"] .sync-card,
body[class*="pf8-"] .client-picker,
body[class*="pf8-"] .notif-pop,
body[class*="pf8-"] #modal,
body[class*="pf8-"] #confirmBox{
  background:#fff !important;
  color:var(--pf8-text) !important;
  border-color:var(--pf8-line) !important;
  box-shadow:0 8px 22px rgba(15,23,42,.05) !important;
}

body[class*="pf8-"] .req-card::after{
  width:5px !important;
  box-shadow:none !important;
}

body[class*="pf8-"] #list::before,
body[class*="pf8-"] h1::before,
body[class*="pf8-"] h1::after,
body[class*="pf8-"] .pf-recent-activity::before{
  display:none !important;
}

body[class*="pf8-"] input,
body[class*="pf8-"] select,
body[class*="pf8-"] textarea,
body[class*="pf8-"] input[type="date"],
body[class*="pf8-"] input[type="datetime-local"],
body[class*="pf8-"] input[type="time"],
body[class*="pf8-"] .field{
  background:#fff !important;
  color:var(--pf8-text) !important;
  border:1px solid var(--pf8-line) !important;
  box-shadow:none !important;
}

body[class*="pf8-"] input[type="date"]::-webkit-calendar-picker-indicator,
body[class*="pf8-"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body[class*="pf8-"] input[type="time"]::-webkit-calendar-picker-indicator{
  filter:none !important;
  opacity:.65 !important;
}

body[class*="pf8-"] .btn:not(.pf8-menu-card),
body[class*="pf8-"] .btn-primary:not(.pf8-menu-card),
body[class*="pf8-"] .btn-main:not(.pf8-menu-card),
body[class*="pf8-"] .btn-bureau:not(.pf8-menu-card),
body[class*="pf8-"] .btn-pink:not(.pf8-menu-card),
body[class*="pf8-"] .btn-save:not(.pf8-menu-card),
body[class*="pf8-"] .pending-toggle,
body[class*="pf8-"] .tab.active,
body[class*="pf8-"] button:not(.secondary):not(.btn-outline):not(.btn-ghost):not(.btn-red):not(.btn-retour):not(.btn-back):not(.btn-del):not(.btn-refuse):not(.btn-force):not(.icon-btn):not(.pf-nav-item):not(.card-menu):not(.notif-btn):not(.pf-ring-button):not(.pf8-menu-card):not(.menu-btn):not(.pf8-pending-toggle):not(.pf8-leave-tab):not(.pf8-card-action):not(.pf8-back-button){
  background:linear-gradient(135deg,var(--pf8-blue),#0ea5e9) !important;
  color:#fff !important;
  border:1px solid transparent !important;
  box-shadow:0 10px 24px rgba(37,99,235,.18) !important;
}

body[class*="pf8-"] .btn-outline,
body[class*="pf8-"] .btn-ghost,
body[class*="pf8-"] .secondary,
body[class*="pf8-"] .tab:not(.active),
body[class*="pf8-"] button.secondary,
body[class*="pf8-"] .card-menu,
body[class*="pf8-"] .notif-btn{
  background:#fff !important;
  color:var(--pf8-blue) !important;
  border:1px solid #bfdbfe !important;
  box-shadow:0 8px 20px rgba(15,23,42,.05) !important;
}

body[class*="pf8-"] .btn-red,
body[class*="pf8-"] .btn-retour,
body[class*="pf8-"] .btn-back,
body[class*="pf8-"] .btn-del,
body[class*="pf8-"] .btn-refuse,
body[class*="pf8-"] .btn-force,
body[class*="pf8-"] .btn-logout,
body[class*="pf8-"] .icon-btn{
  background:#fff5f5 !important;
  color:var(--pf8-red) !important;
  border:1px solid #fecaca !important;
  box-shadow:0 8px 20px rgba(239,68,68,.08) !important;
}

body[class*="pf8-"] .btn-accept,
body[class*="pf8-"] .oui{
  background:#ecfdf5 !important;
  color:#047857 !important;
  border:1px solid #bbf7d0 !important;
}

body[class*="pf8-"] .pill{
  background:var(--pf8-blue-soft) !important;
  color:var(--pf8-blue) !important;
  border:1px solid #bfdbfe !important;
  box-shadow:none !important;
}

body[class*="pf8-"] .leave-stat .ico,
body[class*="pf8-"] .pf-kpi-icon,
body[class*="pf8-"] .pf-metric-icon,
body[class*="pf8-"] .client-mark,
body[class*="pf8-"] .info-icon{
  background:var(--pf8-blue-soft) !important;
  color:var(--pf8-blue) !important;
  border:1px solid #bfdbfe !important;
  box-shadow:none !important;
}

body[class*="pf8-"] table,
body[class*="pf8-"] thead,
body[class*="pf8-"] tbody,
body[class*="pf8-"] tr,
body[class*="pf8-"] th,
body[class*="pf8-"] td{
  background:#fff !important;
  color:var(--pf8-text) !important;
  border-color:var(--pf8-line) !important;
}

body[class*="pf8-"] tr:nth-child(odd) td,
body[class*="pf8-"] tr:nth-child(even) td,
body[class*="pf8-"] tr.modified td{
  background:#fff !important;
}

body[class*="pf8-"] th{
  color:var(--pf8-muted) !important;
}

body[class*="pf8-"] #modal-bg,
body[class*="pf8-"] #confirmOverlay,
body[class*="pf8-"] .why-overlay{
  background:rgba(15,23,42,.32) !important;
  backdrop-filter:blur(4px) !important;
}

body[class*="pf8-"] .pf-ring-button{
  background:#fff !important;
  color:var(--pf8-text) !important;
  border:10px solid #dbeafe !important;
  box-shadow:0 18px 42px rgba(37,99,235,.16) !important;
}

body[class*="pf8-"] .pf-ring-button.is-working{
  border-color:#fed7aa !important;
}

body[class*="pf8-"] .pf-ring-button.is-out{
  border-color:#bbf7d0 !important;
}

body[class*="pf8-"] .pf-ring-button::before{
  opacity:.12 !important;
  filter:none !important;
}

body[class*="pf8-"] .pf-ring-button::after{
  border-color:var(--pf8-line) !important;
  box-shadow:none !important;
}

body[class*="pf8-"] footer,
body[class*="pf8-"] .muted,
body[class*="pf8-"] .subtitle,
body[class*="pf8-"] .panel-copy,
body[class*="pf8-"] .hint,
body[class*="pf8-"] .group-sub,
body[class*="pf8-"] .req-meta,
body[class*="pf8-"] .date-line,
body[class*="pf8-"] .client-title-text span,
body[class*="pf8-"] .info-copy span,
body[class*="pf8-"] .empty,
body[class*="pf8-"] .detail-empty,
body[class*="pf8-"] small{
  color:#475569 !important;
}

body[class*="pf8-"] .attachment-meta strong,
body[class*="pf8-"] .collab-name,
body[class*="pf8-"] .name{
  color:var(--pf8-text) !important;
}

body[class*="pf8-"] .attachment-actions,
body[class*="pf8-"] .client-stack,
body[class*="pf8-"] .assign-grid,
body[class*="pf8-"] .collab-grid,
body[class*="pf8-"] .summary-grid{
  max-width:100% !important;
}

/* Final readability pass for operational pages with legacy pale text. */
body[class*="pf8-"] .pf-recent-row,
body[class*="pf8-"] .buddy,
body[class*="pf8-"] .wf-card,
body[class*="pf8-"] .absence-line,
body[class*="pf8-"] .section,
body[class*="pf8-"] .row-line,
body[class*="pf8-"] .assign-item,
body[class*="pf8-"] .attachment-item,
body[class*="pf8-"] .collab-card{
  color:var(--pf8-text) !important;
}

body[class*="pf8-"] .pf-recent-main strong,
body[class*="pf8-"] .pf-recent-row strong,
body[class*="pf8-"] .wf-name,
body[class*="pf8-"] .card-title,
body[class*="pf8-"] .section-title,
body[class*="pf8-"] .buddy span,
body[class*="pf8-"] .summary-box strong,
body[class*="pf8-"] .month .value{
  color:var(--pf8-text) !important;
  opacity:1 !important;
}

body[class*="pf8-"] .pf-recent-main em,
body[class*="pf8-"] .wf-meta,
body[class*="pf8-"] .date-line,
body[class*="pf8-"] .section-title,
body[class*="pf8-"] .summary-box span,
body[class*="pf8-"] .month .label{
  color:#475569 !important;
  opacity:1 !important;
}

body[class*="pf8-"] .pf-empty-line,
body[class*="pf8-"] .empty,
body[class*="pf8-"] td,
body[class*="pf8-"] td *{
  color:#334155 !important;
  opacity:1 !important;
}

body.pf8-pointage-control #list .bigcard,
body.pf8-pointage-control #modal,
body.pf8-adjustments .editor-card,
body.pf8-adjustments .table-box,
body.pf8-adjustments .form-block,
body.pf8-adjustments .manual-block,
body.pf8-adjustments .absence-item{
  background:#fff !important;
  color:var(--pf8-text) !important;
  border:1px solid var(--pf8-line) !important;
  box-shadow:0 8px 22px rgba(15,23,42,.05) !important;
}

body.pf8-pointage-control .section,
body.pf8-pointage-control .section-title,
body.pf8-pointage-control .date-line{
  background:#f8fafc !important;
  color:#334155 !important;
  border-color:var(--pf8-line) !important;
}

body.pf8-rapports-clients .filters{
  display:grid !important;
  grid-template-columns:minmax(220px,1.35fr) repeat(4,minmax(150px,1fr)) !important;
  gap:12px !important;
  align-items:end !important;
}

body.pf8-rapports-clients .filters > div{
  min-width:0 !important;
}

body.pf8-rapports-clients .filters .btn{
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
}

body.pf8-maladie-admin .leave-stats{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}

body.pf8-vacances-admin .leave-stats{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}

body.pf8-users,
body.pf8-dashboard-admin,
body.pf8-bureau-admin,
body.pf8-bureau-employee{
  align-items:center !important;
  justify-content:center !important;
}

body.pf8-dashboard-admin .pf-admin-panel,
body.pf8-dashboard-admin .pf-admin-kpis{
  width:100% !important;
}

body.pf8-dashboard-admin .pf-recent-row{
  display:grid !important;
  grid-template-columns:52px 16px minmax(0,1fr) 34px !important;
  gap:10px !important;
  align-items:center !important;
}

body.pf8-dashboard-admin .pf-recent-main{
  min-width:0 !important;
}

body.pf8-dashboard-admin .pf-recent-main em{
  display:block !important;
  white-space:normal !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  max-height:2.5em !important;
}

body.pf8-dashboard-admin .presence-title{
  color:#334155 !important;
  opacity:1 !important;
}

@media (max-width:1080px){
  body.pf8-rapports-clients .filters{
    grid-template-columns:1fr 1fr !important;
  }
}

@media (max-width:720px){
  body.pf8-rapports-clients .filters{
    grid-template-columns:1fr !important;
  }
}

/* Compact app-style metric cards. This overrides the old table-like neon grids. */
body.pf8-pointage-employee .pf-metrics-card{
  padding:16px !important;
  border-radius:24px !important;
  overflow:hidden !important;
}

body.pf8-pointage-employee .pf-section-title,
body.pf8-page .row-title{
  text-align:left !important;
  margin-bottom:12px !important;
}

body.pf8-pointage-employee .pf-metric-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
  width:100% !important;
  background:transparent !important;
  border:0 !important;
}

body.pf8-pointage-employee .pf-metric-grid.four{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}

body.pf8-pointage-employee .pf-metric,
body.pf8-pointage-employee .pf-metric:first-child,
body.pf8-pointage-employee .pf-metric:nth-child(odd),
body.pf8-pointage-employee .pf-metric:nth-child(even){
  min-width:0 !important;
  min-height:96px !important;
  padding:12px 8px !important;
  border:1px solid var(--pf8-line) !important;
  border-left:1px solid var(--pf8-line) !important;
  border-radius:18px !important;
  background:#fff !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  text-align:center !important;
}

body.pf8-pointage-employee .pf-metric-label{
  display:block !important;
  max-width:100% !important;
  color:#64748b !important;
  font-size:.68rem !important;
  line-height:1.12 !important;
  text-align:center !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

body.pf8-pointage-employee .pf-metric-value{
  color:var(--pf8-text) !important;
  font-size:1.18rem !important;
  line-height:1 !important;
  text-align:center !important;
}

body.pf8-page .leave-stats{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
  padding:12px !important;
  border:1px solid var(--pf8-line) !important;
  border-radius:22px !important;
  background:#fff !important;
  box-shadow:0 8px 22px rgba(15,23,42,.05) !important;
}

body.pf8-page .leave-stat,
body.pf8-page .leave-stat:first-child{
  min-width:0 !important;
  min-height:104px !important;
  padding:11px 7px !important;
  border:1px solid var(--pf8-line) !important;
  border-left:1px solid var(--pf8-line) !important;
  border-radius:18px !important;
  background:#fff !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  text-align:center !important;
}

body.pf8-page .leave-stat .label{
  max-width:100% !important;
  color:#475569 !important;
  font-size:.66rem !important;
  line-height:1.12 !important;
  text-align:center !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

body.pf8-page .leave-stat strong{
  color:var(--pf8-text) !important;
  font-size:1.5rem !important;
  line-height:1 !important;
  margin:0 !important;
}

body.pf8-page .month.big,
body.pf8-page .summary-box{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  text-align:center !important;
  padding:14px 10px !important;
}

@media (max-width:520px){
  body.pf8-page .leave-stats{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body.pf8-maladie-admin .leave-stats,
  body.pf8-vacances-admin .leave-stats{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width:380px){
  body.pf8-pointage-employee .pf-metric-grid{
    grid-template-columns:1fr !important;
  }
  body.pf8-pointage-employee .pf-metric-grid.four{
    grid-template-columns:1fr !important;
  }
}

/* Absolute no-ghost-text rule for the PF 8 white UI. Keep this block last. */
body[class*="pf8-"] .pf-panel-title a,
body[class*="pf8-"] .pf-panel-title h3,
body[class*="pf8-"] .presence-title,
body[class*="pf8-"] .pf-recent-time,
body[class*="pf8-"] .pf-recent-action,
body[class*="pf8-"] .pf-recent-main em,
body[class*="pf8-"] .pf-recent-main strong,
body[class*="pf8-"] .wf-meta,
body[class*="pf8-"] .wf-name,
body[class*="pf8-"] .accordion-header .info .email,
body[class*="pf8-"] .subtitle,
body[class*="pf8-"] .muted,
body[class*="pf8-"] .small,
body[class*="pf8-"] small,
body[class*="pf8-"] label,
body[class*="pf8-"] th,
body[class*="pf8-"] .summary-box span,
body[class*="pf8-"] .month .label,
body[class*="pf8-"] .req-meta,
body[class*="pf8-"] .date-line,
body[class*="pf8-"] .section-title,
body[class*="pf8-"] .empty,
body[class*="pf8-"] .pf-empty-line{
  color:#334155 !important;
  opacity:1 !important;
}

body[class*="pf8-"] h1,
body[class*="pf8-"] h2,
body[class*="pf8-"] h3,
body[class*="pf8-"] strong,
body[class*="pf8-"] .name,
body[class*="pf8-"] .card-title,
body[class*="pf8-"] .summary-box strong,
body[class*="pf8-"] .month .value{
  color:#0f172a !important;
  opacity:1 !important;
}

body.pf8-dashboard-admin .pf-panel-title a{
  background:#eff6ff !important;
  border:1px solid #bfdbfe !important;
  color:#1d4ed8 !important;
  border-radius:999px !important;
  padding:6px 10px !important;
  font-weight:900 !important;
}

body.pf8-dashboard-admin .pf-recent-time{
  color:#64748b !important;
  font-weight:900 !important;
}

body.pf8-dashboard-admin .pf-recent-action{
  color:#16a34a !important;
  background:#f0fdf4 !important;
  border:1px solid #bbf7d0 !important;
}

body[class*="pf8-"] [style*="opacity"]{
  opacity:1 !important;
}

/* Final app centering and hard contrast corrections. Keep after no-ghost-text rules. */
body.pf8-dashboard-admin.pf-admin-dashboard,
body.pf8-bureau-admin.pf-admin-bureau,
body.pf8-users{
  min-height:100svh !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:24px 14px !important;
}

body.pf8-dashboard-admin .pf-admin-shell{
  min-height:auto !important;
  height:auto !important;
  width:min(100%,430px) !important;
  max-width:430px !important;
  margin:auto !important;
  padding:18px !important;
}

body.pf8-dashboard-admin #dash-login{
  margin:0 !important;
}

body.pf8-bureau-admin #bureau-ui{
  margin:auto !important;
}

body.pf8-users main{
  margin:auto !important;
}

body.pf8-users img.logo{
  display:block !important;
  margin:0 auto 14px !important;
}

body.pf8-page img.pf8-top-image,
body.pf8-users img.pf8-top-image,
body.pf8-rapports-tracking img.pf8-top-image,
body.pf8-leave-admin img.pf8-top-image,
body.pf8-leave-employee img.pf8-top-image,
body.pf8-conges-stats img.pf8-top-image{
  display:block !important;
  width:100% !important;
  max-width:340px !important;
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
  border-radius:22px !important;
  margin:0 auto 16px !important;
  padding:0 !important;
  background:transparent !important;
  box-shadow:0 14px 32px rgba(15,23,42,.08) !important;
  filter:none !important;
}

body.pf8-profile-employee .avatar.pf8-top-avatar{
  width:100% !important;
  max-width:340px !important;
  height:auto !important;
  border-radius:22px !important;
  margin:0 auto 16px !important;
  overflow:visible !important;
}

body.pf8-profile-employee .avatar.pf8-top-avatar img{
  width:100% !important;
  height:auto !important;
  object-fit:contain !important;
  border-radius:22px !important;
  box-shadow:0 14px 32px rgba(15,23,42,.08) !important;
  filter:none !important;
}

body.pf8-users h1,
body.pf8-users .subtitle{
  text-align:center !important;
}

body.pf8-rapports-clients th,
body.pf8-rapports-clients td,
body.pf8-rapports-clients label,
body.pf8-rapports-clients .subtitle,
body.pf8-rapports-clients .summary-box span,
body.pf8-rapports-clients .empty{
  color:#1f2937 !important;
  opacity:1 !important;
}

body.pf8-rapports-clients th{
  color:#334155 !important;
  font-weight:950 !important;
}

body.pf8-rapports-clients td{
  color:#0f172a !important;
}

body.pf8-rapports-clients .table-wrap{
  background:#fff !important;
}

/* Bureau 8.0 menus must keep white SaaS cards, not the legacy blue button treatment. */
body.pf8-bureau-admin.pf8-menu-v2 .pf8-menu-content .pf8-menu-card,
body.pf8-bureau-admin.pf8-menu-v2 .pf8-menu-content .menu-btn.sub,
body.pf8-bureau-admin.pf8-menu-v2 .pf8-menu-content .menu-btn.has-panel.open,
body.pf8-bureau-employee.pf8-menu-v2 .pf8-menu-content .pf8-menu-card,
body.pf8-bureau-employee.pf8-menu-v2 .pf8-menu-content .btn-pink,
body.pf8-bureau-employee.pf8-menu-v2 .pf8-menu-content .btn-red{
  background:#ffffff !important;
  background-image:none !important;
  color:var(--pf8-text) !important;
  border:1px solid var(--pf8-border) !important;
  box-shadow:0 8px 20px rgba(15,23,42,.045) !important;
}

body.pf8-bureau-admin.pf8-menu-v2 .pf8-menu-content .pf8-menu-card:hover,
body.pf8-bureau-admin.pf8-menu-v2 .pf8-menu-content .menu-btn.sub:hover,
body.pf8-bureau-employee.pf8-menu-v2 .pf8-menu-content .pf8-menu-card:hover{
  background:#f8fbff !important;
  border-color:#bfdbfe !important;
}

body.pf8-bureau-admin.pf8-menu-v2 .pf8-menu-content .pf8-menu-copy strong,
body.pf8-bureau-employee.pf8-menu-v2 .pf8-menu-content .pf8-menu-copy strong{
  color:var(--pf8-text) !important;
}

body.pf8-bureau-admin.pf8-menu-v2 .pf8-menu-content .pf8-menu-copy span,
body.pf8-bureau-employee.pf8-menu-v2 .pf8-menu-content .pf8-menu-copy span{
  color:#5f718e !important;
}

body.pf8-bureau-admin.pf8-menu-v2 #bureau-ui{
  padding-bottom:18px !important;
  overscroll-behavior:contain !important;
  -webkit-overflow-scrolling:touch !important;
}

body.pf8-bureau-admin.pf8-menu-v2 .pf8-menu-content{
  padding-bottom:22px !important;
}

body.pf8-bureau-admin.pf8-menu-v2 .settings-panel{
  width:100% !important;
  max-width:100% !important;
  margin:0 0 12px 0 !important;
  padding:8px !important;
  border:1px solid #dbeafe !important;
  border-radius:18px !important;
  background:#f8fbff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 10px 22px rgba(15,23,42,.04) !important;
  overflow:hidden !important;
  justify-self:stretch !important;
}

body.pf8-bureau-admin.pf8-menu-v2 .settings-panel.open{
  max-height:none !important;
}

body.pf8-dashboard-admin .pf-admin-shell{
  padding-bottom:96px !important;
  max-height:calc(100svh - 24px) !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  -webkit-overflow-scrolling:touch !important;
  scroll-padding-bottom:112px !important;
}

body.pf8-dashboard-admin #dash-ui{
  margin-bottom:16px !important;
}

body.pf8-dashboard-admin #recent-activity{
  max-height:190px !important;
  overflow-y:auto !important;
  padding-right:4px !important;
  overscroll-behavior:contain !important;
  -webkit-overflow-scrolling:touch !important;
}

body.pf8-dashboard-admin #recent-activity::after{
  content:"" !important;
  display:block !important;
  height:8px !important;
}

/* Final Bureau menu lock: v2 cards must stay white, never legacy blue. */
body.pf8-menu-v2.pf8-bureau-admin,
body.pf8-menu-v2.pf8-bureau-employee{
  overflow-y:auto !important;
  align-items:flex-start !important;
}

body.pf8-menu-v2.pf8-bureau-admin #bureau-ui,
body.pf8-menu-v2.pf8-bureau-employee main{
  height:auto !important;
  max-height:none !important;
  overflow-y:visible !important;
  scrollbar-gutter:stable !important;
}

body.pf8-menu-v2.pf8-bureau-admin .pf8-menu-content,
body.pf8-menu-v2.pf8-bureau-employee .pf8-menu-content{
  padding-bottom:44px !important;
}

body.pf8-menu-v2.pf8-bureau-admin .menu-btn.pf8-menu-card,
body.pf8-menu-v2.pf8-bureau-admin .menu-btn.sub,
body.pf8-menu-v2.pf8-bureau-admin .menu-btn.has-panel.open,
body.pf8-menu-v2.pf8-bureau-admin .menu-btn.red,
body.pf8-menu-v2.pf8-bureau-employee .btn.pf8-menu-card,
body.pf8-menu-v2.pf8-bureau-employee .btn.btn-pink.pf8-menu-card,
body.pf8-menu-v2.pf8-bureau-employee .btn.btn-red.pf8-menu-card{
  background:#ffffff !important;
  background-image:none !important;
  color:#0f172a !important;
  border:1px solid #dbe3ee !important;
  box-shadow:0 10px 22px rgba(15,23,42,.055) !important;
}

body.pf8-menu-v2.pf8-bureau-admin .menu-btn.pf8-menu-card:hover,
body.pf8-menu-v2.pf8-bureau-admin .menu-btn.sub:hover,
body.pf8-menu-v2.pf8-bureau-employee .btn.pf8-menu-card:hover{
  background:#f8fbff !important;
  background-image:none !important;
  border-color:#bfdbfe !important;
}

body.pf8-menu-v2.pf8-bureau-admin .settings-panel,
body.pf8-menu-v2.pf8-bureau-admin .settings-panel.open{
  overflow:visible !important;
  touch-action:pan-y !important;
}

/* Admin dashboard mobile reset: keep it usable on real phones, not as a tiny preview. */
body.pf8-dashboard-admin.pf-admin-dashboard{
  min-height:100svh !important;
  height:auto !important;
  display:block !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:18px 12px 118px !important;
  align-items:initial !important;
  justify-content:initial !important;
  -webkit-overflow-scrolling:touch !important;
}

body.pf8-dashboard-admin .pf-admin-shell{
  width:min(100%, 560px) !important;
  max-width:560px !important;
  min-height:auto !important;
  max-height:none !important;
  height:auto !important;
  overflow:visible !important;
  margin:0 auto !important;
  padding:16px !important;
  border-radius:28px !important;
  gap:14px !important;
}

body.pf8-dashboard-admin .pf-admin-head{
  padding:18px 14px !important;
  border-radius:24px !important;
}

body.pf8-dashboard-admin .pf-admin-head .logo{
  width:92px !important;
  max-width:92px !important;
  margin:0 auto 10px !important;
}

body.pf8-dashboard-admin .pf-title{
  font-size:1.45rem !important;
  line-height:1.1 !important;
}

body.pf8-dashboard-admin .pf-subtitle{
  font-size:.92rem !important;
  line-height:1.25 !important;
}

body.pf8-dashboard-admin .pf-admin-kpis{
  grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  gap:10px !important;
  width:100% !important;
}

body.pf8-dashboard-admin .pf-admin-kpi{
  min-height:108px !important;
  padding:14px 10px !important;
  border-radius:18px !important;
  overflow:visible !important;
}

body.pf8-dashboard-admin .pf-admin-kpi strong{
  font-size:2rem !important;
  line-height:1 !important;
  margin:4px 0 !important;
}

body.pf8-dashboard-admin .pf-admin-kpi span:last-child{
  font-size:.72rem !important;
  line-height:1.15 !important;
  min-height:auto !important;
  white-space:normal !important;
}

body.pf8-dashboard-admin .pf-admin-panel{
  width:100% !important;
  min-height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  padding:16px !important;
  border-radius:22px !important;
  margin:0 !important;
}

body.pf8-dashboard-admin #presence,
body.pf8-dashboard-admin #recent-activity{
  width:100% !important;
  max-width:100% !important;
  max-height:none !important;
  overflow:visible !important;
  padding-right:0 !important;
}

body.pf8-dashboard-admin #presence{
  min-height:150px !important;
}

body.pf8-dashboard-admin #presence .presence-list{
  overflow:visible !important;
  max-height:none !important;
}

body.pf8-dashboard-admin .presence-toggle{
  min-height:48px !important;
  border-radius:14px !important;
}

body.pf8-dashboard-admin .pf-panel-title{
  gap:10px !important;
  margin-bottom:14px !important;
}

body.pf8-dashboard-admin .pf-panel-title h3{
  font-size:1.15rem !important;
  line-height:1.15 !important;
}

body.pf8-dashboard-admin .pf-panel-title a{
  padding:8px 12px !important;
  font-size:.82rem !important;
}

body.pf8-dashboard-admin .pf-recent-activity{
  gap:8px !important;
}

body.pf8-dashboard-admin .pf-recent-activity::before{
  display:none !important;
}

body.pf8-dashboard-admin .pf-recent-row{
  grid-template-columns:48px 16px minmax(0,1fr) 34px !important;
  min-height:64px !important;
  padding:8px 0 !important;
}

body.pf8-dashboard-admin .pf-recent-main strong{
  white-space:normal !important;
  line-height:1.1 !important;
}

body.pf8-dashboard-admin .pf-recent-main em{
  max-height:2.9em !important;
  line-height:1.25 !important;
}

body.pf8-dashboard-admin .pf-bottom-nav-admin{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  bottom:calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  transform:translateX(-50%) !important;
  width:min(calc(100vw - 24px), 560px) !important;
  max-width:560px !important;
  z-index:80 !important;
}

@media (max-width:430px){
  body.pf8-dashboard-admin.pf-admin-dashboard{
    padding:10px 10px 112px !important;
  }

  body.pf8-dashboard-admin .pf-admin-shell{
    width:100% !important;
    max-width:none !important;
    padding:12px !important;
    border-radius:24px !important;
  }

  body.pf8-dashboard-admin .pf-admin-head .logo{
    width:84px !important;
    max-width:84px !important;
  }

  body.pf8-dashboard-admin .pf-title{
    font-size:1.28rem !important;
  }

  body.pf8-dashboard-admin .pf-admin-kpi{
    min-height:100px !important;
    padding:12px 8px !important;
  }

  body.pf8-dashboard-admin .pf-admin-panel{
    padding:14px !important;
  }

  body.pf8-dashboard-admin .pf-recent-row{
    grid-template-columns:44px 14px minmax(0,1fr) 32px !important;
    gap:8px !important;
  }
}

@media (min-width:900px){
  body.pf8-dashboard-admin.pf-admin-dashboard{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:24px 14px !important;
  }

  body.pf8-dashboard-admin .pf-admin-shell{
    max-width:430px !important;
    margin:auto !important;
  }
}
