/* Police système : aucun téléchargement de police requis. */
:root{
  --bg:#f4f7fc;
  --surface:#ffffff;
  --surface-soft:#f8fbfc;
  --ink:#1e2b3c;
  --ink-strong:#1c3661;
  --muted:#6f7f91;
  --line:#dbe8eb;
  --brand:#00528f;
  --brand-2:#126daf;
  --accent:#99c0c3;
  --accent-strong:#5fa8ad;
  --warm:#5f5143;
  --shadow:0 16px 36px rgba(28, 54, 97, .08);
  --shadow-soft:0 8px 22px rgba(28, 54, 97, .06);
  --radius:8px;
  --red:#f5361d;
  --red-2:#ee5b3d;
  --red-bg:#fff3f1;
  --orange:#b54708;
  --orange-bg:#fff7ed;
  --green:#47bd1c;
  --green-bg:#effaf5;
  --blue:#1c3661;
  --blue-bg:#eef6f7;
  --purple:#5f5143;
  --purple-bg:#f7f2ed;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(153,192,195,.28), transparent 34%),
    linear-gradient(180deg,#ffffff 0,#f4f8fa 320px,var(--bg) 100%);
  color:var(--ink);
  font-family:Poppins,"Segoe UI",ui-sans-serif,system-ui,-apple-system,Roboto,Arial,sans-serif;
  font-size:14px;
}
.loginScreen{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}
.loginCard{
  width:min(430px,100%);
  display:grid;
  gap:12px;
  padding:30px;
  border:1px solid rgba(153,192,195,.55);
  border-radius:8px;
  background:rgba(255,255,255,.94);
  box-shadow:0 22px 55px rgba(28,54,97,.14);
}
.loginLogoImg{
  width:100%;
  max-width:330px;
  height:auto;
  display:block;
  margin:0 auto 8px;
}
.loginCard h1{
  margin:0;
  color:var(--brand);
  font-size:30px;
  font-weight:900;
}
.loginError{
  margin:0;
  color:var(--red);
  font-size:12px;
  font-weight:800;
}
.wrap,
.appLayout{
  max-width:1680px;
  margin:0 auto;
  padding:10px 14px;
}
.appHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:8px;
  padding:8px 14px;
  border:1px solid rgba(153,192,195,.42);
  border-radius:8px;
  background:rgba(255,255,255,.94);
  box-shadow:var(--shadow);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:40px;
}
.brandLogo{
  width:188px;
  max-width:38vw;
  height:auto;
  display:block;
  flex:none;
}
.brand:before{
  content:none;
}
.headerActions{
  display:flex;
  align-items:center;
  gap:9px;
}
.syncCluster{
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
  gap:6px;
  max-width:360px;
}
.syncCluster.liveOnly{
  display:flex;
  max-width:260px;
}
.syncBtn,
.stopSyncBtn{
  width:auto;
  min-height:38px;
  padding:8px 12px;
  border-radius:8px;
  white-space:nowrap;
}
.syncBtn{
  color:#fff;
  border-color:#00528f;
  background:linear-gradient(135deg,#00528f,#126daf);
  box-shadow:0 12px 28px rgba(0,82,143,.18);
}
.syncNote{
  grid-column:1 / -1;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  line-height:1.2;
  max-width:320px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.syncCluster.liveOnly .syncNote{
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:260px;
  padding:9px 12px;
  border:1px solid #cfe2e4;
  border-radius:999px;
  background:#f2fbf7;
  color:#12614b;
  box-shadow:0 8px 18px rgba(18,109,175,.08);
}
.syncCluster.liveOnly .syncNote::before{
  content:"";
  width:9px;
  height:9px;
  flex:none;
  border-radius:50%;
  background:#47bd1c;
  box-shadow:0 0 0 4px rgba(71,189,28,.12);
}
.version{
  position:relative;
  background:#f2f8f8;
  color:var(--brand);
  border:1px solid #cfe2e4;
  border-radius:8px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.releaseNotes{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  z-index:20;
  width:min(360px,80vw);
  display:none;
  white-space:normal;
  padding:16px;
  border:1px solid rgba(153,192,195,.55);
  border-radius:8px;
  background:#fff;
  box-shadow:0 20px 44px rgba(28,54,97,.16);
}
.versionHover:hover .releaseNotes,
.versionHover:focus .releaseNotes{
  display:block;
}
.releaseNotes h3{
  margin:0 0 10px;
  color:var(--brand);
  font-size:14px;
}
.releaseNotes p{
  margin:8px 0;
  color:#4f6372;
  font-size:12px;
  line-height:1.45;
}
.iconBtn{
  width:42px;
  min-width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border-radius:8px;
}
.iconBtn svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.commandBar{
  display:grid;
  grid-template-columns:minmax(320px,1fr) auto;
  gap:12px;
  align-items:stretch;
  margin-bottom:14px;
  padding:14px;
  border:1px solid rgba(153,192,195,.6);
  border-radius:8px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow);
}
.uploadBlock{
  display:grid;
  gap:7px;
}
.uploadBlock p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}
.analysisActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.analysisActions button{
  width:auto;
  min-width:104px;
  min-height:38px;
  padding:8px 14px;
  white-space:nowrap;
}
button.danger{
  color:var(--red);
  border-color:#efb0a8;
  background:#fff7f5;
}
button.danger:hover{
  color:#fff;
  border-color:var(--red);
  background:linear-gradient(135deg,#b42318,#e2483d);
}
label{
  display:block;
  margin-bottom:7px;
  color:var(--brand);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
input[type=file],
select,
button,
input[type=number],
input[type=text],
input[type=email],
input[type=password]{
  width:100%;
  min-height:42px;
  border:1px solid #c8dde0;
  border-radius:8px;
  background:#fff;
  padding:10px 12px;
  color:var(--ink);
  font:inherit;
  font-size:13px;
}
input[type=file]{
  min-height:46px;
  padding:10px 12px;
  background:#fbfdfd;
}
select:focus,
input:focus{
  outline:3px solid rgba(153,192,195,.35);
  border-color:var(--accent-strong);
}
button{
  border:1px solid var(--brand);
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
button:hover{
  background:linear-gradient(135deg,var(--brand-2),#38679e);
  border-color:var(--brand-2);
  box-shadow:0 8px 18px rgba(0,51,102,.16);
  transform:translateY(-1px);
}
button:disabled{
  cursor:not-allowed;
  opacity:.65;
  transform:none;
  box-shadow:none;
}
button.secondary{
  background:#fff;
  color:var(--brand);
  border-color:#b9cacc;
}
button.secondary:hover{
  background:#eef7f8;
  border-color:var(--accent-strong);
}
button.ghost{
  background:#fff;
  color:var(--brand);
  border-color:#b9cacc;
}
.linkBtn{
  min-height:auto;
  width:auto;
  justify-self:center;
  padding:4px 0;
  border:0;
  background:transparent;
  color:var(--brand);
  box-shadow:none;
  font-size:12px;
}
.linkBtn:hover{
  background:transparent;
  box-shadow:none;
  color:var(--accent-strong);
  transform:none;
}
.userBadge{
  display:flex;
  align-items:center;
  gap:8px;
  width:auto;
  min-height:42px;
  padding:8px 11px;
  border:1px solid #d7e8eb;
  border-radius:999px;
  background:#f7fbfc;
  color:var(--brand);
  font-size:12px;
  font-weight:900;
  box-shadow:none;
  white-space:nowrap;
}
.userBadge:hover{
  background:#edf7f8;
  color:var(--brand);
  border-color:#bddadd;
  box-shadow:0 8px 18px rgba(28,54,97,.08);
  transform:translateY(-1px);
}
.userIcon{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e9f4f5;
  color:var(--brand);
}
.userIcon svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.settingsFab{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:80;
  width:auto;
  min-width:56px;
  height:56px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 16px;
  border-radius:999px;
  background:linear-gradient(135deg,#effaf5,#d7f0e4);
  color:var(--green);
  border:1px solid #b7e7d1;
  box-shadow:0 18px 34px rgba(15,107,75,.18);
}
.settingsFab span{
  font-size:12px;
  font-weight:900;
}
.settingsFab svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.settingsFab.settingsAlert{
  background:linear-gradient(135deg,#fff1ef,#f5361d);
  color:#fff;
  border-color:#f5361d;
  box-shadow:0 18px 34px rgba(245,54,29,.22);
}
.settingsPanel{
  position:fixed;
  right:22px;
  bottom:88px;
  z-index:81;
  width:min(520px,calc(100vw - 32px));
  max-height:calc(100vh - 116px);
  overflow:auto;
  display:grid;
  gap:11px;
  padding:16px;
  border:1px solid rgba(153,192,195,.62);
  border-radius:8px;
  background:#fff;
  box-shadow:0 22px 55px rgba(28,54,97,.16);
}
.settingsHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.settingsHead h3{
  margin:0;
  color:var(--brand);
  font-size:16px;
}
.miniIcon{
  width:32px;
  min-width:32px;
  height:32px;
  min-height:32px;
  padding:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  line-height:1;
}
#settingsClose{
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  border-radius:999px;
  background:#f2f8f8;
  border-color:#cfe2e4;
  color:var(--brand);
  font-size:22px;
  font-weight:800;
  box-shadow:none;
}
#settingsClose:hover{
  background:#e7f3f4;
  border-color:var(--accent-strong);
  color:var(--brand);
  box-shadow:0 6px 14px rgba(28,54,97,.10);
}
.settingsNote{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.settingsCommandBar{
  margin:0;
  padding:0;
  border:0;
  box-shadow:none;
  background:transparent;
  grid-template-columns:1fr auto;
}
.settingsCommandBar .analysisActions{
  align-items:end;
}
.appointmentPopup{
  position:fixed;
  inset:0;
  z-index:90;
  display:grid;
  align-items:center;
  justify-items:center;
  padding:24px;
}
.appointmentPopup.hidden{
  display:none;
}
.appointmentPopupBackdrop{
  position:absolute;
  inset:0;
  background:rgba(12,22,32,.62);
  backdrop-filter:blur(1px);
}
.appointmentPopupCard{
  position:relative;
  width:min(760px,calc(100vw - 34px));
  max-height:min(88vh,820px);
  overflow:auto;
  border:0;
  border-radius:18px;
  background:#fff;
  padding:30px;
  box-shadow:0 28px 80px rgba(7,19,33,.34);
}
.appointmentPopupHead{
  position:absolute;
  top:14px;
  right:14px;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:0;
  border:0;
  background:transparent;
}
.appointmentPopupHead > div{
  display:none;
}
.appointmentPopupHead h3{
  margin:2px 0 0;
  color:var(--brand);
  font-size:20px;
  font-weight:900;
}
.appointmentPopupHead .miniIcon{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#eef8fb;
  border-color:#cfe2e4;
  color:var(--brand);
  font-size:22px;
}
.appointmentPopupContent{
  padding:0;
}
.cybergSheet{
  display:grid;
  gap:16px;
  padding:20px;
  border-radius:10px;
  background:#eaf4ff;
  color:#233858;
}
.cybergTop{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}
.cybergTop h3{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 8px;
  color:#001f3e;
  font-size:17px;
  font-weight:900;
}
.cybergTop p{
  margin:0;
  color:#001f3e;
  font-size:14px;
  font-weight:850;
}
.cybergDocIcon{
  width:18px;
  height:18px;
  display:inline-grid;
  place-items:center;
  border:2px solid #001f3e;
  border-radius:3px;
  font-size:10px;
  line-height:1;
}
.cybergContact{
  display:flex;
  align-items:center;
  gap:12px;
  text-align:right;
}
.cybergSideLine{
  display:grid;
  gap:2px;
  color:#59687e;
  font-size:12px;
  font-weight:800;
}
.cybergSideLine b{
  color:#40516d;
  font-size:15px;
}
.cybergRoundActions{
  display:flex;
  gap:8px;
  align-items:center;
}
.cybergRoundActions .callBtn,
.cybergRoundActions .whatsappBtn{
  width:38px;
  height:38px;
  min-width:38px;
  max-width:38px;
  min-height:38px;
  max-height:38px;
  flex:0 0 38px;
}
.cybergGrid{
  display:grid;
  grid-template-columns:1.55fr .9fr;
  gap:18px;
}
.cybergMainInfo,
.cybergSide{
  display:grid;
  gap:10px;
}
.cybergInfoRow{
  display:grid;
  grid-template-columns:112px 1fr;
  gap:12px;
  align-items:start;
  color:#50617a;
  font-size:14px;
  line-height:1.35;
}
.cybergInfoRow > span{
  color:#001f3e;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.cybergInfoRow > b{
  color:#4d5f7a;
  font-weight:850;
}
.cybergInfoRow .badge{
  margin:0 6px 6px 0;
  vertical-align:middle;
}
.cybergSuggestions{
  display:grid;
  gap:8px;
  padding-top:4px;
  border-top:1px solid rgba(0,82,143,.12);
}
.cybergSuggestions h4{
  margin:0;
  color:#001f3e;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.cybergSuggestionLine{
  display:grid;
  grid-template-columns:112px 1fr auto;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border:1px solid #c8deef;
  border-radius:8px;
  background:rgba(255,255,255,.62);
  font-size:13px;
}
.cybergSuggestionLine span{
  color:#00528f;
  font-weight:900;
}
.cybergSuggestionLine b{
  color:#12355b;
}
.cybergSuggestionLine small{
  color:#5e6d83;
  font-weight:800;
}
.cybergWideBtn{
  width:100%;
}
.cybergFooter{
  padding-top:8px;
  border-top:1px solid rgba(0,82,143,.12);
}
.cybergFooter .decisionRow{
  position:static;
  padding-top:8px;
  background:transparent;
}
.whatsappPanel.hidden{
  display:none;
}
.whatsappBackdrop{
  position:fixed;
  inset:0;
  z-index:94;
  background:rgba(18,53,91,.2);
  backdrop-filter:blur(2px);
}
.whatsappPhone{
  position:fixed;
  right:32px;
  bottom:28px;
  z-index:95;
  width:min(390px, calc(100vw - 32px));
  height:min(720px, calc(100vh - 56px));
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:8px solid #102235;
  border-radius:28px;
  background:#e9f7ef;
  box-shadow:0 26px 70px rgba(18,53,91,.28);
}
.whatsappHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px;
  background:#0f6b4b;
  color:#fff;
}
.whatsappHead span{
  font-size:11px;
  font-weight:800;
  opacity:.82;
}
.whatsappHead h3{
  margin:2px 0 0;
  font-size:16px;
}
.whatsappContent{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px;
  overflow:auto;
  background:
    radial-gradient(circle at 16px 16px, rgba(255,255,255,.62) 0 2px, transparent 3px),
    #e9f7ef;
  background-size:28px 28px;
}
.waThread{
  display:grid;
  gap:10px;
}
.waBubble{
  max-width:86%;
  padding:10px 12px;
  border-radius:16px;
  font-size:13px;
  line-height:1.35;
  box-shadow:0 8px 16px rgba(18,53,91,.08);
}
.waSystem{
  justify-self:center;
  max-width:100%;
  background:rgba(255,255,255,.75);
  color:#53636d;
  font-size:12px;
  text-align:center;
}
.waClient{
  justify-self:start;
  background:#fff;
  color:#12355b;
}
.waAgent{
  justify-self:end;
  background:#d9fdd3;
  color:#12351f;
}
.waComposer{
  margin-top:auto;
  display:grid;
  gap:8px;
}
.waComposer textarea{
  min-height:76px;
  resize:none;
  border-radius:14px;
  background:#fff;
}
.popupClientCard{
  display:grid;
  gap:12px;
}
.weekProposalPopup{
  display:grid;
  gap:14px;
}
.weekProposalFlow{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.weekProposalFlow div{
  padding:12px;
  border:1px solid #d7e3ec;
  border-radius:10px;
  background:#f7fbfd;
}
.weekProposalFlow div:last-child{
  border-color:#9ee7b8;
  background:#f2fff7;
}
.weekProposalFlow span{
  display:block;
  margin-bottom:5px;
  color:#616580;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
.weekProposalFlow b{
  color:#00528f;
  font-size:13px;
}
.weekProposalFlow p{
  margin:7px 0 0;
  color:#16324a;
  font-weight:900;
}
.weekProposalReason{
  margin:0;
  padding:10px 12px;
  border:1px solid #ffd58c;
  border-radius:10px;
  background:#fff8e8;
  color:#6c4a00;
  font-weight:800;
}
.popupChoices{
  grid-template-columns:1fr;
}
.popupActions{
  display:grid;
  gap:10px;
}
.popupActions .decisionRow{
  position:sticky;
  bottom:0;
  padding-top:10px;
  background:#fff;
}
.appointmentContextMenu{
  position:fixed;
  z-index:100;
  width:224px;
  display:grid;
  gap:5px;
  padding:8px;
  border:1px solid #cfe2e4;
  border-radius:10px;
  background:#fff;
  box-shadow:0 22px 52px rgba(28,54,97,.22);
}
.appointmentContextMenu.hidden{
  display:none;
}
.contextTitle{
  padding:7px 8px 5px;
  color:var(--brand);
  font-size:12px;
  font-weight:900;
}
.appointmentContextMenu button{
  width:100%;
  min-height:36px;
  justify-content:flex-start;
  padding:8px 10px;
  border:0;
  border-radius:8px;
  background:#f4f7fc;
  color:var(--brand);
  box-shadow:none;
  text-align:left;
  font-size:12px;
  font-weight:900;
}
.appointmentContextMenu button:hover{
  background:#e8f4fb;
}
.moveModeBar{
  position:fixed;
  left:50%;
  bottom:22px;
  z-index:95;
  width:min(760px,calc(100vw - 32px));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid #9be7ba;
  border-radius:12px;
  background:linear-gradient(135deg,#effaf5,#fff);
  box-shadow:0 24px 54px rgba(28,54,97,.22);
  transform:translateX(-50%);
}
.moveModeBar.hidden{
  display:none;
}
.moveModeBar div{
  display:grid;
  gap:3px;
  min-width:0;
}
.moveModeBar b{
  color:var(--green);
  font-size:13px;
}
.moveModeBar span,
.moveModeBar em{
  color:var(--brand);
  font-size:12px;
  font-style:normal;
  font-weight:800;
}
.moveModeBar em{
  color:var(--orange);
}
.settingsBlock{
  display:grid;
  gap:9px;
  margin-top:4px;
  padding-top:13px;
  border-top:1px solid var(--line);
}
.settingsBlock h4{
  margin:0;
  color:var(--brand);
  font-size:13px;
}
.accountGrid,
.adminGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:14px;
  align-items:start;
}
.accountCard{
  display:grid;
  gap:12px;
  padding:18px;
}
.accountCard h3{
  margin:0;
  color:var(--brand);
  font-size:20px;
  font-weight:900;
}
.formGrid{
  display:grid;
  gap:12px;
}
.formGrid.twoCols{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.mutedLine{
  margin:0;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.rolePill{
  justify-self:start;
  margin:0;
  padding:8px 11px;
  border:1px solid #cfe2e4;
  border-radius:999px;
  background:#f2f8f8;
  color:var(--brand);
  font-size:12px;
  font-weight:900;
}
.adminLinks{
  display:grid;
  gap:10px;
}
.adminGridWide{
  grid-template-columns:minmax(300px,.8fr) minmax(360px,1.1fr);
}
.adminUserManager,
.adminRolePanel,
.adminHistoryPanel{
  min-height:240px;
}
.adminUsersList,
.adminHistoryResult{
  display:grid;
  gap:8px;
  max-height:390px;
  overflow:auto;
  padding-right:3px;
}
.adminUserRow{
  width:100%;
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:center;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  text-align:left;
  color:var(--brand);
  box-shadow:none;
}
.adminUserRow:hover,
.adminUserRow.active{
  border-color:var(--accent-strong);
  background:#eef8fb;
}
.adminUserRow strong{
  display:block;
  font-size:13px;
  font-weight:900;
}
.adminUserRow span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.adminSelectedUserPanel{
  grid-column:span 1;
}
.checkGrid,
.rolePermissionGrid{
  display:grid;
  gap:8px;
}
.compactCheckGrid{
  max-height:230px;
  overflow:auto;
  padding:8px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fbfc;
}
.checkItem{
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 8px;
  border:1px solid #d9e8eb;
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  font-size:12px;
  font-weight:800;
}
.checkItem input{
  width:auto;
}
.rolePermissionCard{
  display:grid;
  gap:9px;
  padding:11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fbfc;
}
.rolePermissionCard h4{
  margin:0;
  color:var(--brand);
}
.permissionRow{
  display:grid;
  grid-template-columns:1fr 140px;
  gap:8px;
  align-items:center;
}
.permissionRow span{
  color:var(--ink);
  font-size:12px;
  font-weight:800;
}
.adminPasswordLine,
.adminActionsRow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.adminPasswordLine input{
  flex:1 1 220px;
}
.dangerBtn{
  border-color:#f4b4aa!important;
  color:#b42318!important;
}
.notice.warning{
  margin:0;
  font-weight:800;
}
.secondaryLink{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border:1px solid #b9cacc;
  border-radius:8px;
  background:#fff;
  color:var(--brand);
  font-size:13px;
  font-weight:900;
  text-decoration:none;
}
.secondaryLink:hover{
  background:#eef7f8;
  border-color:var(--accent-strong);
}
.chatFab{
  position:fixed;
  left:22px;
  bottom:22px;
  z-index:82;
  width:auto;
  min-width:112px;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:12px 18px;
  border:1px solid rgba(0,82,143,.22);
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#00528f,#126daf);
  box-shadow:0 18px 36px rgba(0,82,143,.24);
  font-weight:900;
  transition:transform .18s ease, box-shadow .18s ease;
}
.chatFab.hasUnread{
  box-shadow:0 20px 42px rgba(0,82,143,.28), 0 0 0 5px rgba(71,189,28,.12);
}
.chatFab:hover{
  transform:translateY(-2px);
}
.chatFabBadge{
  position:absolute;
  right:-6px;
  top:-7px;
  min-width:24px;
  height:24px;
  display:grid;
  place-items:center;
  padding:0 6px;
  border:3px solid #fff;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#47bd1c,#17a34a);
  box-shadow:0 10px 22px rgba(71,189,28,.28);
  font-size:11px;
  font-weight:950;
}
.chatFab svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.internalChatPanel{
  position:fixed;
  left:22px;
  bottom:88px;
  z-index:83;
  width:min(720px,calc(100vw - 44px));
  height:min(620px,calc(100vh - 120px));
  display:grid;
  grid-template-rows:auto 1fr;
  overflow:hidden;
  border:1px solid rgba(153,192,195,.62);
  border-radius:14px;
  background:#fff;
  box-shadow:0 28px 80px rgba(7,19,33,.24);
}
.internalChatHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:15px 16px;
  border-bottom:1px solid #dbe8eb;
  background:linear-gradient(135deg,#f8fbfc,#eef7f8);
}
.internalChatHead span{
  display:block;
  margin-bottom:3px;
  color:var(--accent-strong);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.internalChatHead h3{
  margin:0;
  color:var(--brand);
  font-size:18px;
}
.internalChatHead p{
  margin:2px 0 0;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.internalChatBody{
  min-height:0;
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
}
.internalChatContacts{
  overflow:auto;
  padding:10px;
  border-right:1px solid #dbe8eb;
  background:#f8fbfc;
}
.chatSectionTitle{
  margin:8px 4px 7px;
  color:var(--accent-strong);
  font-size:10px;
  font-weight:950;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.internalChatContacts button{
  position:relative;
  width:100%;
  min-height:56px;
  display:grid;
  gap:2px;
  margin-bottom:7px;
  padding:10px;
  text-align:left;
  border:1px solid transparent;
  border-radius:8px;
  color:#1e2b3c;
  background:#fff;
  box-shadow:none;
  overflow:hidden;
}
.internalChatContacts button::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:var(--thread-color,#00528f);
  opacity:.55;
}
.internalChatContacts button.active{
  border-color:rgba(0,82,143,.28);
  background:linear-gradient(135deg,#eaf4ff,#f5fbff);
  box-shadow:0 10px 24px rgba(0,82,143,.08);
}
.internalChatContacts button.hasUnread{
  border-color:rgba(71,189,28,.32);
  background:linear-gradient(135deg,#f5fff6,#eff9ff);
}
.internalChatContacts b{
  color:var(--brand);
  font-size:12px;
}
.internalChatContacts span{
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}
.chatUnread{
  position:absolute;
  right:10px;
  top:50%;
  min-width:22px;
  height:22px;
  display:grid;
  place-items:center;
  padding:0 6px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#47bd1c,#00528f);
  box-shadow:0 8px 18px rgba(0,82,143,.18);
  font-size:10px;
  font-style:normal;
  font-weight:950;
  transform:translateY(-50%);
}
.internalChatThread{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:1fr auto;
}
.internalChatMessages{
  min-height:0;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:9px;
  padding:14px;
  background:
    radial-gradient(circle at top right,rgba(153,192,195,.16),transparent 32%),
    #fff;
}
.chatMessage{
  width:min(82%,420px);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #dbe8eb;
  background:#f8fbfc;
}
.chatMessage.mine{
  align-self:flex-end;
  color:#fff;
  border-color:#00528f;
  background:linear-gradient(135deg,#00528f,#126daf);
}
.chatMessage span{
  display:block;
  margin-bottom:4px;
  font-size:10px;
  font-weight:800;
  opacity:.78;
}
.chatMessage p{
  margin:0;
  font-size:13px;
  line-height:1.45;
  font-weight:650;
}
.chatEmpty{
  margin:auto;
  color:var(--muted);
  font-weight:700;
}
.internalChatComposer{
  display:flex;
  align-items:flex-end;
  gap:10px;
  padding:12px;
  border-top:1px solid #dbe8eb;
  background:linear-gradient(180deg,#f8fbfc,#edf7f8);
}
.internalChatComposer textarea{
  flex:1;
  min-height:42px;
  max-height:92px;
  resize:none;
  padding:12px 15px;
  border:1px solid #c7dee3;
  border-radius:22px;
  outline:none;
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(18,53,91,.04);
  font:700 13px/1.35 Poppins, "Segoe UI", system-ui, sans-serif;
  color:#12355b;
}
.internalChatComposer textarea:focus{
  border-color:#99c0c3;
  box-shadow:0 0 0 4px rgba(153,192,195,.22);
}
.internalChatComposer button{
  width:46px;
  min-width:46px;
  height:42px;
  padding:0;
  border-radius:22px;
  background:linear-gradient(135deg,#47bd1c,#16a34a);
  box-shadow:0 12px 24px rgba(71,189,28,.22);
  font-size:0;
  position:relative;
}
.internalChatComposer button::before{
  content:"";
  position:absolute;
  left:16px;
  top:12px;
  width:13px;
  height:13px;
  border-top:3px solid #fff;
  border-right:3px solid #fff;
  transform:rotate(45deg);
}
.internalChatComposer button::after{
  content:"";
  position:absolute;
  left:12px;
  top:19px;
  width:18px;
  height:3px;
  border-radius:3px;
  background:#fff;
}

@media (max-width:700px){
.formGrid.twoCols{
    grid-template-columns:1fr;
  }
.appointmentPopupCard{
    padding:18px;
  }
.cybergTop,
  .cybergContact{
    align-items:flex-start;
    text-align:left;
    flex-direction:column;
  }
.cybergGrid{
    grid-template-columns:1fr;
  }
.cybergInfoRow,
  .cybergSuggestionLine{
    grid-template-columns:1fr;
  }
.internalChatPanel{
    left:12px;
    bottom:82px;
    width:calc(100vw - 24px);
  }
.internalChatBody{
    grid-template-columns:1fr;
  }
.internalChatContacts{
    display:flex;
    overflow:auto;
    border-right:0;
    border-bottom:1px solid #dbe8eb;
  }
.internalChatContacts button{
    min-width:150px;
  }
}
.hidden{display:none!important}
.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.actions button{
  width:auto;
  min-width:110px;
}
.stats{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin:14px 0 16px;
}
.stat{
  padding:15px 16px;
  box-shadow:var(--shadow-soft);
  border:1px solid rgba(153,192,195,.46);
  border-top:4px solid var(--accent);
}
.stat b{
  display:block;
  margin-bottom:3px;
  color:var(--brand);
  font-size:27px;
  line-height:1;
  font-weight:900;
}
.urgentStat{
  background:linear-gradient(135deg,#fff,var(--red-bg));
  border-color:#f2bbb1;
  border-left-color:var(--red);
}
.urgentStat b,
.urgentPanel h2{
  color:var(--red);
}
.stat span{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.tabs,
.mainMenu{
  position:sticky;
  top:0;
  z-index:5;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:6px;
  margin:8px 0 14px;
  padding:6px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(153,192,195,.52);
  border-radius:8px;
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow-soft);
}
.tab{
  width:100%;
  min-height:38px;
  padding:7px 10px;
  background:#f8fbfc;
  color:var(--brand);
  border:1px solid #d6e6e8;
  border-radius:6px;
  font-size:13px;
  font-weight:900;
}
.tab.active{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;
  border-color:transparent;
}
.menuTab{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.menuTab svg{
  width:16px;
  height:16px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
section.panel{display:none}
section.panel.active{display:block}
.urgentPanel{
  margin:14px 0 16px;
}
.urgentPanel .panelHeader{
  margin-bottom:10px;
  padding:14px 16px;
  background:linear-gradient(135deg,#fff,var(--red-bg));
  border:1px solid #f0bbb4;
  border-left:5px solid var(--red);
  border-radius:8px;
}
.panelHeader{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin:4px 0 12px;
}
.panelHeader h2{
  margin:0;
  color:var(--brand);
  font-size:19px;
  font-weight:900;
  letter-spacing:0;
}
.panelHeader p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}
.panelControl{
  min-width:260px;
}
.planningControls{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.weekNav{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:42px;
}
.weekLabel{
  min-width:190px;
  padding:9px 12px;
  border:1px solid #d6e6e8;
  border-radius:8px;
  background:#fff;
  color:var(--brand);
  font-size:12px;
  font-weight:900;
  text-align:center;
}
.todayBtn{
  width:auto;
  min-height:36px;
  padding:8px 11px;
  font-size:12px;
}
.todayBtn.active{
  color:#fff;
  border-color:#00528f;
  background:#00528f;
}
.panelControl label{
  margin-bottom:6px;
}
.panelHeader.compact{
  margin:0 0 10px;
}
.homeClean{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:14px;
  align-items:stretch;
}
.homeIntro,
.homePlacement,
.homeAction{
  padding:18px;
  border:1px solid rgba(153,192,195,.52);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow-soft);
}
.homeIntro{
  background:linear-gradient(135deg,#fff,#eef8f6);
}
.homeIntro h2{
  margin:0;
  color:var(--brand);
  font-size:30px;
  font-weight:900;
}
.homeIntro p,
.homePlacement p,
.homeNext p{
  margin:6px 0 0;
  color:var(--muted);
  font-weight:650;
}
.homePlacement{
  display:grid;
  gap:10px;
}
.homeSearchRow{
  display:grid;
  grid-template-columns:minmax(0,1fr) 110px;
  gap:8px;
}
.homeSearchRow button{
  min-width:0;
}
.addressAutocomplete{
  position:relative;
  min-width:0;
}
.addressAutocomplete input{
  width:100%;
}
.addressSuggest{
  position:absolute;
  top:calc(100% + 7px);
  left:0;
  right:0;
  z-index:75;
  display:grid;
  gap:6px;
  padding:8px;
  border:1px solid rgba(153,192,195,.72);
  border-radius:8px;
  background:#fff;
  box-shadow:0 20px 42px rgba(28,54,97,.18);
}
.addressSuggest.hidden{
  display:none;
}
.addressSuggest button{
  min-height:auto;
  display:grid;
  gap:3px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:7px;
  background:#f5fbfc;
  color:var(--brand);
  box-shadow:none;
  text-align:left;
}
.addressSuggest button:hover,
.addressSuggest button:focus{
  border-color:#b9dbe3;
  background:#eaf7fa;
  outline:0;
}
.addressSuggest strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:900;
}
.addressSuggest span,
.addressSuggestEmpty{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.addressSuggestEmpty{
  padding:10px 12px;
}
.homeAction{
  min-height:150px;
}
.homeNext h3{
  margin:8px 0 0;
  color:var(--brand);
  font-size:20px;
}
.homeNext button{
  width:auto;
  margin-top:12px;
}
.homeQuickGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  grid-column:1 / -1;
}
.homeQuick{
  min-height:86px;
  padding:14px;
  text-align:left;
  background:#fff;
  color:var(--brand);
}
.homeQuick b,
.homeQuick span{
  display:block;
}
.homeQuick span{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}
.dashboardHero{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:stretch;
  margin:4px 0 14px;
  padding:22px;
  border:1px solid rgba(153,192,195,.52);
  border-radius:8px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,250,245,.94)),
    linear-gradient(90deg,rgba(28,54,97,.08),rgba(153,192,195,.16));
  box-shadow:var(--shadow);
}
.eyebrow{
  display:inline-flex;
  margin-bottom:8px;
  padding:5px 9px;
  border-radius:999px;
  background:#dcecee;
  color:var(--brand);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.dashboardHero h2{
  margin:0;
  color:var(--brand);
  font-size:26px;
  font-weight:900;
}
.dashboardHero p{
  max-width:660px;
  margin:7px 0 0;
  color:var(--muted);
  font-weight:650;
}
.heroMetric{
  min-width:180px;
  display:grid;
  place-items:center;
  padding:16px;
  border-radius:8px;
  background:#fff;
  border:1px solid #cfe2e4;
}
.heroMetric b{
  color:var(--green);
  font-size:42px;
  line-height:1;
  font-weight:900;
}
.heroMetric span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.dashboardGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.dashboardPanel{
  padding:16px;
  box-shadow:var(--shadow-soft);
}
.dashboardList{
  display:grid;
  gap:8px;
}
.dashRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-left:4px solid var(--accent);
  border-radius:8px;
  background:#fff;
}
.dashRow.red{border-left-color:var(--red);background:linear-gradient(135deg,#fff,var(--red-bg))}
.dashRow.orange{border-left-color:var(--orange);background:#fffaf3}
.dashRow.blue{border-left-color:var(--blue);background:var(--blue-bg)}
.dashRow h3{
  margin:0 0 3px;
  color:var(--ink-strong);
  font-size:13px;
  font-weight:900;
}
.dashRow p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}
.dashRow button{
  width:auto;
  min-width:86px;
  min-height:34px;
  padding:7px 10px;
  font-size:12px;
}
.list{display:grid;gap:10px}
.item{
  padding:15px;
  border-left:5px solid #cbd7da;
  box-shadow:none;
}
.item.red{
  border-left-color:var(--red);
  background:linear-gradient(135deg,#fff,#fff7f5);
}
.item.orange{border-left-color:var(--orange);background:#fffaf3}
.item.green{border-left-color:var(--green);background:#f4fbf7}
.item.blue{border-left-color:var(--blue);background:var(--blue-bg)}
.item.purple{border-left-color:var(--purple);background:var(--purple-bg)}
.itemTop{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.itemTop > div{
  flex:1;
  min-width:0;
}
.item h3{
  margin:0 0 7px;
  color:var(--ink-strong);
  font-size:16px;
  font-weight:900;
}
.item p{
  margin:4px 0;
  color:#304657;
  font-size:13px;
  line-height:1.45;
}
.badge{
  display:inline-flex;
  gap:6px;
  align-items:center;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.b-red{background:linear-gradient(135deg,#fde8e4,#ffe9df);color:var(--red)}
.b-orange{background:#fee9cf;color:var(--orange)}
.b-green{background:#dff4ea;color:var(--green)}
.b-blue{background:#dcecee;color:var(--blue)}
.b-purple{background:#efe7df;color:var(--warm)}
.b-gray{background:#eef2f2;color:#53636d}
.badge.statusConfirmed{background:#e5ffe9;color:#0f6b4b}
.badge.statusToConfirm{background:#ffe7c2;color:#7a3a00}
.badge.statusToModify{background:#12355b;color:#fff}
.badge.statusToReposition{background:#daf2ff;color:#064a78}
.badge.statusProposed{background:#fff4b0;color:#775a00}
.badge.statusDone{background:#d9fbe8;color:#1f7a3a}
.badge.statusCanAdvance{background:linear-gradient(135deg,#dcfce7,#ffd7e5);color:#0f5132;border:1px solid #f3a5c4}
.badge.decisionAccepted{background:#eefcc5;color:#3f6212}
.badge.decisionLocked{background:#dff4ea;color:#075985}
.badge.decisionToCall{background:#fff0d6;color:#0f6b4b}
.meta{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:9px;
}
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow);
}
th,
td{
  padding:11px 12px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  text-align:left;
  vertical-align:top;
}
th{
  background:var(--brand);
  color:#fff;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
tr:nth-child(even) td{background:#fbfdfd}
tr:last-child td{border-bottom:0}
.empty{
  padding:28px;
  text-align:center;
  color:var(--muted);
  box-shadow:none;
}
.notice{
  margin-bottom:14px;
  padding:13px 14px;
  background:#fff8e8;
  border:1px solid #efd39b;
  border-radius:8px;
  color:#815b1c;
  font-size:13px;
}
.advanced{
  margin-top:12px;
  padding:14px;
  border-top:4px solid var(--accent);
}
.advancedGrid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.advancedActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.advancedActions button{
  width:auto;
  min-height:36px;
  padding:8px 11px;
  font-size:12px;
}
.small{
  color:var(--muted);
  font-size:12px;
}
.timelineGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.timelineBox{padding:15px}
.timelineBox h3{
  margin:0 0 10px;
  color:var(--brand);
  font-size:15px;
  font-weight:900;
}
.timeline{
  display:grid;
  gap:9px;
  margin-left:12px;
  padding-left:14px;
  border-left:3px solid var(--accent);
}
.tl{
  position:relative;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
}
.tl:before{
  content:"";
  position:absolute;
  left:-21px;
  top:16px;
  width:10px;
  height:10px;
  background:var(--brand);
  border:2px solid var(--bg);
  border-radius:50%;
}
.tl.travel{background:#f6f9f9;color:#53636d}
.tl.proposed{background:var(--blue-bg);border-color:var(--accent)}
.tl.pause{background:#fff8e8;border-color:#efd39b}
.tl.return{background:#f7f2ed;border-color:#dfd2c5}
.tlTime{
  margin-bottom:3px;
  color:var(--brand);
  font-size:12px;
  font-weight:900;
}
.tlTitle{
  font-size:14px;
  font-weight:900;
}
.tlSub{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
}
.verdict{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:8px;
  font-weight:900;
}
.verdict.ok{background:var(--green-bg);color:var(--green);border:1px solid #b7e7d1}
.verdict.warn{background:var(--orange-bg);color:var(--orange);border:1px solid #f2c18c}
.verdict.bad{background:var(--red-bg);color:var(--red);border:1px solid #efb0a8}
.miniBtn{
  width:auto;
  min-height:34px;
  margin-top:8px;
  padding:7px 10px;
  border-radius:6px;
  font-size:12px;
}
.decisionRow{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:10px;
}
.decisionRow .miniBtn{
  margin-top:0;
}
.ghostMini{
  background:#fff;
  color:#6b3f35;
  border-color:#e3c9c2;
}
.smartCard{
  padding:15px;
  border-left:5px solid var(--orange);
  box-shadow:none;
}
.smartCard.red{
  border-left-color:var(--red);
  background:linear-gradient(135deg,#fff,var(--red-bg));
}
.smartCard.green{border-left-color:var(--green)}
.smartHeader{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}
.smartTitle h3{
  margin:0 0 5px;
  color:var(--brand);
  font-size:16px;
  font-weight:900;
}
.smartTitle p{
  margin:0;
  color:#455b6a;
  font-size:13px;
}
.clientLine{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.clientLine h3{
  margin:0;
}
.clientMeta{
  margin-top:7px!important;
  color:var(--ink-strong)!important;
  font-weight:850;
}
.callBtn{
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  flex:none;
  border:1px solid #b7e7d1;
  border-radius:50%;
  background:linear-gradient(135deg,#effaf5,#d8f5e7);
  color:var(--green);
  text-decoration:none;
  box-shadow:0 8px 16px rgba(15,107,75,.12);
}
.callBtn:hover{
  border-color:var(--green);
  transform:translateY(-1px);
}
.callBtn svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.callBtn.smallCall{
  width:27px;
  height:27px;
  box-shadow:none;
}
.callBtn.smallCall svg{
  width:14px;
  height:14px;
}
.whatsappBtn{
  width:32px;
  height:32px;
  min-width:32px;
  max-width:32px;
  min-height:32px;
  max-height:32px;
  aspect-ratio:1 / 1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  appearance:none;
  flex:0 0 32px;
  padding:0;
  border:1px solid #17b95f;
  border-radius:999px;
  background:#25d366;
  color:#fff;
  font-size:0;
  line-height:1;
  overflow:hidden;
  box-sizing:border-box;
  box-shadow:0 8px 18px rgba(37,211,102,.22);
}
.whatsappBtn:hover{
  border-color:#128c4a;
  background:#1fbd5a;
  transform:translateY(-1px);
}
.whatsappBtn img,
.whatsappBtn svg{
  width:18px;
  height:18px;
  min-width:18px;
  max-width:18px;
  min-height:18px;
  max-height:18px;
  flex:0 0 18px;
  display:block;
  fill:currentColor;
  stroke:none;
  pointer-events:none;
}
.whatsappBtn svg path{
  fill:currentColor;
  stroke:none;
}
.miniWhatsapp{
  width:30px;
  height:30px;
  min-width:30px;
  max-width:30px;
  min-height:30px;
  max-height:30px;
  flex-basis:30px;
  margin-top:0;
}
.shiftNotice{
  margin:0;
  padding:8px 10px;
  border:1px solid #f2c18c;
  border-radius:8px;
  background:#fff8ed;
  color:#8a4a06;
  font-size:12px;
  font-weight:800;
  line-height:1.35;
}
.shiftNotice b{
  color:#6f3a00;
}
.optionActions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}
.optionGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:12px;
}
.advanceDecision{
  display:grid;
  grid-template-columns:minmax(240px,.72fr) minmax(0,1.5fr);
  gap:12px;
  margin-top:13px;
}
.moveFlow{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin-top:12px;
  padding:10px 12px;
  border:1px solid #cfe4e7;
  border-radius:8px;
  background:#f7fbfc;
  color:var(--brand);
  font-size:12px;
  font-weight:800;
}
.moveFlow b{
  display:block;
  margin-bottom:3px;
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase;
}
.moveArrow{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--brand);
  color:#fff;
  font-size:18px;
  font-weight:900;
}
.currentBox{
  padding:14px;
  border:1px solid #d7e8eb;
  border-radius:8px;
  background:linear-gradient(180deg,#fff,#f7fbfc);
}
.boxLabel{
  display:inline-flex;
  margin-bottom:10px;
  padding:5px 9px;
  border-radius:999px;
  background:#e9f4f5;
  color:var(--brand);
  font-size:11px;
  font-weight:900;
}
.currentBox b{
  display:block;
  color:var(--brand);
  font-size:16px;
}
.currentBox span:not(.boxLabel){
  display:block;
  margin-top:4px;
  color:var(--green);
  font-size:18px;
  font-weight:900;
}
.currentBox p{
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.choiceGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.option{
  padding:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
}
.option.best{border-color:#a8dbc7;background:linear-gradient(180deg,#fff,#f1fbf6)}
.option.fast{border-color:#fdba74;background:linear-gradient(180deg,#fff,#fff7ed)}
.option.free{border-color:#fde047;background:linear-gradient(180deg,#fff,#fefce8)}
.option.disabled{opacity:.62;background:#f4f6f7}
.option h4{
  margin:0 0 6px;
  color:var(--brand);
  font-size:13px;
  font-weight:900;
}
.targetPlanning{
  margin-bottom:7px;
  padding:6px 8px;
  border-radius:7px;
  background:#eef7f8;
  color:var(--brand);
  font-size:11px;
  font-weight:900;
}
.option p{
  margin:4px 0;
  color:#455b6a;
  font-size:12px;
  line-height:1.35;
}
.newRdvGrid{
  display:grid;
  grid-template-columns:minmax(320px,.78fr) minmax(0,1.22fr);
  gap:16px;
  align-items:start;
}
.newRdvForm{
  display:grid;
  gap:14px;
  padding:18px;
  position:sticky;
  top:84px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(241,251,248,.95)),
    radial-gradient(circle at top right,rgba(71,189,28,.12),transparent 34%);
  box-shadow:var(--shadow-soft);
}
.newRdvForm label{
  display:grid;
  gap:7px;
  color:var(--brand);
  font-weight:800;
  text-transform:uppercase;
  font-size:12px;
}
.newRdvForm input,
.newRdvForm select{
  min-height:48px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 12px;
  background:#fff;
  color:var(--brand);
  font:inherit;
  font-weight:700;
  text-transform:none;
}
.newRdvFields{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.newRdvResult{
  min-width:0;
}
.placementLoading{
  display:grid;
  gap:8px;
  min-height:150px;
  place-content:center;
  text-align:center;
  color:var(--brand);
}
.placementLoading span{
  color:var(--muted);
  font-weight:700;
}
.placementResult{
  display:grid;
  gap:14px;
}
.placementResult.warning{
  border-color:#fecaca;
  background:linear-gradient(135deg,#fff,#fff5f5);
  padding:18px;
}
.placementSummary{
  display:grid;
  gap:8px;
  padding:16px;
  border-left:5px solid #47bd1c;
  background:linear-gradient(135deg,#fff,#eefbf5);
}
.placementSummary h3,
.placementSummary p{
  margin:0;
}
.placementChoices{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.placementOption{
  display:grid;
  gap:8px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  min-height:238px;
  box-shadow:var(--shadow-soft);
}
.placementOption.best{
  border-color:#8ad9bd;
  background:linear-gradient(180deg,#fff,#effcf5);
}
.placementOption.fast{
  border-color:#fdba74;
  background:linear-gradient(180deg,#fff,#fff7ed);
}
.placementOption.free{
  border-color:#fde047;
  background:linear-gradient(180deg,#fff,#fefce8);
}
.placementOption.disabled{
  opacity:.65;
  background:#f4f6f7;
}
.placementOption h3,
.placementOption p{
  margin:0;
}
.placementOption h3{
  color:var(--brand);
  font-size:15px;
}
.placementOption strong{
  display:block;
  color:#0a7b42;
  font-size:27px;
  line-height:1;
}
.optionTop{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:flex-start;
}
.optionTop span{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 8px;
  border-radius:999px;
  background:#eaf5f2;
  color:#0a6741;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.optionRoute{
  display:grid;
  gap:5px;
  padding:9px;
  border-radius:8px;
  background:rgba(0,82,143,.07);
  color:#31546c;
  font-size:12px;
  font-weight:800;
}
.choiceTime{
  color:var(--green)!important;
  font-size:18px!important;
  font-weight:900;
}
.topActions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.pillBtn{
  width:auto;
  min-height:34px;
  padding:7px 10px;
  background:#fff;
  color:var(--brand);
  border:1px solid #b9cacc;
  border-radius:999px;
  font-size:12px;
}
.pillBtn.active{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}
.agencyToolbar{
  display:flex;
  gap:12px;
  align-items:end;
  justify-content:space-between;
  margin:0 0 14px;
  padding:14px;
  flex-wrap:wrap;
  box-shadow:none;
}
.agencyToolbar .field{
  min-width:280px;
  flex:1;
}
.agencyDot{
  display:inline-block;
  width:10px;
  height:10px;
  margin-right:6px;
  border-radius:50%;
  vertical-align:-1px;
}
.agencyBadge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 9px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}
.agencyStripe{
  height:4px;
  margin:-1px 0 12px;
  border-radius:999px;
}
.cityList{
  display:grid;
  gap:5px;
  margin-top:4px;
}
.cityLine{
  display:flex;
  align-items:center;
  gap:7px;
  color:#53636d;
  font-size:12px;
}
.cityLine:before{
  content:"";
  width:7px;
  height:7px;
  flex:none;
  border-radius:50%;
  background:var(--accent-strong);
}
.orderGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px;
}
.orderBox{
  padding:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
}
.orderBox h4{
  margin:0 0 8px;
  color:var(--brand);
  font-size:13px;
  font-weight:900;
}
.orderList{
  display:grid;
  gap:7px;
}
.orderStep{
  display:grid;
  grid-template-columns:26px 62px minmax(0,1fr);
  gap:8px;
  align-items:center;
  min-height:58px;
  padding:9px;
  background:var(--surface-soft);
  border:1px solid #e3eaec;
  border-radius:8px;
  color:#304657;
  font-size:13px;
}
.orderNum{
  min-width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--blue-bg);
  color:var(--brand);
  border-radius:50%;
  font-size:12px;
  font-weight:900;
}
.orderTime{
  color:var(--brand);
  font-size:13px;
  font-weight:900;
}
.orderInfo{
  min-width:0;
}
.orderClient{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--ink-strong);
  font-weight:900;
}
.orderMeta{
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.orderHints{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-top:6px;
}
.orderHint{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 7px;
  border:1px solid #dbe5e7;
  border-radius:999px;
  background:#fff;
  color:#53636d;
  font-size:11px;
  font-weight:850;
}
.orderHint.statusConfirmed{background:#dff8e7;color:#0f6b4b;border-color:#9be7ba}
.orderHint.statusToConfirm{background:#fff0d6;color:#9a4f00;border-color:#fdba74}
.orderHint.statusToModify{background:#dbeafe;color:#123f73;border-color:#93c5fd}
.orderHint.statusToReposition{background:#e0f2fe;color:#075985;border-color:#7dd3fc}
.orderHint.statusProposed{background:#fff4b0;color:#775a00;border-color:#e8be25}
.orderHint.statusDone{background:#1f7a3a;color:#fff;border-color:#145c2a}
.orderWarn{
  color:var(--red);
  border-color:#f2bbb1;
  background:var(--red-bg);
}
.gainBadge{
  padding:5px 9px;
  background:var(--green-bg);
  color:var(--green);
  border:1px solid #b7e7d1;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}
.planningShell{
  overflow-x:auto;
  padding:10px;
  border:1px solid #cfe0e5;
  border-radius:10px;
  background:#fff;
  box-shadow:var(--shadow);
}
.planningHint{
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.planningDayPicker{
  display:grid;
  grid-template-columns:repeat(7,minmax(110px,1fr));
  gap:8px;
  min-width:820px;
}
.dayPick{
  min-height:54px;
  padding:8px 10px;
  color:#00528f;
  background:#fff;
  border:1px solid #d7e3ec;
  border-radius:8px;
  box-shadow:var(--shadow-soft);
  text-align:left;
}
.dayPick b,
.dayPick span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dayPick b{
  font-size:12px;
  text-transform:capitalize;
}
.dayPick span{
  margin-top:3px;
  color:#616580;
  font-size:11px;
}
.dayPick.active{
  color:#fff;
  border-color:#00528f;
  background:#00528f;
}
.dayPick.active span{
  color:#e7f4ff;
}
.dayPick.weekend{
  border-color:#ecd7ce;
  background:#fff8f5;
}
.dayPick.weekend.active{
  background:#8d2a1d;
  border-color:#8d2a1d;
}
.planningWeek{
  min-width:1180px;
  display:grid;
  grid-template-columns:68px repeat(7, minmax(148px,1fr));
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:none;
}
.timeHead,
.dayHead{
  position:sticky;
  top:0;
  z-index:4;
  min-height:48px;
  padding:10px 8px;
  border-bottom:1px solid var(--line);
  background:#f7fbfc;
  color:var(--brand);
  font-weight:900;
}
.dayHead span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.timeCol{
  display:grid;
  grid-template-rows:repeat(10, 52px);
  border-right:1px solid var(--line);
}
.timeTick{
  padding:6px 8px;
  border-bottom:1px dashed #c9d7dc;
  color:#5d6f80;
  font-size:11px;
  font-weight:800;
}
.dayCol{
  position:relative;
  min-height:520px;
  border-right:1px solid var(--line);
  background:repeating-linear-gradient(
    to bottom,
    #fff 0,
    #fff 25px,
    #eef5f7 26px,
    #fff 52px
  );
}
.dayCol:last-child{border-right:0}
.dayHead.weekend,
.dayCol.weekend{
  background:#f8f5f2;
}
.dayCol.weekend{
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.74) 0,
      rgba(255,255,255,.74) 25px,
      rgba(224,213,203,.45) 26px,
      rgba(255,255,255,.74) 52px
    ),
    #f8f5f2;
}
.planEvent{
  position:absolute;
  left:5px;
  right:5px;
  min-height:44px;
  display:block;
  padding:6px 7px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.72);
  border-radius:6px;
  background:linear-gradient(135deg,#bdf3c8,#ecfff1);
  color:#0f5132;
  box-shadow:0 5px 12px rgba(28,54,97,.15);
  text-decoration:none;
  cursor:pointer;
}
.planEvent.agence{
  background:linear-gradient(135deg,#d8f8df,#effdf3);
  color:#0f5132;
}
.planEvent.statusConfirmed{
  background:#9be7a2;
  color:#0f5132;
}
.planEvent.statusToConfirm{
  background:#ffb347;
  color:#7a3a00;
}
.planEvent.statusToModify{
  background:#12355b;
  color:#fff;
}
.planEvent.statusToReposition{
  background:#8fd3ff;
  color:#064a78;
}
.planEvent.statusProposed{
  background:#ffd84d;
  color:#5f4700;
}
.planEvent.statusDone{
  background:#1f7a3a;
  color:#fff;
}
.planEvent.decisionAccepted{
  background:linear-gradient(135deg,#bbf7d0,#fff7b8);
  color:#155724;
}
.planEvent.decisionLocked{
  background:linear-gradient(135deg,#9be7a2,#3b1d62);
  color:#fff;
}
.planEvent.decisionToCall{
  background:linear-gradient(135deg,#36c274,#ffb14a);
  color:#12351f;
}
.planEvent.advance{
  background:linear-gradient(135deg,#9be7a2,#ffc0d9);
  color:#12351f;
  box-shadow:0 0 0 2px rgba(255,177,74,.18),0 0 24px rgba(54,194,116,.34);
}
.planEvent.statusToConfirm.advance{
  background:linear-gradient(135deg,#ffb347,#ffc0d9);
}
.planEvent.review{
  background:linear-gradient(135deg,#1c3661,#5fa8ad);
}
.planEvent:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(28,54,97,.24);
}
.planEvent strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  font-weight:900;
}
.planEvent span{
  display:block;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:9.5px;
  font-weight:750;
  opacity:.94;
}
.planEvent .routeHint{
  margin-top:4px;
  display:inline-block;
  width:auto;
  max-width:100%;
  padding:2px 6px;
  color:#00528f;
  background:rgba(255,255,255,.72);
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  opacity:1;
}
.planEvent .statusText{
  font-size:9px;
  font-weight:900;
  opacity:.84;
}
.historyRow{
  display:grid;
  grid-template-columns:150px minmax(0,1fr) 180px;
  gap:10px;
  align-items:start;
  padding:13px;
  border-left:5px solid var(--accent-strong);
}
.aiReasoning{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-top:12px;
}
.reasonBox{
  min-height:86px;
  padding:10px;
  border:1px solid #dbe8eb;
  border-radius:8px;
  background:#fff;
}
.reasonBox h4{
  margin:0 0 5px;
  color:var(--brand);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.reasonBox p{
  margin:0;
  color:#455b6a;
  font-size:12px;
  line-height:1.35;
}
.reasonBox.good{border-color:#b7e7d1;background:#f4fbf7}
.reasonBox.warn{border-color:#f2c18c;background:#fffaf3}
.reasonBox.bad{border-color:#efb0a8;background:#fff7f5}
.appointmentSheet{
  display:grid;
  gap:12px;
}
.clientOverview{
  display:grid;
  grid-template-columns:minmax(220px,.7fr) minmax(0,1fr);
  gap:12px;
}
.historyRow h3{
  margin:0 0 4px;
  color:var(--ink-strong);
  font-size:14px;
  font-weight:900;
}
.historyRow p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}
.progressWrap{
  display:none !important;
  margin:14px 0 0;
  padding:14px 16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow);
}
.progressTop{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  color:#304657;
  font-size:13px;
  font-weight:900;
}
.progressBar{
  height:10px;
  overflow:hidden;
  background:#e3eaec;
  border-radius:999px;
}
.progressFill{
  height:100%;
  width:0%;
  background:var(--accent-strong);
  border-radius:999px;
  transition:width .2s ease;
}
.progressNote{
  display:none !important;
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}
.progressDetails{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.metricLine{
  min-width:0;
  padding:9px 10px;
  background:#f5fafb;
  border:1px solid rgba(153,192,195,.46);
  border-radius:8px;
}
.metricLine span,
.metricLine b{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.metricLine span{
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
.metricLine b{
  margin-top:2px;
  color:var(--brand);
  font-size:12px;
}
.weekOptimization{
  display:grid;
  gap:14px;
}
.weekOptSummary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
  padding:16px 18px;
  border:1px solid #d7e3ec;
  border-radius:12px;
  background:linear-gradient(135deg,#ffffff,#f5fbff);
  box-shadow:var(--shadow-soft);
}
.weekOptSummary h3{
  margin:0 0 8px;
  color:#00528f;
  font-size:20px;
  font-weight:900;
}
.weekOptSummary p{
  margin:0;
  color:#616580;
  font-weight:700;
}
.weekOptStats{
  min-width:110px;
  padding:10px 12px;
  border:1px solid #b9ebca;
  border-radius:12px;
  background:#effaf5;
  text-align:center;
}
.weekOptStats b{
  display:block;
  color:#0f6b4b;
  font-size:24px;
  line-height:1;
  font-weight:900;
}
.weekOptStats span{
  color:#0f6b4b;
  font-size:11px;
  font-weight:900;
}
.weekOptMoves{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.weekOptMoves span{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border:1px solid #d7e3ec;
  border-radius:999px;
  background:#fff;
  color:#24445b;
  font-size:11px;
  font-weight:900;
}
.weekOptCompare{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
.proposedWeekShell{
  border-color:#b7e5c4;
  background:#fff;
}
.planningLegend{
  position:sticky;
  left:10px;
  bottom:10px;
  z-index:12;
  width:max-content;
  margin:10px 0 0 10px;
  color:#24445b;
  font-size:11px;
  font-weight:900;
}
.planningLegend summary{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 13px;
  border:1px solid #d7e3ec;
  border-radius:999px;
  background:#fff;
  box-shadow:var(--shadow-soft);
  cursor:pointer;
  list-style:none;
}
.planningLegend summary::-webkit-details-marker{
  display:none;
}
.planningLegend summary::before{
  content:"";
  width:14px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg,#9be7a2,#ffb347,#8fd3ff);
}
.planningLegendItems{
  position:absolute;
  left:0;
  bottom:calc(100% + 8px);
  display:grid;
  grid-template-columns:repeat(2,max-content);
  gap:8px 14px;
  padding:12px;
  border:1px solid #d7e3ec;
  border-radius:12px;
  background:#fff;
  box-shadow:0 18px 36px rgba(10,49,76,.16);
}
.planningLegend:not([open]) .planningLegendItems{
  display:none;
}
.planningLegend span{
  display:inline-flex;
  gap:6px;
  align-items:center;
  white-space:nowrap;
}
.legendDot{
  width:16px;
  height:10px;
  border:1px solid transparent;
  border-radius:999px;
}
.legendDot.confirmed{background:#9be7a2;border-color:#7ed98a}
.legendDot.toConfirm{background:#ffb347;border-color:#ee9d32}
.legendDot.toModify{background:#12355b;border-color:#12355b}
.legendDot.toReposition{background:#8fd3ff;border-color:#66c4f5}
.legendDot.proposed{background:#ffd84d;border-color:#e8be25}
.legendDot.done{background:#1f7a3a;border-color:#145c2a}
.legendDot.advance{background:linear-gradient(135deg,#9be7a2,#ffc0d9);border-color:#ff9fc6}
.legendDot.accepted{background:linear-gradient(135deg,#d9fbe8,#fff59d);border-color:#cfe85c}
.legendDot.locked{background:linear-gradient(135deg,#9be7a2,#3b1d62);border-color:#3b1d62}
.legendDot.move{background:linear-gradient(135deg,#6d28d9,#126daf);border-color:#4f46e5}
.legendDot.travel{background:#dae6f1;border-color:#9fb7c9}
.legendDot.pause{background:#fff;border-color:#f6d77d}
.dossierPanelHeader{
  align-items:center;
}
.readonlyPill{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:8px 12px;
  border:1px solid #bfe7d2;
  border-radius:999px;
  background:#effaf5;
  color:#0f6b4b;
  font-size:12px;
  font-weight:900;
}
.dossierToolbar{
  display:grid;
  grid-template-columns:minmax(260px,2fr) repeat(4,minmax(150px,1fr));
  gap:12px;
  margin-bottom:14px;
  padding:14px;
}
.dossierToolbar label{
  display:grid;
  gap:6px;
  margin:0;
}
.dossierToolbar span{
  color:#00528f;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.dossierToolbar input,
.dossierToolbar select{
  min-height:42px;
}
.dossierList{
  display:grid;
  gap:12px;
}
.dossierCount{
  color:#5c6b80;
  font-size:12px;
  font-weight:800;
}
.dossierCard{
  position:relative;
  display:grid;
  grid-template-columns:8px 1fr;
  overflow:hidden;
  border:1px solid #d6e6ec;
  border-radius:8px;
  background:#fff;
  box-shadow:0 10px 22px rgba(28,54,97,.06);
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.dossierCard:hover{
  transform:translateY(-1px);
  border-color:#99c0c3;
  box-shadow:0 16px 30px rgba(28,54,97,.1);
}
.dossierCardStripe{
  background:linear-gradient(180deg,#47bd1c,#00528f);
}
.dossierCardMain{
  display:grid;
  gap:12px;
  padding:14px 16px;
}
.dossierCardTop{
  display:flex;
  justify-content:space-between;
  gap:14px;
}
.dossierCard h3{
  margin:8px 0 4px;
  color:#12355b;
  font-size:18px;
  font-weight:900;
}
.dossierCard p{
  margin:0;
  color:#5b6b7f;
  font-size:12px;
  font-weight:700;
}
.dossierBadges,
.dossierQuickActions{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.dossierQuickActions{
  justify-content:flex-end;
  min-width:112px;
}
.dossierBadge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 9px;
  border-radius:999px;
  background:#eef6f7;
  color:#12355b;
  font-size:11px;
  font-weight:900;
}
.dossierBadge.statusConfirmed,
.dossierBadge-confirme,
.dossierBadge-complete,
.dossierBadge-completee,
.dossierBadge-complt{
  background:#e6f8ea;
  color:#1f7a3a;
}
.dossierBadge.statusToConfirm,
.dossierBadge-brouillon{
  background:#fff1dc;
  color:#9a4d00;
}
.dossierBadge.statusToModify{
  background:#e8f0f9;
  color:#12355b;
}
.dossierType{
  background:#eaf4ff;
  color:#00528f;
}
.dossierCardGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.dossierCardGrid > div{
  min-width:0;
  padding:10px;
  border:1px solid #e0ecf1;
  border-radius:8px;
  background:#f8fbfc;
}
.dossierCardGrid span{
  display:block;
  color:#6f7f91;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
.dossierCardGrid b{
  display:block;
  overflow:hidden;
  color:#12355b;
  font-size:13px;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dossierCardGrid small{
  display:block;
  overflow:hidden;
  color:#637486;
  font-size:11px;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dossierReminder{
  padding:9px 10px;
  border:1px solid #ffd89a;
  border-radius:8px;
  background:#fff8ed;
  color:#7a4300;
  font-size:12px;
  font-weight:800;
}
.dossierPopup{
  display:grid;
  gap:16px;
}
.dossierPopupHeader{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:16px;
  border-radius:8px;
  background:#eaf4ff;
}
.dossierPopupHeader h3{
  margin:10px 0 4px;
  color:#00528f;
  font-size:23px;
  font-weight:900;
}
.dossierPopupHeader p{
  margin:0;
  color:#50617a;
  font-weight:800;
}
.dossierDetailGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.dossierDetailGrid section{
  min-width:0;
  padding:14px;
  border:1px solid #d7e7ed;
  border-radius:8px;
  background:#fff;
}
.dossierDetailGrid h4{
  margin:0 0 9px;
  color:#00528f;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.dossierDetailGrid p{
  margin:5px 0;
  color:#43566f;
  font-size:13px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

@media(max-width:980px){
.commandBar{grid-template-columns:1fr}
.progressDetails{grid-template-columns:1fr 1fr}
.actions button{flex:1}
.stats{grid-template-columns:repeat(2,1fr)}
.tabs,
  .mainMenu{grid-template-columns:1fr 1fr}
.dashboardGrid{grid-template-columns:1fr}
.dashboardHero{display:block}
.heroMetric{margin-top:14px}
.advancedGrid{grid-template-columns:1fr 1fr}
.timelineGrid,
  .homeClean,
  .optionGrid,
  .choiceGrid,
  .placementChoices,
  .newRdvGrid,
  .advanceDecision,
  .orderGrid,
  .aiReasoning,
  .clientOverview{grid-template-columns:1fr}
.dossierToolbar,
  .dossierCardGrid,
  .dossierDetailGrid{grid-template-columns:1fr}
.homeQuickGrid{grid-template-columns:1fr}
.moveFlow{grid-template-columns:1fr}
.moveArrow{transform:rotate(90deg)}
.planningControls{justify-content:flex-start}
}

@media(max-width:680px){
.wrap,
  .appLayout{padding:14px}
.progressDetails{grid-template-columns:1fr}
.appHeader{align-items:flex-start}
.brand{align-items:flex-start;flex-direction:column}
.brandLogo{width:210px;max-width:100%}
.version{display:none}
.stats{grid-template-columns:1fr}
.advancedGrid{grid-template-columns:1fr}
.newRdvFields{grid-template-columns:1fr}
.panelHeader{display:block}
.mainMenu{grid-template-columns:1fr}
.smartHeader,
  .itemTop{display:block}
.historyRow{grid-template-columns:1fr}
.orderStep{grid-template-columns:24px minmax(48px,.35fr) minmax(0,1fr)}
.weekNav{width:100%;flex-wrap:wrap}
.weekLabel{flex:1;min-width:170px}
.tabs,
  .mainMenu{position:static}
}
:root{
  --hub-bg:#f3f8fb;
  --hub-glass:rgba(255,255,255,.74);
  --hub-glass-strong:rgba(255,255,255,.88);
  --hub-line:rgba(139,178,190,.34);
  --hub-line-strong:rgba(0,82,143,.18);
  --hub-deep:#0d2d52;
  --hub-blue:#00528f;
  --hub-blue-2:#126daf;
  --hub-cyan:#99c0c3;
  --hub-green:#47bd1c;
  --hub-shadow:0 20px 60px rgba(13,45,82,.12);
  --hub-shadow-soft:0 12px 36px rgba(13,45,82,.08);
}
html{
  min-height:100%;
  background:var(--hub-bg);
}
body{
  min-height:100vh;
  background:
    linear-gradient(135deg,rgba(153,192,195,.34) 0%,rgba(244,248,252,.88) 32%,rgba(255,255,255,.96) 56%,rgba(226,239,242,.78) 100%),
    linear-gradient(180deg,#ffffff 0%,#f2f8fb 100%);
  background-attachment:fixed;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(255,255,255,.72),transparent 18%,transparent 82%,rgba(255,255,255,.64)),
    linear-gradient(180deg,rgba(0,82,143,.06),transparent 280px);
}
.appLayout{
  width:min(100%,1780px);
  max-width:1780px;
  padding:clamp(12px,1.3vw,22px);
}
.loginScreen{
  background:
    linear-gradient(135deg,rgba(0,82,143,.06),rgba(153,192,195,.16)),
    var(--hub-bg);
}
.loginCard{
  gap:14px;
  padding:clamp(24px,4vw,38px);
  border-color:var(--hub-line);
  background:var(--hub-glass-strong);
  backdrop-filter:blur(22px) saturate(145%);
  box-shadow:var(--hub-shadow);
}
.loginLogoImg{
  max-width:350px;
  margin-bottom:14px;
}
.appHeader{
  position:sticky;
  top:10px;
  z-index:90;
  min-height:74px;
  padding:10px 14px;
  border-color:var(--hub-line);
  background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(249,253,253,.72));
  backdrop-filter:blur(22px) saturate(155%);
  box-shadow:var(--hub-shadow-soft);
}
.brand{
  min-width:0;
}
.brandLogo{
  width:clamp(160px,15vw,248px);
  max-width:44vw;
}
.headerActions{
  flex-wrap:wrap;
  justify-content:flex-end;
}
.syncCluster.liveOnly .syncNote{
  min-height:42px;
  border-color:rgba(71,189,28,.24);
  background:rgba(239,250,245,.82);
  backdrop-filter:blur(14px);
  color:#12614b;
}
.version,
.userBadge,
.iconBtn{
  border-color:var(--hub-line);
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(16px);
  box-shadow:0 10px 26px rgba(13,45,82,.08);
}
.userBadge:hover,
.iconBtn:hover,
.version:hover{
  transform:translateY(-1px);
  border-color:rgba(0,82,143,.24);
}
.mainMenu{
  position:sticky;
  top:96px;
  z-index:70;
  display:flex;
  align-items:center;
  gap:8px;
  margin:12px 0 22px;
  padding:8px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  border-color:var(--hub-line);
  background:rgba(255,255,255,.68);
  backdrop-filter:blur(22px) saturate(160%);
  box-shadow:var(--hub-shadow-soft);
}
.mainMenu::-webkit-scrollbar{
  display:none;
}
.menuTab{
  flex:1 0 136px;
  min-height:52px;
  padding:9px 12px;
  border-color:transparent;
  background:rgba(255,255,255,.54);
  color:var(--hub-deep);
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.menuTab:hover{
  transform:translateY(-1px);
  border-color:rgba(0,82,143,.2);
  background:rgba(255,255,255,.86);
  box-shadow:0 12px 24px rgba(13,45,82,.08);
}
.tab.active,
.menuTab.active{
  color:#fff;
  border-color:rgba(255,255,255,.34);
  background:linear-gradient(135deg,var(--hub-blue),var(--hub-blue-2));
  box-shadow:0 14px 30px rgba(0,82,143,.24);
}
section.panel.active{
  animation:hubPanelIn .22s ease both;
}

@keyframes hubPanelIn{
  from{opacity:.72; transform:translateY(6px)}
  to{opacity:1; transform:none}
}
.panelHeader{
  align-items:center;
  margin:0 0 16px;
  padding:18px clamp(16px,2vw,26px);
  border:1px solid var(--hub-line);
  border-radius:8px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.9),rgba(247,252,253,.68)),
    linear-gradient(90deg,rgba(0,82,143,.08),transparent 42%,rgba(153,192,195,.1));
  backdrop-filter:blur(18px) saturate(145%);
  box-shadow:var(--hub-shadow-soft);
}
.panelHeader h2{
  color:var(--hub-blue);
  font-size:clamp(20px,1.45vw,27px);
  line-height:1.05;
}
.panelHeader p{
  max-width:780px;
  color:#607289;
  font-size:13px;
}
.card,
.homeIntro,
.homePlacement,
.homeAction,
.dossierToolbar,
.planningShell,
.appointmentPopupCard,
.internalChatPanel,
.whatsappPhone,
.appointmentContextMenu,
.moveModeBar{
  border-color:var(--hub-line);
  background:var(--hub-glass);
  backdrop-filter:blur(18px) saturate(145%);
  box-shadow:var(--hub-shadow-soft);
}
.card{
  overflow:hidden;
}
.list{
  gap:14px;
}
.homeClean{
  grid-template-columns:minmax(0,1.35fr) minmax(360px,.75fr);
  gap:18px;
}
.homeIntro{
  position:relative;
  min-height:220px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:clamp(22px,3vw,34px);
  overflow:hidden;
  color:#fff;
  background:
    linear-gradient(135deg,rgba(0,82,143,.98),rgba(18,109,175,.9) 48%,rgba(153,192,195,.74)),
    #00528f;
}
.homeIntro::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:42%;
  background:linear-gradient(180deg,transparent,rgba(0,24,48,.18));
  pointer-events:none;
}
.homeIntro > *{
  position:relative;
  z-index:1;
}
.homeIntro .eyebrow{
  color:rgba(255,255,255,.76);
}
.homeIntro h2{
  max-width:680px;
  color:#fff;
  font-size:clamp(34px,4vw,62px);
  line-height:.98;
}
.homeIntro p{
  max-width:640px;
  color:rgba(255,255,255,.82);
  font-size:clamp(14px,1.15vw,17px);
}
.homePlacement,
.homeAction,
.accountCard,
.adminGrid .card,
.newRdvForm,
.newRdvResult .card{
  padding:clamp(16px,1.7vw,24px);
}
.homeSearchRow{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
}
input[type=file],
select,
input[type=number],
input[type=text],
input[type=email],
input[type=password],
textarea{
  border-color:rgba(139,178,190,.46);
  background:rgba(255,255,255,.82);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}
select:focus,
input:focus,
textarea:focus{
  border-color:rgba(0,82,143,.42);
  box-shadow:0 0 0 4px rgba(0,82,143,.08);
}
button,
.secondary,
.secondaryLink{
  border-radius:8px;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
button:hover,
.secondaryLink:hover{
  transform:translateY(-1px);
}
.planningControls,
.weekNav{
  gap:8px;
}
.weekLabel,
.panelControl select{
  min-height:44px;
  border-color:var(--hub-line);
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(12px);
}
.planningBoard{
  min-width:0;
}

.planningShell{
  border-radius:8px;
  background:rgba(255,255,255,.58);
}
.dossierToolbar{
  margin-bottom:14px;
}
.dossierCard{
  border-color:var(--hub-line);
  background:rgba(255,255,255,.76);
  backdrop-filter:blur(16px);
}
.appointmentPopupBackdrop,
.whatsappBackdrop{
  backdrop-filter:blur(7px);
  background:rgba(13,45,82,.26);
}
.appointmentPopupCard{
  padding:0;
}
.appointmentPopupHead{
  padding:20px 22px 16px;
  border-bottom:1px solid var(--hub-line);
  background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(238,248,250,.72));
}
.appointmentPopupContent{
  padding:18px 22px 22px;
}
.chatFab{
  border-color:rgba(255,255,255,.28);
  background:linear-gradient(135deg,var(--hub-blue),var(--hub-blue-2));
  box-shadow:0 18px 40px rgba(0,82,143,.24);
}
.internalChatPanel{
  border-color:rgba(0,82,143,.16);
  background:rgba(255,255,255,.82);
}
.internalChatHead{
  background:linear-gradient(135deg,rgba(0,82,143,.98),rgba(18,109,175,.9));
}
.internalChatComposer{
  background:rgba(245,250,251,.92);
}
.releaseNotes{
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(18px);
}

@media (max-width:1024px){
.appLayout{
    padding:14px;
  }
.appHeader{
    align-items:flex-start;
    flex-wrap:wrap;
  }
.brandLogo{
    width:210px;
    max-width:54vw;
  }
.headerActions{
    margin-left:auto;
  }
.mainMenu{
    top:92px;
  }
.homeClean,
  .newRdvGrid,
  .accountGrid,
  .adminGrid,
  .adminGridWide,
  .dossierToolbar,
  .dossierCardGrid,
  .dossierDetailGrid{
    grid-template-columns:1fr;
  }
.panelHeader{
    display:grid;
    align-items:start;
  }
.planningControls{
    width:100%;
    justify-content:flex-start;
  }
}

@media (max-width:760px){
body{
    padding-bottom:86px;
  }
.appLayout{
    padding:10px 10px 92px;
  }
.appHeader{
    top:0;
    margin:-10px -10px 10px;
    min-height:64px;
    border-radius:0 0 8px 8px;
  }
.brandLogo{
    width:158px;
    max-width:48vw;
  }
.syncCluster.liveOnly{
    display:none;
  }
.userBadge{
    max-width:150px;
    min-height:40px;
    padding:7px 10px;
  }
.version{
    display:none;
  }
.iconBtn{
    width:40px;
    min-width:40px;
    height:40px;
  }
.mainMenu{
    position:fixed;
    left:8px;
    right:8px;
    bottom:8px;
    top:auto;
    z-index:140;
    margin:0;
    padding:8px;
    gap:7px;
    border-radius:8px;
    box-shadow:0 18px 48px rgba(13,45,82,.2);
  }
.menuTab{
    flex:0 0 92px;
    min-width:92px;
    min-height:56px;
    flex-direction:column;
    gap:4px;
    padding:7px 6px;
    font-size:10px;
    line-height:1.1;
  }
.menuTab svg{
    width:17px;
    height:17px;
  }
.panelHeader{
    padding:15px 14px;
  }
.panelHeader h2{
    font-size:24px;
  }
.panelHeader p{
    font-size:12px;
  }
.homeIntro{
    min-height:170px;
  }
.homeIntro h2{
    font-size:34px;
  }
.homeSearchRow,
  .planningControls,
  .weekNav{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
.panelControl{
    min-width:0;
    width:100%;
  }
.weekLabel{
    min-width:0;
  }
.planningShell{
    margin-inline:-10px;
    border-left:0;
    border-right:0;
  }
.appointmentPopupCard{
    width:calc(100vw - 18px);
    max-height:calc(100vh - 30px);
  }
.appointmentPopupHead,
  .appointmentPopupContent{
    padding-left:16px;
    padding-right:16px;
  }
.internalChatPanel{
    left:8px;
    right:8px;
    bottom:86px;
    width:auto;
    height:min(650px,calc(100vh - 112px));
  }
.internalChatBody{
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr;
  }
.internalChatContacts{
    display:flex;
    gap:7px;
    overflow-x:auto;
    max-height:none;
    border-right:0;
    border-bottom:1px solid var(--hub-line);
  }
.internalChatContacts button{
    min-width:160px;
  }
.chatFab{
    left:12px;
    bottom:92px;
    min-width:60px;
    height:54px;
    padding:0 14px;
  }
}

@media (max-width:480px){
.loginScreen{
    padding:14px;
  }
.loginCard{
    padding:22px;
  }
.loginLogoImg{
    max-width:260px;
  }
.headerActions{
    width:100%;
    justify-content:space-between;
  }
.userBadge{
    flex:1;
    justify-content:flex-start;
  }
.homeIntro h2{
    font-size:30px;
  }
.card,
  .homeIntro,
  .homePlacement,
  .homeAction,
  .panelHeader{
    box-shadow:0 10px 28px rgba(13,45,82,.08);
  }
}

@media (prefers-reduced-motion:reduce){
*,
  *::before,
  *::after{
    scroll-behavior:auto!important;
    animation-duration:.001ms!important;
    transition-duration:.001ms!important;
  }
}
:root{
  --hub-page:#eef6f7;
  --hub-panel:rgba(255,255,255,.64);
  --hub-panel-solid:#ffffff;
  --hub-glass-border:rgba(255,255,255,.72);
  --hub-hairline:rgba(0,82,143,.13);
  --hub-ink:#12355b;
  --hub-ink-soft:#5f7187;
  --hub-accent:#99c0c3;
  --hub-accent-soft:rgba(153,192,195,.22);
  --hub-radius:8px;
}
body{
  color:var(--hub-ink);
  background:
    linear-gradient(115deg,rgba(153,192,195,.36),rgba(244,248,252,.94) 28%,rgba(255,255,255,.98) 56%,rgba(227,241,243,.82)),
    var(--hub-page);
}
body::before{
  background:
    linear-gradient(90deg,rgba(255,255,255,.76) 0,transparent 20%,transparent 80%,rgba(255,255,255,.78) 100%),
    repeating-linear-gradient(90deg,rgba(0,82,143,.025) 0 1px,transparent 1px 84px),
    repeating-linear-gradient(180deg,rgba(153,192,195,.035) 0 1px,transparent 1px 84px);
}
.appLayout{
  width:min(100%,1820px);
  max-width:1820px;
  padding:clamp(10px,1.15vw,20px);
}
.loginCard,
.appHeader,
.mainMenu,
.panelHeader,
.card,
.planningShell,
.dossierToolbar,
.dossierCard,
.appointmentPopupCard,
.internalChatPanel,
.whatsappPhone,
.adminMapShell,
.settingsPanel,
.newRdvForm,
.newRdvResult .card{
  -webkit-backdrop-filter:blur(22px) saturate(150%);
  backdrop-filter:blur(22px) saturate(150%);
}
.loginScreen{
  background:
    linear-gradient(125deg,rgba(153,192,195,.26),rgba(255,255,255,.92) 48%,rgba(0,82,143,.06)),
    #f4f8fc;
}
.loginCard{
  width:min(430px,calc(100vw - 28px));
  padding:clamp(24px,4vw,42px);
  border:1px solid var(--hub-glass-border);
  background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(246,252,253,.76));
  box-shadow:0 30px 90px rgba(18,53,91,.16), inset 0 1px 0 rgba(255,255,255,.92);
}
.loginCard label,
.panelControl label,
.dossierToolbar label span,
.newRdvForm label,
.adminGrid label,
.accountCard .eyebrow{
  color:#00528f;
  letter-spacing:.02em;
}
.loginCard input{
  min-height:48px;
  border-radius:8px;
}
.appHeader{
  top:12px;
  display:grid;
  grid-template-columns:minmax(160px,1fr) auto;
  min-height:72px;
  margin-bottom:10px;
  padding:10px 14px;
  border:1px solid var(--hub-glass-border);
  background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(244,251,252,.62));
  box-shadow:0 22px 70px rgba(18,53,91,.12), inset 0 1px 0 rgba(255,255,255,.88);
}
.brandLogo{
  width:clamp(168px,17vw,262px);
  max-width:48vw;
}
.headerActions{
  gap:8px;
}
.syncCluster.liveOnly .syncNote{
  min-height:40px;
  padding:8px 13px;
  border:1px solid rgba(71,189,28,.18);
  background:rgba(241,252,246,.76);
  color:#12614b;
}
.userBadge,
.version,
.iconBtn{
  min-height:40px;
  border:1px solid rgba(255,255,255,.82);
  background:linear-gradient(135deg,rgba(255,255,255,.76),rgba(242,250,251,.58));
  box-shadow:0 12px 28px rgba(18,53,91,.08), inset 0 1px 0 rgba(255,255,255,.9);
}
.iconBtn{
  color:#fff;
  border-color:rgba(0,82,143,.34);
  background:linear-gradient(135deg,#00528f,#126daf);
}
.mainMenu{
  top:98px;
  margin:10px 0 clamp(18px,2vw,28px);
  padding:7px;
  gap:7px;
  border:1px solid var(--hub-glass-border);
  background:linear-gradient(135deg,rgba(255,255,255,.64),rgba(245,251,252,.46));
  box-shadow:0 18px 58px rgba(18,53,91,.1), inset 0 1px 0 rgba(255,255,255,.8);
}
.menuTab{
  flex:1 0 132px;
  min-height:50px;
  border:1px solid transparent;
  background:transparent;
  color:#0d4273;
}
.menuTab svg{
  opacity:.92;
}
.menuTab:hover{
  background:rgba(255,255,255,.64);
}
.menuTab.active{
  background:linear-gradient(135deg,#00528f 0%,#0c6ca8 56%,#2d8eb6 100%);
  box-shadow:0 16px 34px rgba(0,82,143,.24), inset 0 1px 0 rgba(255,255,255,.28);
}
section.panel{
  min-width:0;
}
.panelHeader{
  display:flex;
  align-items:flex-end;
  gap:16px;
  margin:0 0 14px;
  padding:4px 2px 14px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.panelHeader h2{
  font-size:clamp(23px,1.7vw,34px);
  letter-spacing:-.01em;
}
.panelHeader p{
  margin-top:6px;
  color:var(--hub-ink-soft);
}
.card,
.homePlacement,
.homeAction,
.homeQuick,
.dossierToolbar,
.dossierCard,
.adminGrid .card,
.accountCard,
.newRdvForm,
.newRdvResult .card,
.historyItem,
.item{
  border:1px solid rgba(255,255,255,.72);
  border-radius:8px;
  background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(245,251,252,.48));
  box-shadow:0 20px 58px rgba(18,53,91,.09), inset 0 1px 0 rgba(255,255,255,.85);
}
.homeClean{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  grid-template-areas:
    "intro placement"
    "intro action"
    "quick quick";
  gap:16px;
  align-items:stretch;
}
.homeIntro{
  grid-area:intro;
  min-height:340px;
  padding:clamp(24px,3.4vw,48px);
  border:1px solid rgba(255,255,255,.68);
  background:
    linear-gradient(135deg,rgba(0,82,143,.96),rgba(18,109,175,.9) 52%,rgba(153,192,195,.78)),
    #00528f;
  box-shadow:0 30px 90px rgba(0,82,143,.2), inset 0 1px 0 rgba(255,255,255,.26);
}
.homeIntro::before{
  content:"";
  position:absolute;
  inset:18px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:8px;
  pointer-events:none;
}
.homeIntro h2{
  max-width:700px;
  font-size:clamp(38px,4.9vw,76px);
  letter-spacing:0;
}
.homeIntro p{
  max-width:680px;
  color:rgba(255,255,255,.82);
}
.homePlacement{
  grid-area:placement;
}
.homeAction{
  grid-area:action;
}
.homeQuickGrid{
  grid-area:quick;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.homeQuick{
  min-height:116px;
  align-items:flex-start;
  justify-content:space-between;
  padding:17px;
  text-align:left;
}
.homeQuick b{
  color:#00528f;
  font-size:16px;
}
.homeQuick span{
  max-width:28ch;
  color:#607289;
  font-size:12px;
  line-height:1.4;
}
.homeSearchRow{
  grid-template-columns:minmax(0,1fr) minmax(110px,auto);
}
.homeSearchRow button,
.newRdvForm button[type="submit"],
.syncBtn,
.buttonPrimary{
  background:linear-gradient(135deg,#00528f,#126daf);
  box-shadow:0 14px 32px rgba(0,82,143,.18);
}
.dossierToolbar{
  display:grid;
  grid-template-columns:2fr repeat(4,minmax(150px,1fr));
  gap:10px;
  padding:12px;
  background:rgba(255,255,255,.56);
}
.dossierList{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:12px;
}
.dossierCard{
  position:relative;
  min-height:168px;
  transition:transform .18s ease, box-shadow .18s ease;
}
.dossierCard:hover{
  transform:translateY(-2px);
  box-shadow:0 26px 70px rgba(18,53,91,.13);
}
.dossierCardStripe{
  width:5px;
  background:linear-gradient(180deg,#00528f,#47bd1c);
}
.planningShell{
  border:1px solid rgba(255,255,255,.68);
  background:linear-gradient(145deg,rgba(255,255,255,.7),rgba(246,251,252,.5));
  box-shadow:0 24px 70px rgba(18,53,91,.11), inset 0 1px 0 rgba(255,255,255,.86);
}
.planningLegend{
  position:sticky;
  left:0;
  bottom:12px;
  z-index:35;
  width:max-content;
  max-width:min(620px,calc(100vw - 38px));
  margin:12px 0 0;
  border:1px solid rgba(255,255,255,.72);
  background:rgba(255,255,255,.76);
  box-shadow:0 14px 34px rgba(18,53,91,.12);
}
.planningLegend summary{
  min-height:40px;
  padding:9px 14px;
}
.planningLegend[open]{
  width:min(620px,100%);
}
.planningLegendItems{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:8px 12px;
  max-height:190px;
  overflow:auto;
  padding:4px 14px 14px;
}
.appointmentPopupCard{
  width:min(760px,calc(100vw - 28px));
  border:1px solid rgba(255,255,255,.74);
  background:linear-gradient(145deg,rgba(255,255,255,.93),rgba(245,251,252,.8));
  box-shadow:0 34px 110px rgba(18,53,91,.24), inset 0 1px 0 rgba(255,255,255,.92);
}
.appointmentPopupHead{
  padding:18px 20px 15px;
}
.appointmentPopupContent{
  padding:18px 20px 20px;
}
.popupActions,
.choiceActions{
  gap:7px;
}
.popupActions button,
.choiceActions button{
  min-height:38px;
}
.internalChatPanel{
  border:1px solid rgba(255,255,255,.76);
  background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(245,251,252,.72));
  box-shadow:0 30px 90px rgba(18,53,91,.22);
}
.internalChatComposer{
  padding:10px;
  background:rgba(244,250,251,.86);
}
.internalChatComposer textarea{
  min-height:46px;
  border-radius:8px;
  background:rgba(255,255,255,.92);
}
.internalChatComposer button{
  width:46px;
  height:46px;
  min-width:46px;
  border-radius:50%;
}
.accountGrid{
  display:grid;
  grid-template-columns:minmax(0,720px);
  gap:16px;
}
.accountCard{
  min-height:210px;
}
.adminGrid,
.adminGridWide{
  gap:14px;
}
.settingsPanel{
  border-left:1px solid rgba(255,255,255,.78);
  background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(246,252,253,.74));
}

@media (min-width:1200px){
.panelHeader{
    min-height:72px;
  }
.dossierPanelHeader + .dossierToolbar{
    position:sticky;
    top:166px;
    z-index:42;
  }
}

@media (max-width:1180px){
.homeClean{
    grid-template-columns:1fr;
    grid-template-areas:
      "intro"
      "placement"
      "action"
      "quick";
  }
.homeIntro{
    min-height:260px;
  }
.homeQuickGrid,
  .dossierToolbar{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:820px){
.appLayout{
    padding:10px 10px 94px;
  }
.appHeader{
    grid-template-columns:1fr auto;
    top:0;
    margin:-10px -10px 10px;
    border-radius:0 0 8px 8px;
  }
.brandLogo{
    width:168px;
    max-width:52vw;
  }
.headerActions{
    gap:6px;
  }
.userBadge{
    width:42px;
    min-width:42px;
    height:42px;
    padding:0;
    justify-content:center;
    overflow:hidden;
  }
.userBadge span:not(.userIcon){
    display:none;
  }
.mainMenu{
    position:fixed;
    top:auto;
    left:8px;
    right:8px;
    bottom:8px;
    margin:0;
    border-radius:8px;
  }
.menuTab{
    flex:0 0 86px;
    min-width:86px;
    min-height:58px;
    flex-direction:column;
    gap:4px;
    padding:7px 5px;
    font-size:10px;
    line-height:1.12;
  }
.panelHeader{
    display:grid;
    gap:12px;
  }
.planningControls,
  .weekNav{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
.weekLabel,
  .panelControl,
  .panelControl select,
  .todayBtn{
    width:100%;
    min-width:0;
  }
.homeIntro{
    min-height:220px;
  }
.homeIntro h2{
    font-size:38px;
  }
.homeQuickGrid,
  .dossierToolbar,
  .dossierList{
    grid-template-columns:1fr;
  }
.planningShell{
    margin-inline:-10px;
    border-left:0;
    border-right:0;
    border-radius:0;
  }
.planningLegend{
    left:10px;
    max-width:calc(100vw - 28px);
  }
.settingsPanel{
    width:calc(100vw - 20px);
    right:10px;
    bottom:86px;
    max-height:calc(100vh - 110px);
    border-radius:8px;
  }
}

@media (max-width:520px){
.appHeader{
    min-height:62px;
    padding:9px 10px;
  }
.brandLogo{
    width:142px;
  }
.syncCluster.liveOnly,
  .version{
    display:none;
  }
.panelHeader h2{
    font-size:25px;
  }
.homeIntro{
    min-height:190px;
    padding:22px;
  }
.homeIntro h2{
    font-size:32px;
  }
.homeSearchRow,
  .planningControls,
  .weekNav{
    grid-template-columns:1fr;
  }
.card,
  .homePlacement,
  .homeAction,
  .accountCard,
  .adminGrid .card,
  .newRdvForm{
    padding:15px;
  }
.appointmentPopupCard{
    width:calc(100vw - 16px);
  }
.appointmentPopupHead,
  .appointmentPopupContent{
    padding-left:15px;
    padding-right:15px;
  }
.internalChatPanel{
    left:8px;
    right:8px;
    bottom:86px;
    width:auto;
  }
.chatFab{
    left:10px;
    bottom:92px;
    min-width:54px;
    height:52px;
    padding:0 13px;
  }
}
.homeClean{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  grid-template-areas:
    "welcome urgent"
    "placement announcement"
    "instagram instagram";
  gap:14px;
  align-items:stretch;
}
.homeWelcome{
  grid-area:welcome;
  min-height:210px;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:clamp(24px,3.2vw,42px);
  border:1px solid rgba(255,255,255,.72);
  border-radius:8px;
  color:#fff;
  background:
    linear-gradient(135deg,rgba(0,82,143,.98),rgba(18,109,175,.92) 58%,rgba(153,192,195,.82)),
    #00528f;
  box-shadow:0 28px 80px rgba(0,82,143,.2), inset 0 1px 0 rgba(255,255,255,.25);
}
.homeWelcome::before{
  content:"";
  position:absolute;
  inset:16px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:8px;
  pointer-events:none;
}
.homeWelcome .eyebrow{
  position:relative;
  z-index:1;
  color:rgba(255,255,255,.74);
}
.homeWelcome h2{
  position:relative;
  z-index:1;
  margin:8px 0 0;
  color:#fff;
  font-size:clamp(44px,5.4vw,82px);
  line-height:.95;
  letter-spacing:0;
}
.homeUrgent{
  grid-area:urgent;
  min-height:210px;
}
.homePlacement{
  grid-area:placement;
}
.homeAnnouncement{
  grid-area:announcement;
}
.homeInstagram{
  grid-area:instagram;
}
.homeUrgent,
.homePlacement,
.homeAnnouncement,
.homeInstagram{
  padding:clamp(16px,1.7vw,24px);
}
.homeCardTitle{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:15px;
}
.homeCardTitle b{
  display:block;
  color:#00528f;
  font-size:18px;
  line-height:1.05;
}
.homeCardTitle small{
  display:block;
  margin-top:4px;
  color:#66788f;
  font-size:12px;
  font-weight:700;
}
.homeCardIcon{
  width:46px;
  height:46px;
  min-width:46px;
  display:grid;
  place-items:center;
  border:1px solid rgba(0,82,143,.13);
  border-radius:8px;
  background:linear-gradient(135deg,rgba(0,82,143,.1),rgba(153,192,195,.18));
  color:#00528f;
}
.homeCardIcon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.urgentIcon{
  color:#b42318;
  background:linear-gradient(135deg,rgba(245,54,29,.1),rgba(255,179,71,.18));
}
.announcementIcon{
  color:#12614b;
  background:linear-gradient(135deg,rgba(71,189,28,.12),rgba(153,192,195,.16));
}
.instagramIcon{
  color:#d62976;
  background:linear-gradient(135deg,rgba(214,41,118,.11),rgba(255,216,77,.18));
}
.urgentList{
  display:grid;
  gap:9px;
}
.urgentList button,
.urgentEmpty,
.announcementPreview,
.announcementUpload{
  width:100%;
  min-height:58px;
  display:grid;
  align-items:center;
  gap:2px;
  padding:12px 14px;
  border:1px solid rgba(0,82,143,.1);
  border-radius:8px;
  text-align:left;
  background:rgba(255,255,255,.62);
}
.urgentList button{
  grid-template-columns:auto 1fr;
  column-gap:10px;
}
.urgentList button:hover,
.announcementPreview:hover,
.announcementUpload:hover{
  border-color:rgba(0,82,143,.22);
  background:rgba(255,255,255,.9);
  transform:translateY(-1px);
}
.urgentList button span{
  grid-row:1 / span 2;
  align-self:center;
  padding:6px 9px;
  border-radius:999px;
  color:#00528f;
  background:rgba(153,192,195,.22);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
.urgentList button b,
.urgentEmpty b,
.announcementPreview b{
  min-width:0;
  color:#12355b;
  font-size:13px;
  line-height:1.25;
}
.urgentList button small,
.urgentEmpty small,
.announcementPreview small{
  min-width:0;
  color:#67788d;
  font-size:11px;
  line-height:1.35;
}
.announcementBody{
  display:grid;
  gap:10px;
}
.announcementPreview{
  grid-template-columns:auto 1fr;
  text-decoration:none;
}
.announcementPreview span{
  grid-row:1 / span 2;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#fff;
  background:linear-gradient(135deg,#f5361d,#b42318);
  font-size:12px;
  font-weight:950;
}
.announcementUpload{
  cursor:pointer;
  text-align:center;
  color:#00528f;
  font-weight:900;
}
.announcementUpload input{
  display:none;
}
.homeAnnouncement.isUploading{
  opacity:.72;
  pointer-events:none;
}
.announcementEmpty{
  min-height:86px;
  display:grid;
  place-items:center;
  border:1px dashed rgba(0,82,143,.16);
  border-radius:8px;
  color:#66788f;
  background:rgba(255,255,255,.42);
  font-weight:800;
}
.instagramFrame{
  position:relative;
  min-height:440px;
  overflow:hidden;
  border:1px solid rgba(0,82,143,.1);
  border-radius:8px;
  background:linear-gradient(135deg,rgba(255,255,255,.8),rgba(245,251,252,.62));
}
.instagramFrame iframe{
  width:100%;
  height:440px;
  display:block;
  border:0;
  background:#fff;
}
.instagramFallback{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.74);
  border-radius:8px;
  background:rgba(255,255,255,.88);
  box-shadow:0 12px 28px rgba(18,53,91,.1);
}
.instagramFallback b{
  color:#12355b;
  font-size:12px;
}
.instagramFallback a{
  flex:none;
  padding:8px 11px;
  border-radius:8px;
  color:#fff;
  background:linear-gradient(135deg,#00528f,#126daf);
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}

@media (max-width:980px){
.homeClean{
    grid-template-columns:1fr;
    grid-template-areas:
      "welcome"
      "urgent"
      "placement"
      "announcement"
      "instagram";
  }
.homeWelcome,
  .homeUrgent{
    min-height:180px;
  }
}

@media (max-width:560px){
.homeWelcome{
    min-height:150px;
    padding:22px;
  }
.homeWelcome h2{
    font-size:38px;
  }
.homeCardTitle b{
    font-size:16px;
  }
.urgentList button{
    grid-template-columns:1fr;
  }
.urgentList button span{
    grid-row:auto;
    width:max-content;
  }
.instagramFrame,
  .instagramFrame iframe{
    height:360px;
    min-height:360px;
  }
.instagramFallback{
    align-items:flex-start;
    flex-direction:column;
  }
}
:root{
  --hub-shell:1880px;
  --hub-card:rgba(255,255,255,.78);
  --hub-stroke:rgba(127,170,184,.34);
}
body{
  background:
    linear-gradient(180deg,rgba(255,255,255,.94) 0,rgba(239,248,249,.82) 310px,rgba(244,247,252,.96) 100%),
    #f4f7fc;
}
.appLayout{
  width:100%;
  max-width:var(--hub-shell);
  padding:10px clamp(10px,1.1vw,18px) 26px;
}
.appHeader{
  min-height:68px;
  position:sticky;
  top:8px;
  z-index:70;
  display:flex;
  align-items:center;
  padding:8px 12px;
  border-radius:10px;
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(244,250,251,.68));
  box-shadow:0 16px 42px rgba(18,53,91,.1);
}
.brandLogo{
  width:clamp(166px,14vw,226px);
  max-width:34vw;
}
.headerActions{
  margin-left:auto;
}
.syncCluster.liveOnly .syncNote{
  min-height:34px;
  max-width:230px;
  padding:7px 12px;
  font-size:11px;
}
.userBadge,
.version,
.iconBtn{
  min-height:36px;
}
.iconBtn{
  width:42px;
}
.mainMenu{
  position:sticky;
  top:84px;
  z-index:62;
  display:grid;
  grid-template-columns:repeat(9,minmax(96px,1fr));
  gap:4px;
  margin:8px 0 18px;
  padding:5px;
  border-radius:10px;
  background:linear-gradient(135deg,rgba(255,255,255,.72),rgba(241,249,250,.52));
  box-shadow:0 14px 34px rgba(18,53,91,.08);
}
.menuTab{
  flex:none;
  min-height:42px;
  min-width:0;
  padding:8px 8px;
  border-radius:8px;
  font-size:12px;
  line-height:1.12;
}
.menuTab svg{
  width:15px;
  height:15px;
}
.menuTab.active{
  box-shadow:0 10px 22px rgba(0,82,143,.2);
}
.panelHeader{
  padding:0 0 10px;
  margin-bottom:10px;
}
.panelHeader h2{
  font-size:clamp(24px,2.1vw,38px);
}
.dossierPanelHeader{
  padding-inline:2px;
}
.dossierToolbar{
  position:sticky;
  top:148px;
  z-index:54;
  display:grid;
  grid-template-columns:minmax(280px,2.2fr) repeat(4,minmax(145px,1fr));
  gap:8px;
  margin-bottom:12px;
  padding:10px;
  border:1px solid var(--hub-stroke);
  border-radius:10px;
  background:rgba(255,255,255,.82);
  box-shadow:0 16px 34px rgba(18,53,91,.08);
}
.dossierToolbar input,
.dossierToolbar select{
  min-height:40px;
  border-radius:8px;
  background:#fff;
}
.dossierList{
  display:block;
}
.dossierCount{
  margin:0 0 8px;
  color:#5c6b80;
  font-size:12px;
}
.dossierRow{
  position:relative;
  display:grid;
  grid-template-columns:6px minmax(0,1fr);
  min-height:86px;
  margin-bottom:8px;
  overflow:hidden;
  border:1px solid #d9e8ee;
  border-radius:8px;
  background:rgba(255,255,255,.92);
  box-shadow:0 8px 18px rgba(18,53,91,.055);
  cursor:pointer;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.dossierRow:hover{
  transform:translateY(-1px);
  border-color:#99c0c3;
  box-shadow:0 12px 26px rgba(18,53,91,.1);
}
.dossierRowStripe{
  background:linear-gradient(180deg,#47bd1c 0%,#47bd1c 58%,#00528f 100%);
}
.dossierRowBody{
  min-width:0;
  display:grid;
  gap:8px;
  padding:10px 12px;
}
.dossierRowMain{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
}
.dossierIdentity{
  min-width:0;
}
.dossierIdentity h3{
  margin:4px 0 2px;
  color:#12355b;
  font-size:15px;
  line-height:1.1;
  text-transform:uppercase;
}
.dossierIdentity p{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin:0;
  color:#57687f;
  font-size:12px;
  font-weight:700;
}
.dossierRowDetails{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  min-width:0;
}
.dossierRowDetails span{
  min-width:118px;
  max-width:270px;
  display:grid;
  gap:1px;
  padding:6px 9px;
  border:1px solid #e2edf2;
  border-radius:8px;
  background:#f8fbfc;
  color:#1d3552;
  font-size:11px;
  font-weight:800;
  line-height:1.2;
}
.dossierRowDetails b{
  color:#6f7f91;
  font-size:9px;
  text-transform:uppercase;
}
.dossierReminder{
  width:max-content;
  max-width:100%;
  padding:5px 9px;
  border-radius:7px;
  background:#fff0e8;
  color:#f5361d;
  font-size:12px;
  font-weight:800;
}
.dossierQuickActions{
  flex-wrap:nowrap;
}
.dossierQuickActions .callBtn,
.dossierQuickActions .whatsappBtn,
.popupClientCard .whatsappBtn,
.popupClientCard .callBtn{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  flex:0 0 34px!important;
  padding:0!important;
  border-radius:50%!important;
  aspect-ratio:1 / 1!important;
}
.whatsappBtn{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  border-radius:50%!important;
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 34px!important;
}
.planningBoard{
  overflow:visible;
}
.planningLegend{
  width:auto;
  max-width:520px;
  margin:10px 0 0;
}
.planningLegend summary{
  min-height:34px;
  font-size:12px;
}
.planningLegendItems{
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:7px;
}
.internalChatPanel{
  width:min(520px,calc(100vw - 36px));
  height:min(590px,calc(100vh - 112px));
  border-radius:18px;
}
.internalChatHead{
  padding:13px 15px;
  background:linear-gradient(135deg,#00528f,#126daf);
}
.internalChatHead span,
.internalChatHead h3,
.internalChatHead p{
  color:#fff;
}
.internalChatBody{
  grid-template-columns:168px minmax(0,1fr);
}
.internalChatContacts{
  padding:9px;
}
.internalChatContacts button{
  min-height:50px;
  padding:9px 10px;
}
.internalChatComposer{
  padding:10px;
}
.internalChatComposer textarea{
  min-height:46px;
  border-radius:16px;
}

@media (max-width:1180px){
.mainMenu{
    grid-template-columns:repeat(5,minmax(110px,1fr));
  }
.dossierToolbar{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:760px){
body{
    font-size:13px;
  }
.appLayout{
    padding:8px 8px 92px;
  }
.appHeader{
    top:0;
    min-height:56px;
    margin:-8px -8px 8px;
    padding:7px 9px;
    border-radius:0 0 12px 12px;
  }
.brandLogo{
    width:138px;
    max-width:46vw;
  }
.syncCluster.liveOnly,
  .version{
    display:none;
  }
.iconBtn,
  .userBadge{
    width:38px;
    min-width:38px;
    height:38px;
    min-height:38px;
  }
.mainMenu{
    position:fixed;
    left:8px;
    right:8px;
    bottom:8px;
    top:auto;
    z-index:86;
    display:flex;
    gap:6px;
    overflow-x:auto;
    padding:6px;
    border-radius:16px;
    background:rgba(255,255,255,.88);
    -webkit-backdrop-filter:blur(22px);
    backdrop-filter:blur(22px);
  }
.menuTab{
    flex:0 0 76px;
    min-height:54px;
    padding:7px 5px;
    flex-direction:column;
    gap:4px;
    font-size:9.5px;
  }
.menuTab svg{
    width:17px;
    height:17px;
  }
.panelHeader{
    display:grid;
    gap:10px;
    padding:0;
  }
.panelHeader h2{
    font-size:24px;
  }
.planningControls,
  .weekNav{
    display:grid;
    grid-template-columns:42px 1fr 42px;
    gap:6px;
  }
.weekNav .todayBtn{
    grid-column:1 / -1;
  }
.planningControls .panelControl{
    grid-column:1 / -1;
  }
.planningShell{
    margin-inline:-8px;
    border-radius:0;
    border-left:0;
    border-right:0;
  }
.planningLegend{
    position:static;
    max-width:none;
    margin:10px 8px 0;
  }
.dossierToolbar{
    position:static;
    grid-template-columns:1fr;
    padding:10px;
  }
.dossierRow{
    grid-template-columns:5px 1fr;
  }
.dossierRowMain{
    grid-template-columns:1fr;
  }
.dossierQuickActions{
    justify-content:flex-start;
  }
.dossierRowDetails{
    display:grid;
    grid-template-columns:1fr;
  }
.dossierRowDetails span{
    max-width:none;
  }
.internalChatPanel{
    left:0;
    right:0;
    bottom:0;
    width:100vw;
    height:calc(100dvh - 76px);
    border-radius:18px 18px 0 0;
  }
.internalChatBody{
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr;
  }
.internalChatContacts{
    display:flex;
    gap:8px;
    overflow-x:auto;
    border-right:0;
    border-bottom:1px solid #dbe8eb;
  }
.internalChatContacts button{
    flex:0 0 150px;
  }
.chatFab{
    left:12px;
    bottom:84px;
    min-width:54px;
    min-height:50px;
    padding:0 14px;
  }
}

@media (max-width:480px){
.homeClean{
    gap:10px;
  }
.homeWelcome h2{
    font-size:34px;
  }
.dossierIdentity h3{
    font-size:14px;
  }
}
.appLayout{
  max-width:none;
  padding:8px clamp(8px,1vw,16px) 24px;
}
.appHeader{
  top:0;
  min-height:58px;
  margin:0;
  padding:7px 10px;
  border-radius:0 0 18px 18px;
  border-color:rgba(198,220,226,.72);
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(242,250,249,.76));
  -webkit-backdrop-filter:blur(20px);
  backdrop-filter:blur(20px);
  box-shadow:0 12px 30px rgba(18,53,91,.08);
}
.brand{
  display:flex;
  align-items:center;
  min-width:0;
}
.brandLogo{
  width:auto;
  height:clamp(42px,4.4vw,58px);
  max-width:min(230px,38vw);
  object-fit:contain;
}
.headerActions{
  gap:8px;
}
.syncCluster.liveOnly .syncNote{
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  font-size:10px;
}
.userBadge,
.version,
.iconBtn{
  min-height:34px;
  border-radius:12px;
}
.iconBtn{
  width:38px;
}
.mainMenu{
  top:64px;
  display:flex;
  align-items:center;
  gap:3px;
  min-height:48px;
  margin:6px 0 20px;
  padding:4px;
  overflow-x:auto;
  border-radius:16px;
  background:linear-gradient(135deg,rgba(255,255,255,.84),rgba(232,245,247,.66));
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  box-shadow:0 12px 28px rgba(18,53,91,.07);
}
.menuTab{
  flex:1 1 0;
  min-width:106px;
  min-height:40px;
  padding:7px 8px;
  border:0;
  border-radius:11px;
  background:transparent;
  box-shadow:none;
  color:#12355b;
  font-size:11px;
}
.menuTab:hover{
  background:rgba(255,255,255,.7);
}
.menuTab.active{
  background:linear-gradient(135deg,#00528f,#126daf);
  box-shadow:0 10px 20px rgba(0,82,143,.2);
}
.panelHeader h2{
  font-size:clamp(24px,2vw,34px);
}
.planningControls{
  align-items:end;
}
.planningLegend{
  position:sticky;
  left:0;
  bottom:8px;
  z-index:22;
  max-width:min(720px,calc(100vw - 32px));
  margin:8px 0 0;
  border-radius:12px;
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}
.planningLegend summary{
  min-height:30px;
  padding:7px 10px;
}
.planningLegendItems{
  padding:0 10px 10px;
}
.dossierToolbar{
  top:118px;
  grid-template-columns:minmax(280px,2.4fr) repeat(4,minmax(130px,1fr));
  padding:8px;
  border-radius:12px;
}
.dossierToolbar input,
.dossierToolbar select{
  min-height:38px;
}
.dossierCount{
  margin:0 0 7px;
}
.dossierRow{
  min-height:74px;
  margin-bottom:7px;
  border-radius:10px;
  box-shadow:0 6px 16px rgba(18,53,91,.045);
}
.dossierRowBody{
  gap:6px;
  padding:9px 12px;
}
.dossierRowMain{
  grid-template-columns:minmax(280px,.62fr) auto;
  gap:10px;
}
.dossierIdentity h3{
  margin:3px 0 1px;
  font-size:14px;
}
.dossierIdentity p{
  gap:6px 12px;
  font-size:11px;
}
.dossierRowDetails{
  gap:5px 7px;
}
.dossierRowDetails span{
  min-width:auto;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:25px;
  padding:4px 7px;
  border-radius:7px;
  background:#f7fbfd;
  font-size:10px;
  line-height:1.1;
  white-space:nowrap;
}
.dossierRowDetails b{
  flex:none;
  font-size:8px;
}
.dossierQuickActions .callBtn,
.dossierQuickActions .whatsappBtn,
.popupClientCard .whatsappBtn,
.popupClientCard .callBtn,
.whatsappBtn{
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  max-width:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  border-radius:999px!important;
  aspect-ratio:1!important;
  overflow:hidden;
}
.whatsappBtn img,
.whatsappBtn svg,
.callBtn svg{
  width:17px!important;
  height:17px!important;
  object-fit:contain;
}
.internalChatPanel{
  width:min(460px,calc(100vw - 32px));
  height:min(540px,calc(100vh - 96px));
  overflow:hidden;
  border-radius:20px;
  box-shadow:0 28px 70px rgba(18,53,91,.28);
}
.internalChatBody{
  grid-template-columns:150px minmax(0,1fr);
}
.internalChatComposer textarea{
  min-height:44px;
  padding:13px 14px;
  border-radius:18px;
  background:#fff;
}
.chatFab{
  min-width:88px;
  min-height:48px;
  border-radius:999px;
}

@media (max-width:980px){
.appHeader{
    min-height:54px;
  }
.brandLogo{
    height:44px;
  }
.mainMenu{
    top:60px;
  }
.dossierToolbar{
    position:static;
    grid-template-columns:1fr 1fr;
  }
.dossierRowMain{
    grid-template-columns:1fr auto;
  }
}

@media (max-width:760px){
.appLayout{
    padding:0 0 92px;
  }
.appHeader{
    margin:0;
    padding:8px 10px;
    border-radius:0 0 18px 18px;
  }
.brandLogo{
    height:40px;
    max-width:42vw;
  }
.headerActions{
    gap:5px;
  }
.userBadge span:last-child{
    display:none;
  }
.mainMenu{
    left:10px;
    right:10px;
    bottom:10px;
    padding:6px;
    border-radius:20px;
    box-shadow:0 18px 50px rgba(18,53,91,.22);
  }
.menuTab{
    flex:0 0 72px;
    min-width:72px;
    min-height:52px;
    font-size:9px;
  }
.panel{
    padding-inline:10px;
  }
.planningBoard{
    margin-inline:-10px;
  }
.dossierToolbar{
    grid-template-columns:1fr;
  }
.dossierRowMain{
    grid-template-columns:1fr;
  }
.dossierRowDetails{
    display:flex;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:2px;
  }
.dossierRowDetails span{
    flex:0 0 auto;
  }
.internalChatPanel{
    left:8px;
    right:8px;
    bottom:76px;
    width:auto;
    height:min(620px,calc(100dvh - 96px));
    border-radius:22px;
  }
}
.homeClean{
  align-items:start;
}
.homeWelcome{
  min-height:118px;
  align-self:start;
  justify-content:center;
  padding:clamp(16px,1.6vw,22px);
}
.homeWelcome::before{
  inset:12px;
}
.homeWelcome h2{
  margin-top:5px;
  font-size:clamp(28px,2.5vw,38px);
  line-height:1.06;
  max-width:520px;
}
.homeWelcome .eyebrow{
  font-size:10px;
}
.homeUrgent{
  min-height:118px;
  align-self:start;
}

@media (max-width:560px){
.homeWelcome{
    min-height:104px;
    padding:16px;
  }
.homeWelcome h2{
    font-size:28px;
  }
}
.appLayout{
  padding-top:144px;
}
.appHeader{
  position:fixed;
  top:8px;
  left:clamp(8px,1vw,16px);
  right:clamp(8px,1vw,16px);
  z-index:120;
  min-height:62px;
  margin:0;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.74);
  background:
    linear-gradient(135deg,rgba(255,255,255,.78),rgba(239,249,250,.52)),
    rgba(255,255,255,.66);
  -webkit-backdrop-filter:blur(26px) saturate(170%);
  backdrop-filter:blur(26px) saturate(170%);
  box-shadow:0 18px 46px rgba(18,53,91,.13), inset 0 1px 0 rgba(255,255,255,.74);
}
.mainMenu{
  position:fixed;
  top:82px;
  left:clamp(8px,1vw,16px);
  right:clamp(8px,1vw,16px);
  z-index:119;
  margin:0;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.72);
  background:
    linear-gradient(135deg,rgba(255,255,255,.68),rgba(225,243,246,.42)),
    rgba(255,255,255,.58);
  -webkit-backdrop-filter:blur(28px) saturate(175%);
  backdrop-filter:blur(28px) saturate(175%);
  box-shadow:0 16px 42px rgba(18,53,91,.12), inset 0 1px 0 rgba(255,255,255,.72);
}
.menuTab{
  border-radius:14px;
}
.homeClean{
  gap:10px;
  align-items:start;
}
.homeWelcome{
  min-height:78px;
  align-self:start;
  justify-content:center;
  padding:16px 18px;
  border-radius:18px;
  color:#12355b;
  background:
    linear-gradient(135deg,rgba(255,255,255,.88),rgba(231,246,248,.62)),
    rgba(255,255,255,.72);
  box-shadow:0 16px 42px rgba(18,53,91,.09), inset 0 1px 0 rgba(255,255,255,.72);
}
.homeWelcome::before,
.homeWelcome .eyebrow{
  display:none !important;
}
.homeWelcome h2{
  margin:0;
  max-width:none;
  color:#00528f;
  font-size:clamp(24px,2.1vw,34px);
  line-height:1.1;
}
.homeUrgent{
  min-height:78px;
  align-self:start;
}
.homeUrgent,
.homePlacement,
.homeAnnouncement,
.homeInstagram{
  padding:18px 20px;
  border-radius:18px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.82),rgba(239,249,250,.56)),
    rgba(255,255,255,.7);
  box-shadow:0 18px 44px rgba(18,53,91,.08);
}
.homeCardTitle{
  margin-bottom:12px;
}
.homeCardTitle small,
.urgentEmpty small,
.homePlacement > p,
.instagramFallback b{
  display:none !important;
}
.urgentList{
  gap:8px;
}
.urgentEmpty{
  min-height:48px;
  padding:10px 14px;
}
.homeSearchRow{
  align-items:center;
}
.homeSearchRow button,
.announcementUpload,
.announcementPdfActions a,
.dangerGhost{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(0,82,143,.14);
  border-radius:14px;
  color:#00528f;
  background:rgba(255,255,255,.66);
  box-shadow:0 10px 24px rgba(18,53,91,.07);
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}
.homeSearchRow button{
  color:#fff;
  background:linear-gradient(135deg,#00528f,#126daf);
}
.announcementBody{
  gap:10px;
}
.announcementPdf{
  display:grid;
  gap:8px;
}
.announcementPdf iframe{
  width:100%;
  min-height:290px;
  border:1px solid rgba(0,82,143,.12);
  border-radius:16px;
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.announcementPdf small{
  color:#66788f;
  font-size:11px;
  font-weight:800;
}
.announcementPdfActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.dangerGhost{
  color:#f5361d;
  border-color:rgba(245,54,29,.24);
  background:rgba(245,54,29,.06);
}
.announcementUpload{
  width:100%;
  min-height:40px;
  cursor:pointer;
}
.announcementEmpty{
  min-height:76px;
  border-radius:16px;
}
.instagramFallback{
  justify-content:flex-end;
  background:linear-gradient(135deg,rgba(255,255,255,.76),rgba(255,255,255,.54));
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.iconBtn{
  width:42px;
  min-width:42px;
  height:42px;
  min-height:42px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.78);
  color:#fff;
  background:
    radial-gradient(circle at 28% 22%,rgba(255,255,255,.95),rgba(18,109,175,.92) 34%,#00528f 72%);
  box-shadow:0 14px 28px rgba(0,82,143,.22), inset 0 1px 0 rgba(255,255,255,.7);
}
.iconBtn svg{
  stroke:#fff;
}
.internalChatComposer button{
  width:46px;
  min-width:46px;
  height:46px;
  min-height:46px;
  border-radius:50%;
  background:
    radial-gradient(circle at 30% 22%,rgba(255,255,255,.94),rgba(71,189,28,.88) 35%,#16925d 72%);
  box-shadow:0 14px 30px rgba(22,146,93,.24), inset 0 1px 0 rgba(255,255,255,.7);
}
.internalChatComposer button::before{
  left:16px;
  top:14px;
}
.internalChatComposer button::after{
  left:13px;
  top:20px;
}

@media (max-width:980px){
.appLayout{
    padding-top:132px;
  }
.appHeader{
    min-height:58px;
  }
.mainMenu{
    top:74px;
  }
.homeClean{
    grid-template-columns:1fr;
    grid-template-areas:
      "welcome"
      "urgent"
      "placement"
      "announcement"
      "instagram";
  }
}

@media (max-width:760px){
.appLayout{
    padding:76px 8px 96px;
  }
.appHeader{
    top:0;
    left:0;
    right:0;
    min-height:60px;
    border-radius:0 0 20px 20px;
  }
.mainMenu{
    top:auto;
    left:10px;
    right:10px;
    bottom:10px;
    border-radius:20px;
  }
.homeWelcome{
    min-height:64px;
    padding:14px 16px;
  }
.homeWelcome h2{
    font-size:26px;
  }
.homeUrgent,
  .homePlacement,
  .homeAnnouncement,
  .homeInstagram{
    padding:14px;
    border-radius:16px;
  }
.homeSearchRow{
    grid-template-columns:1fr;
  }
.announcementPdf iframe{
    min-height:220px;
  }
}
.headerActions #logoutBtn.iconBtn{
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  border-radius:12px;
  border:1px solid rgba(0,82,143,.16);
  color:#00528f;
  background:
    linear-gradient(135deg,rgba(255,255,255,.82),rgba(226,243,246,.64)),
    rgba(255,255,255,.62);
  box-shadow:0 8px 18px rgba(18,53,91,.09), inset 0 1px 0 rgba(255,255,255,.82);
}
.headerActions #logoutBtn.iconBtn:hover{
  color:#fff;
  border-color:rgba(0,82,143,.42);
  background:linear-gradient(135deg,#126daf,#00528f);
  transform:translateY(-1px);
}
.headerActions #logoutBtn.iconBtn svg{
  width:17px;
  height:17px;
  stroke:currentColor;
}
.internalChatComposer{
  align-items:center;
  gap:8px;
}
.internalChatComposer button#internalChatSend{
  width:38px;
  min-width:38px;
  height:38px;
  min-height:38px;
  display:grid;
  place-items:center;
  padding:0;
  border-radius:13px;
  border:1px solid rgba(0,82,143,.18);
  color:#fff;
  background:linear-gradient(135deg,#126daf,#00528f);
  box-shadow:0 10px 22px rgba(0,82,143,.18), inset 0 1px 0 rgba(255,255,255,.28);
  transform:none;
}
.internalChatComposer button#internalChatSend:hover{
  background:linear-gradient(135deg,#1d7fbd,#00528f);
  transform:translateY(-1px);
}
.internalChatComposer button#internalChatSend::before,
.internalChatComposer button#internalChatSend::after{
  content:none;
}
.internalChatComposer button#internalChatSend svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transform:translateX(-1px);
}

@media (max-width:760px){
.headerActions #logoutBtn.iconBtn{
    width:34px;
    min-width:34px;
    height:34px;
    min-height:34px;
  }
.internalChatComposer button#internalChatSend{
    width:36px;
    min-width:36px;
    height:36px;
    min-height:36px;
  }
}
#planning .panelHeader > div:first-child p{
  display:none;
}
#planningBoard .planningLegend{
  position:fixed;
  left:14px;
  bottom:84px;
  z-index:88;
  margin:0;
  width:auto;
  max-width:min(280px,calc(100vw - 28px));
  color:#12355b;
}
#planningBoard .planningLegend summary{
  min-height:34px;
  padding:8px 12px;
  border-color:rgba(0,82,143,.16);
  background:rgba(255,255,255,.78);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}
#planningBoard .planningLegendItems{
  left:0;
  right:auto;
  bottom:calc(100% + 10px);
  grid-template-columns:1fr;
  max-height:44vh;
  overflow:auto;
  padding:10px;
  border-radius:14px;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}

@media (max-width:760px){
#planningBoard .planningLegend{
    left:10px;
    bottom:82px;
    max-width:220px;
  }
}

/* SoluHub BETA 0.2.11 - barre unique et planning moins charge */
@media (min-width:761px){
#appShell.appLayout{
    padding-top:132px;
  }
#appShell.appLayout::before{
    content:"";
    position:fixed;
    top:8px;
    left:clamp(8px,1vw,16px);
    right:clamp(8px,1vw,16px);
    height:116px;
    z-index:118;
    pointer-events:none;
    border:1px solid rgba(255,255,255,.74);
    border-radius:24px;
    background:
      linear-gradient(135deg,rgba(255,255,255,.76),rgba(236,248,250,.48)),
      rgba(255,255,255,.62);
    -webkit-backdrop-filter:blur(30px) saturate(175%);
    backdrop-filter:blur(30px) saturate(175%);
    box-shadow:0 18px 46px rgba(18,53,91,.13), inset 0 1px 0 rgba(255,255,255,.76);
  }
#appShell.appLayout .appHeader{
    top:8px;
    min-height:58px;
    padding:8px 14px 4px;
    border:0;
    border-radius:24px 24px 0 0;
    background:transparent;
    box-shadow:none;
  }
#appShell.appLayout .mainMenu{
    top:66px;
    min-height:56px;
    padding:4px 12px 10px;
    border:0;
    border-radius:0 0 24px 24px;
    background:transparent;
    box-shadow:none;
  }
#appShell.appLayout .mainMenu::before{
    content:"";
    position:absolute;
    top:0;
    left:18px;
    right:18px;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(0,82,143,.14),transparent);
  }
}

@media (max-width:760px){
}

/* SoluHub BETA 0.2.12 - planning semaine aligne et blocs plus propres */
@media (min-width:761px){
#appShell.appLayout{
    padding-top:122px;
  }
#appShell.appLayout::before{
    height:108px;
    border-radius:22px;
    background:
      linear-gradient(135deg,rgba(255,255,255,.8),rgba(235,248,249,.48)),
      rgba(255,255,255,.66);
  }
#appShell.appLayout .appHeader{
    min-height:54px;
    padding:7px 14px 2px;
  }
#appShell.appLayout .mainMenu{
    top:58px;
    min-height:58px;
    padding:5px 12px 10px;
  }
}

@media (max-width:760px){
}

/* SoluHub BETA 0.2.13 - planning stable et lecture plus nette */
@media (min-width:761px){
#appShell.appLayout{
    padding-top:140px;
  }
#appShell.appLayout::before{
    top:8px;
    height:124px;
    border-radius:24px;
    background:
      linear-gradient(135deg,rgba(255,255,255,.86),rgba(233,248,249,.62)),
      rgba(255,255,255,.72);
    box-shadow:0 18px 46px rgba(18,53,91,.12);
  }
#appShell.appLayout .appHeader{
    top:8px;
    min-height:60px;
    padding:8px 14px 4px;
  }
#appShell.appLayout .brandLogo{
    height:54px;
    max-height:54px;
  }
#appShell.appLayout .mainMenu{
    top:74px;
    min-height:48px;
    padding:4px 10px 8px;
    border-top:1px solid rgba(198,218,226,.44);
    background:transparent;
    box-shadow:none;
  }
#appShell.appLayout .mainMenu .tab{
    min-height:38px;
    padding:7px 9px;
  }
}
#planningBoard .planningLegend{
  position:fixed;
  right:18px;
  left:auto;
  bottom:84px;
  z-index:88;
}
#planningBoard .planningLegendItems{
  right:0;
  left:auto;
}

@media (max-width:760px){
#planningBoard .planningLegend{
    right:10px;
    left:auto;
    bottom:82px;
    max-width:220px;
  }
#planningBoard .planningLegendItems{
    right:0;
    left:auto;
  }
}

/* SoluHub BETA 0.2.14 - planning plus compact, pause discrete, legende flottante */
@media (min-width:761px){
#appShell.appLayout{
    padding-top:126px;
  }
#appShell.appLayout::before{
    top:8px;
    height:112px;
    border:1px solid rgba(198,218,226,.58);
    background:
      linear-gradient(135deg,rgba(255,255,255,.9),rgba(239,250,250,.68)),
      rgba(255,255,255,.76);
    box-shadow:0 18px 44px rgba(18,53,91,.11);
  }
#appShell.appLayout .appHeader{
    top:8px;
    min-height:56px;
    padding:8px 14px 2px;
  }
#appShell.appLayout .brandLogo{
    height:50px;
    max-height:50px;
  }
#appShell.appLayout .mainMenu{
    top:66px;
    min-height:42px;
    padding:2px 12px 7px;
    border:0!important;
    border-top:0!important;
    border-bottom:0!important;
    border-radius:0 0 20px 20px;
    background:transparent!important;
    box-shadow:none!important;
  }
#appShell.appLayout .mainMenu::before{
    content:none!important;
    display:none!important;
  }
#appShell.appLayout .mainMenu .tab{
    min-height:34px;
    padding:6px 9px;
    border-color:transparent;
    background:transparent;
    box-shadow:none;
  }
#appShell.appLayout .mainMenu .tab.active{
    border-color:rgba(0,82,143,.2);
    background:linear-gradient(135deg,#00528f,#126daf);
    box-shadow:0 10px 22px rgba(0,82,143,.18);
  }
}
#planning > .panelHeader > div:first-child{
  display:none!important;
}
#planning > .panelHeader{
  margin:0 0 12px;
  display:flex;
  justify-content:flex-end;
  align-items:flex-end;
}
#planning .planningControls{
  width:100%;
  justify-content:flex-end;
  gap:8px;
}
#planning .planningControls .panelControl label{
  display:none!important;
}
#planningBoard .planningLegend,
.weekOptimization .planningLegend{
  position:fixed!important;
  right:22px!important;
  left:auto!important;
  bottom:22px!important;
  z-index:90;
  width:auto;
}
#planningBoard .planningLegend summary,
.weekOptimization .planningLegend summary{
  width:auto;
  min-width:112px;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:12px 18px;
  border:1px solid rgba(0,82,143,.22);
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#00528f,#126daf);
  box-shadow:0 18px 36px rgba(0,82,143,.24);
  font-size:13px;
  font-weight:900;
}
#planningBoard .planningLegend summary::before,
.weekOptimization .planningLegend summary::before{
  content:"";
  width:15px;
  height:15px;
  border-radius:5px;
  background:
    linear-gradient(90deg,#9be7a2 0 48%,transparent 48% 52%,#ffd84d 52% 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.42);
}
#planningBoard .planningLegendItems,
.weekOptimization .planningLegendItems{
  right:0!important;
  left:auto!important;
  bottom:68px;
  max-width:min(360px,calc(100vw - 44px));
}

@media (max-width:760px){
#appShell.appLayout{
    padding-top:0;
  }
#planning > .panelHeader{
    display:block;
  }
#planning .planningControls{
    justify-content:flex-start;
  }
#planningBoard .planningLegend,
  .weekOptimization .planningLegend{
    right:14px!important;
    bottom:16px!important;
  }
#planningBoard .planningLegend summary,
  .weekOptimization .planningLegend summary{
    min-width:102px;
    min-height:50px;
    padding:10px 15px;
  }
}
.homeClean{
  grid-template-columns:minmax(320px,.78fr) minmax(460px,1.22fr);
  grid-template-areas:
    "left announcement"
    "instagram instagram";
  align-items:start;
  gap:16px;
}
.homeLeftStack{
  grid-area:left;
  display:grid;
  gap:12px;
}
.homeLeftStack .homeWelcome{
  min-height:96px;
  padding:24px 26px;
  justify-content:center;
  border-radius:18px;
  background:
    linear-gradient(135deg,rgba(0,82,143,.96),rgba(18,109,175,.86)),
    #00528f;
  box-shadow:0 22px 50px rgba(0,82,143,.16), inset 0 1px 0 rgba(255,255,255,.24);
}
.homeLeftStack .homeWelcome::before{
  inset:12px;
  border-radius:14px;
}
.homeLeftStack .homeWelcome h2{
  margin:0;
  font-size:clamp(30px,3.1vw,46px);
  line-height:1.03;
}
.homeLeftStack .homeUrgent,
.homeLeftStack .homePlacement{
  min-height:0;
  padding:18px 20px;
  border-radius:18px;
}
.homeLeftStack .homeUrgent .homeCardTitle{
  margin-bottom:10px;
}
.homeLeftStack .homeUrgent .homeCardTitle b,
.homeLeftStack .homePlacement .homeCardTitle b{
  font-size:18px;
}
.homeLeftStack .urgentList{
  gap:8px;
}
.homeLeftStack .urgentList button,
.homeLeftStack .urgentEmpty{
  min-height:48px;
  padding:10px 12px;
  border-radius:14px;
}
.homeLeftStack .homeSearchRow{
  grid-template-columns:minmax(0,1fr) 112px;
  gap:10px;
}
.homeLeftStack .homeSearchRow button{
  min-height:46px;
  border-radius:14px;
}
.homeAnnouncement{
  grid-area:announcement;
  min-height:620px;
  padding:20px;
  border-radius:22px;
}
.homeAnnouncement .homeCardTitle{
  margin-bottom:12px;
}
.homeAnnouncement .homeCardTitle b{
  font-size:22px;
}
.homeAnnouncement .announcementBody{
  height:calc(100% - 64px);
  min-height:520px;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  gap:12px;
}
.homeAnnouncement .announcementEmpty,
.homeAnnouncement .announcementPdf{
  min-height:0;
  height:100%;
  display:grid;
  place-items:center;
  border:1px dashed rgba(0,82,143,.2);
  border-radius:18px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.94),rgba(246,252,253,.82)),
    rgba(255,255,255,.72);
}
.homeAnnouncement .announcementEmpty{
  color:#66788f;
  font-size:15px;
}
.homeAnnouncement .announcementPdf{
  grid-template-rows:minmax(0,1fr) auto auto;
  padding:12px;
}
.homeAnnouncement .announcementPdf iframe{
  width:min(100%,430px);
  height:100%;
  max-height:calc(78vh - 180px);
  min-height:460px;
  aspect-ratio:210 / 297;
  border:1px solid rgba(18,53,91,.16);
  border-radius:12px;
  background:#fff;
  box-shadow:0 20px 46px rgba(18,53,91,.16);
}
.homeAnnouncement .announcementPdfActions{
  width:min(100%,430px);
  margin-top:10px;
}
.homeAnnouncement .announcementUpload{
  min-height:48px;
  border-radius:16px;
}
.homeInstagram{
  grid-area:instagram;
}

@media (min-width:1180px){
.homeAnnouncement{
    min-height:720px;
  }
.homeAnnouncement .announcementBody{
    min-height:620px;
  }
.homeAnnouncement .announcementPdf iframe{
    width:min(100%,500px);
    min-height:560px;
  }
.homeAnnouncement .announcementPdfActions{
    width:min(100%,500px);
  }
}

@media (max-width:980px){
.homeClean{
    grid-template-columns:1fr;
    grid-template-areas:
      "left"
      "announcement"
      "instagram";
  }
.homeAnnouncement{
    min-height:560px;
  }
}

@media (max-width:620px){
.homeClean{
    gap:12px;
  }
.homeLeftStack .homeWelcome{
    min-height:78px;
    padding:18px;
  }
.homeLeftStack .homeWelcome h2{
    font-size:30px;
  }
.homeLeftStack .homeSearchRow{
    grid-template-columns:1fr;
  }
.homeAnnouncement{
    min-height:460px;
    padding:14px;
  }
.homeAnnouncement .announcementBody{
    min-height:360px;
  }
.homeAnnouncement .announcementPdf iframe{
    width:100%;
    min-height:330px;
  }
}
.homeInstagram{
  min-height:0;
  display:grid;
  grid-template-columns:minmax(210px,280px) minmax(0,1fr);
  align-items:center;
  gap:16px;
  padding:16px 18px;
  border-radius:20px;
}
.homeInstagram .homeCardTitle{
  margin:0;
}
.homeInstagram .homeCardTitle b{
  font-size:19px;
}
.homeInstagram .homeCardIcon{
  width:42px;
  min-width:42px;
  height:42px;
}
.homeInstagram .instagramFrame{
  min-height:0;
  height:190px;
  border-radius:18px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.92),rgba(240,249,250,.74)),
    rgba(255,255,255,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.homeInstagram .instagramFrame iframe{
  width:100%;
  height:190px;
  min-height:0;
  opacity:.96;
}
.homeInstagram .instagramFallback{
  left:auto;
  right:12px;
  bottom:12px;
  width:auto;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.homeInstagram .instagramFallback a{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 15px;
  border-radius:999px;
  box-shadow:0 12px 26px rgba(0,82,143,.18);
}

@media (max-width:760px){
.homeInstagram{
    grid-template-columns:1fr;
    gap:12px;
    padding:15px;
  }
.homeInstagram .instagramFrame,
  .homeInstagram .instagramFrame iframe{
    height:160px;
  }
}

/* SoluHub BETA 0.2.17 - accueil compact et header/menu unifies */
@media (min-width:761px){
#appShell.appLayout{
    padding-top:118px;
  }
#appShell.appLayout::before{
    top:8px;
    height:106px;
    border:1px solid rgba(183,211,221,.72);
    border-radius:0 0 24px 24px;
    background:rgba(255,255,255,.9);
    -webkit-backdrop-filter:blur(24px);
    backdrop-filter:blur(24px);
    box-shadow:0 16px 42px rgba(18,53,91,.1);
  }
#appShell.appLayout .appHeader{
    top:8px;
    min-height:58px;
    padding:8px 16px 4px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
#appShell.appLayout .brandLogo{
    height:52px;
    max-height:52px;
  }
#appShell.appLayout .mainMenu{
    top:66px;
    min-height:44px;
    padding:4px 14px 8px;
    border:0!important;
    border-radius:0 0 22px 22px;
    background:transparent!important;
    box-shadow:none!important;
    gap:6px;
  }
#appShell.appLayout .mainMenu::before{
    content:none!important;
  }
#appShell.appLayout .mainMenu .tab{
    min-height:36px;
    padding:7px 10px;
    border:1px solid transparent;
    border-radius:14px;
    background:transparent;
    box-shadow:none;
    color:#12355b;
  }
#appShell.appLayout .mainMenu .tab:hover{
    background:rgba(0,82,143,.07);
  }
#appShell.appLayout .mainMenu .tab.active{
    color:#fff;
    border-color:rgba(0,82,143,.16);
    background:#00528f;
    box-shadow:0 12px 24px rgba(0,82,143,.18);
  }
}
.homeClean{
  display:grid;
  grid-template-columns:minmax(300px,430px) minmax(0,1fr);
  grid-template-areas:"left instagram";
  align-items:start;
  gap:16px;
}
.homeClean.hasAnnouncement{
  grid-template-columns:minmax(300px,430px) minmax(500px,1fr);
  grid-template-areas:
    "left announcement"
    "instagram announcement";
}
.homeLeftStack{
  grid-area:left;
  display:grid;
  gap:12px;
}
.homeLeftStack .homeWelcome{
  min-height:0;
  padding:12px 2px 4px;
  justify-content:flex-start;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.homeLeftStack .homeWelcome::before,
.homeLeftStack .homeWelcome .eyebrow{
  content:none!important;
  display:none!important;
}
.homeLeftStack .homeWelcome h2{
  margin:0;
  color:#00528f;
  font-size:clamp(26px,2.1vw,34px);
  line-height:1.08;
  letter-spacing:0;
}
.homeLeftStack .homeUrgent,
.homeLeftStack .homePlacement{
  min-height:0;
  padding:16px 18px;
  border-radius:20px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(183,211,221,.68);
  box-shadow:0 18px 44px rgba(18,53,91,.08);
}
.homeLeftStack .homeUrgent .homeCardTitle,
.homeLeftStack .homePlacement .homeCardTitle{
  margin-bottom:12px;
}
.homeLeftStack .homeUrgent .homeCardTitle b,
.homeLeftStack .homePlacement .homeCardTitle b{
  color:#00528f;
  font-size:18px;
}
.homeLeftStack .urgentList{
  display:grid;
  gap:8px;
}
.homeLeftStack .urgentList button,
.homeLeftStack .urgentEmpty{
  min-height:44px;
  padding:10px 12px;
  border-radius:14px;
}
.homeLeftStack .urgentEmpty{
  display:flex;
  align-items:center;
  color:#12355b;
  background:rgba(246,252,253,.86);
  border:1px solid rgba(183,211,221,.62);
  font-weight:800;
}
.homeLeftStack .homeSearchRow{
  display:grid;
  grid-template-columns:minmax(0,1fr) 102px;
  align-items:center;
  gap:10px;
}
.homeLeftStack .homeSearchRow input{
  min-height:46px;
  border-radius:14px;
}
.homeLeftStack .homeSearchRow button{
  min-height:46px;
  border-radius:14px;
  box-shadow:0 14px 26px rgba(0,82,143,.16);
}
.homeAnnouncement{
  grid-area:announcement;
}
.homeAnnouncement.hidden{
  display:none!important;
}
.homeInstagram{
  grid-area:instagram;
}
.homeClean:not(.hasAnnouncement) .homeInstagram{
  min-height:260px;
  align-self:stretch;
}

@media (max-width:980px){
.homeClean,
  .homeClean.hasAnnouncement{
    grid-template-columns:1fr;
    grid-template-areas:
      "left"
      "announcement"
      "instagram";
  }
}

@media (max-width:620px){
#appShell.appLayout{
    padding-top:0;
  }
.homeClean,
  .homeClean.hasAnnouncement{
    gap:12px;
  }
.homeLeftStack .homeWelcome{
    padding-top:4px;
  }
.homeLeftStack .homeWelcome h2{
    font-size:26px;
  }
.homeLeftStack .homeSearchRow{
    grid-template-columns:1fr;
  }
}
#dashboard .homeClean{
  display:grid!important;
  grid-template-columns:minmax(300px,440px) minmax(0,1fr)!important;
  grid-template-areas:"left instagram"!important;
  align-items:start!important;
  gap:16px!important;
}
#dashboard .homeClean.hasAnnouncement{
  grid-template-columns:minmax(300px,430px) minmax(520px,1fr)!important;
  grid-template-areas:
    "left announcement"
    "instagram announcement"!important;
}
#dashboard .homeLeftStack{
  grid-area:left!important;
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  min-width:0!important;
}
#dashboard .homeLeftStack .homeWelcome,
#dashboard .homeLeftStack .homeUrgent,
#dashboard .homeLeftStack .homePlacement{
  position:relative!important;
  width:100%!important;
  box-sizing:border-box!important;
  min-height:0!important;
  margin:0!important;
}
#dashboard .homeLeftStack .homeWelcome{
  order:1!important;
  display:block!important;
  padding:6px 2px 2px!important;
  border:0!important;
  border-radius:0!important;
  color:#00528f!important;
  background:transparent!important;
  box-shadow:none!important;
}
#dashboard .homeLeftStack #dashboardNextAction{
  order:2!important;
  display:block!important;
  padding:14px 16px!important;
  border:1px solid rgba(183,211,221,.72)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:0 16px 36px rgba(18,53,91,.07)!important;
}
#dashboard .homeLeftStack .homePlacement{
  order:3!important;
  display:grid!important;
  gap:12px!important;
  padding:14px 16px!important;
  border:1px solid rgba(183,211,221,.72)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:0 16px 36px rgba(18,53,91,.07)!important;
}
#dashboard .homeLeftStack .homeWelcome::before,
#dashboard .homeLeftStack .homeWelcome::after,
#dashboard .homeLeftStack .homeWelcome .eyebrow{
  content:none!important;
  display:none!important;
}
#dashboard .homeLeftStack .homeWelcome h2{
  position:static!important;
  margin:0!important;
  color:#00528f!important;
  font-size:clamp(24px,2vw,32px)!important;
  line-height:1.1!important;
  letter-spacing:0!important;
}
#dashboard .homeLeftStack .homeCardTitle{
  margin:0 0 10px!important;
}
#dashboard .homeLeftStack .homeCardTitle b{
  font-size:17px!important;
}
#dashboard .homeLeftStack .urgentList{
  display:grid!important;
  gap:8px!important;
}
#dashboard .homeLeftStack .urgentEmpty{
  min-height:38px!important;
  padding:9px 11px!important;
  border-radius:13px!important;
}
#dashboard .homeLeftStack .homeSearchRow{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 96px!important;
  align-items:center!important;
  gap:10px!important;
}
#dashboard .homeLeftStack .homeSearchRow input,
#dashboard .homeLeftStack .homeSearchRow button{
  min-height:42px!important;
  border-radius:13px!important;
}
#dashboard #homeAnnouncement{
  grid-area:announcement!important;
}
#dashboard #homeAnnouncement.hidden,
#dashboard #homeAnnouncement:empty{
  display:none!important;
}
#dashboard .homeInstagram{
  grid-area:instagram!important;
  min-width:0!important;
}
#dashboard .homeClean:not(.hasAnnouncement) .homeInstagram{
  min-height:220px!important;
}

@media (max-width:980px){
#dashboard .homeClean,
  #dashboard .homeClean.hasAnnouncement{
    grid-template-columns:1fr!important;
    grid-template-areas:
      "left"
      "announcement"
      "instagram"!important;
  }
}

@media (max-width:620px){
#dashboard .homeLeftStack .homeSearchRow{
    grid-template-columns:1fr!important;
  }
}
#dashboard .homeClean{
  grid-template-columns:minmax(300px,520px) minmax(420px,1fr)!important;
  grid-template-areas:"left announcement"!important;
}
#dashboard .homeClean:not(.hasAnnouncement){
  grid-template-columns:minmax(300px,520px) minmax(0,1fr)!important;
  grid-template-areas:"left empty"!important;
}
#dashboard .homeInstagram,
#dashboard .instagramFrame,
#dashboard .instagramFallback{
  display:none!important;
}

@media (max-width:980px){
#dashboard .homeClean,
  #dashboard .homeClean.hasAnnouncement,
  #dashboard .homeClean:not(.hasAnnouncement){
    grid-template-columns:1fr!important;
    grid-template-areas:
      "left"
      "announcement"!important;
  }
}

/* SoluHub BETA 0.2.20 - header/menu plus aere */
@media (min-width:761px){
#appShell.appLayout{
    padding-top:136px!important;
  }
#appShell.appLayout::before{
    top:8px!important;
    height:124px!important;
    overflow:visible!important;
  }
#appShell.appLayout .appHeader{
    top:8px!important;
    min-height:66px!important;
    padding:10px 16px 8px!important;
    overflow:visible!important;
  }
#appShell.appLayout .brandLogo{
    height:58px!important;
    max-height:58px!important;
    object-fit:contain!important;
  }
#appShell.appLayout .mainMenu{
    top:82px!important;
    min-height:46px!important;
    padding:6px 14px 8px!important;
    align-items:center!important;
    overflow:visible!important;
  }
#appShell.appLayout .mainMenu .tab{
    min-height:38px!important;
    padding-top:8px!important;
    padding-bottom:8px!important;
    line-height:1.08!important;
  }
}

/* SoluHub BETA 0.2.21 - planning compact et contenu degage */
@media (min-width:761px){
#appShell.appLayout{
    padding-top:144px!important;
  }
#appShell.appLayout::before{
    height:132px!important;
  }
#appShell.appLayout .appHeader{
    min-height:68px!important;
  }
#appShell.appLayout .mainMenu{
    top:86px!important;
    min-height:42px!important;
    padding:4px 14px 7px!important;
    align-items:center!important;
  }
#appShell.appLayout .mainMenu .tab{
    min-height:34px!important;
    padding:6px 10px!important;
    line-height:1.04!important;
  }
#dashboard.panel.active{
    padding-top:14px!important;
  }
#planning.panel.active{
    padding-top:2px!important;
  }
#planning > .panelHeader{
    margin:-4px 0 6px!important;
    align-items:center!important;
  }
#planning > .panelHeader > div:first-child{
    display:none!important;
  }
#planning .planningControls{
    width:100%!important;
    justify-content:flex-end!important;
    gap:6px!important;
    margin-top:0!important;
  }
#planning .weekNav{
    min-height:34px!important;
    gap:6px!important;
  }
#planning .weekLabel{
    min-width:176px!important;
    min-height:34px!important;
    padding:7px 10px!important;
    border-radius:10px!important;
    font-size:11px!important;
  }
#planning .todayBtn,
  #planning .weekNav button{
    min-height:34px!important;
    padding:6px 9px!important;
    border-radius:10px!important;
    font-size:11px!important;
  }
#planning .panelControl{
    min-width:226px!important;
  }
#planning .panelControl select{
    min-height:36px!important;
    padding:7px 34px 7px 11px!important;
    border-radius:10px!important;
    font-size:12px!important;
  }
#planningBoard{
    width:min(100%,1240px)!important;
    max-width:1240px!important;
    margin:0 auto!important;
  }
#planningBoard .planningLegend{
    right:24px!important;
    bottom:24px!important;
  }
#planningBoard .planningLegend summary{
    min-width:100px!important;
    min-height:42px!important;
    padding:8px 13px!important;
    font-size:11px!important;
  }
}

@media (min-width:761px) and (max-height:820px){
}
html[data-season-theme="christmas"]{
  --brand:#0f6f48;
  --brand-2:#c62828;
  --accent:#b9d7c0;
  --accent-strong:#2f9e63;
  --green:#24a148;
  --green-bg:#edf8ef;
  --red:#d62d20;
  --red-bg:#fff1ef;
  --blue:#15395f;
}
html[data-season-theme="halloween"]{
  --brand:#27223f;
  --brand-2:#e87418;
  --accent:#f5b35b;
  --accent-strong:#ff8a22;
  --green:#50a76f;
  --green-bg:#eff8f1;
  --red:#e0482e;
  --red-bg:#fff1e8;
  --blue:#171c38;
}
html[data-season-theme="new-year"]{
  --brand:#082a54;
  --brand-2:#c79b27;
  --accent:#d7c07a;
  --accent-strong:#d8a928;
  --green:#2ba06a;
  --green-bg:#eef9f4;
  --red:#c94b4b;
  --red-bg:#fff3f3;
  --blue:#092d5d;
}
html[data-color-mode="dark"]{
  --bg:#071521;
  --surface:#0d1d2d;
  --surface-soft:#12283a;
  --ink:#eaf4ff;
  --ink-strong:#f7fbff;
  --muted:#aebfd0;
  --line:#2b465d;
  --shadow:0 18px 48px rgba(0,0,0,.34);
  --shadow-soft:0 10px 26px rgba(0,0,0,.24);
  --blue-bg:#132b3f;
  --purple-bg:#2a2338;
  --orange-bg:#3a2717;
  --green-bg:#143624;
  --red-bg:#3d1e1d;
}
html[data-season-theme="christmas"] body{
  background:
    radial-gradient(circle at top left, rgba(36,161,72,.22), transparent 34%),
    radial-gradient(circle at top right, rgba(214,45,32,.12), transparent 28%),
    linear-gradient(180deg,#ffffff 0,#f6fbf7 330px,var(--bg) 100%);
}
html[data-season-theme="halloween"] body{
  background:
    radial-gradient(circle at top left, rgba(232,116,24,.18), transparent 34%),
    radial-gradient(circle at top right, rgba(39,34,63,.16), transparent 32%),
    linear-gradient(180deg,#fffaf5 0,#f7f3ef 330px,var(--bg) 100%);
}
html[data-season-theme="new-year"] body{
  background:
    radial-gradient(circle at top left, rgba(199,155,39,.18), transparent 32%),
    radial-gradient(circle at top right, rgba(8,42,84,.16), transparent 30%),
    linear-gradient(180deg,#fbfdff 0,#f3f8fb 330px,var(--bg) 100%);
}
html[data-color-mode="dark"] body{
  background:
    radial-gradient(circle at top left, rgba(95,168,173,.16), transparent 34%),
    radial-gradient(circle at top right, rgba(18,109,175,.14), transparent 30%),
    linear-gradient(180deg,#091827 0,#071521 360px,#050f19 100%)!important;
  color:var(--ink)!important;
}
html[data-color-mode="dark"][data-season-theme="christmas"] body{
  background:
    radial-gradient(circle at top left, rgba(36,161,72,.2), transparent 34%),
    radial-gradient(circle at top right, rgba(214,45,32,.14), transparent 30%),
    linear-gradient(180deg,#071c16 0,#071521 380px,#050f19 100%)!important;
}
html[data-color-mode="dark"][data-season-theme="halloween"] body{
  background:
    radial-gradient(circle at top left, rgba(232,116,24,.22), transparent 34%),
    radial-gradient(circle at top right, rgba(91,57,132,.18), transparent 30%),
    linear-gradient(180deg,#120d1b 0,#071521 380px,#050f19 100%)!important;
}
html[data-color-mode="dark"][data-season-theme="new-year"] body{
  background:
    radial-gradient(circle at top left, rgba(199,155,39,.2), transparent 34%),
    radial-gradient(circle at top right, rgba(18,109,175,.18), transparent 30%),
    linear-gradient(180deg,#07172b 0,#071521 380px,#050f19 100%)!important;
}
.themeChoiceGrid,
.segmentedChoice{
  display:grid;
  gap:10px;
}
.themeChoiceGrid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.themeChoice,
.segmentedChoice button{
  position:relative;
  min-height:74px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:4px;
  padding:12px 14px;
  border:1px solid rgba(153,192,195,.6);
  border-radius:14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,251,252,.72));
  color:var(--blue);
  text-align:left;
  box-shadow:0 10px 24px rgba(28,54,97,.07);
}
.themeChoice::before{
  content:"";
  position:absolute;
  inset:10px auto 10px 10px;
  width:5px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--choice-a,var(--brand)),var(--choice-b,var(--accent)));
}
.themeChoice span,
.segmentedChoice button{
  font-weight:900;
}
.themeChoice small{
  color:var(--muted);
  font-weight:700;
  padding-left:10px;
}
.themeChoice span{
  padding-left:10px;
}
.themeChoice.active,
.segmentedChoice button.active{
  border-color:color-mix(in srgb, var(--brand) 64%, white);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 11%, white), rgba(255,255,255,.86));
  box-shadow:0 16px 34px rgba(0,82,143,.16);
}
.themeChristmas{--choice-a:#0f7a45;--choice-b:#d62d20;}
.themeHalloween{--choice-a:#27223f;--choice-b:#e87418;}
.themeNewYear{--choice-a:#082a54;--choice-b:#d7a929;}
.segmentedChoice{
  grid-template-columns:1fr 1fr;
}
.segmentedChoice button{
  min-height:54px;
  align-items:center;
  text-align:center;
}
.themeStatus{
  margin:10px 0 0;
}
html[data-color-mode="dark"] .appHeader,
html[data-color-mode="dark"] .mainMenu,
html[data-color-mode="dark"] .panel,
html[data-color-mode="dark"] .card,
html[data-color-mode="dark"] .accountCard,
html[data-color-mode="dark"] .loginCard,
html[data-color-mode="dark"] .settingsPanel,
html[data-color-mode="dark"] .appointmentPopupCard,
html[data-color-mode="dark"] .internalChat,
html[data-color-mode="dark"] .homeWelcome,
html[data-color-mode="dark"] .homePlacement,
html[data-color-mode="dark"] .homeUrgent,
html[data-color-mode="dark"] .homeAnnouncement,
html[data-color-mode="dark"] .dossierCard{
  background:rgba(13,29,45,.88)!important;
  border-color:rgba(153,192,195,.24)!important;
  color:var(--ink)!important;
}
html[data-color-mode="dark"] .mainMenu,
html[data-color-mode="dark"] .appHeader{
  backdrop-filter:blur(18px);
}
html[data-color-mode="dark"] h1,
html[data-color-mode="dark"] h2,
html[data-color-mode="dark"] h3,
html[data-color-mode="dark"] h4,
html[data-color-mode="dark"] label,
html[data-color-mode="dark"] b,
html[data-color-mode="dark"] strong,
html[data-color-mode="dark"] .tab,
html[data-color-mode="dark"] .userBadge,
html[data-color-mode="dark"] .version,
html[data-color-mode="dark"] .syncNote,
html[data-color-mode="dark"] .rolePill,
html[data-color-mode="dark"] .mutedLine{
  color:var(--ink-strong)!important;
}
html[data-color-mode="dark"] p,
html[data-color-mode="dark"] small,
html[data-color-mode="dark"] .small,
html[data-color-mode="dark"] .subtitle,
html[data-color-mode="dark"] .themeChoice small{
  color:var(--muted)!important;
}
html[data-color-mode="dark"] input,
html[data-color-mode="dark"] select,
html[data-color-mode="dark"] textarea{
  background:#0a1a29!important;
  border-color:#31516a!important;
  color:var(--ink)!important;
}
html[data-color-mode="dark"] input::placeholder,
html[data-color-mode="dark"] textarea::placeholder{
  color:#8fa4b7!important;
}
html[data-color-mode="dark"] .themeChoice,
html[data-color-mode="dark"] .segmentedChoice button,
html[data-color-mode="dark"] button.secondary,
html[data-color-mode="dark"] .secondaryLink{
  background:rgba(18,40,58,.92)!important;
  border-color:rgba(153,192,195,.28)!important;
  color:var(--ink-strong)!important;
}
html[data-color-mode="dark"] .themeChoice.active,
html[data-color-mode="dark"] .segmentedChoice button.active,
html[data-color-mode="dark"] .tab.active{
  background:linear-gradient(135deg,var(--brand),var(--brand-2))!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;
}
html[data-color-mode="dark"] .themeChoice.active small{
  color:rgba(255,255,255,.78)!important;
}

@media (max-width:900px){
.themeChoiceGrid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:560px){
.themeChoiceGrid,
  .segmentedChoice{
    grid-template-columns:1fr;
  }
}
.planningLegendFloating{
  position:fixed!important;
  right:22px!important;
  bottom:28px!important;
  left:auto!important;
  z-index:83!important;
  width:auto!important;
  margin:0!important;
  color:#fff!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
.planningLegendFloating.hidden{
  display:none!important;
}
.planningLegendFloating summary{
  width:auto!important;
  min-width:112px!important;
  min-height:54px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  padding:12px 18px!important;
  border:1px solid rgba(0,82,143,.22)!important;
  border-radius:999px!important;
  color:#fff!important;
  background:linear-gradient(135deg,#00528f,#126daf)!important;
  box-shadow:0 18px 36px rgba(0,82,143,.24)!important;
  cursor:pointer!important;
  list-style:none!important;
  font-size:13px!important;
  font-weight:900!important;
}
.planningLegendFloating summary::before{
  content:""!important;
  width:15px!important;
  height:15px!important;
  border-radius:5px!important;
  background:
    linear-gradient(90deg,#9be7a2 0 48%,transparent 48% 52%,#ffd84d 52% 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.42)!important;
}
.planningLegendFloating .planningLegendItems{
  position:absolute!important;
  right:0!important;
  left:auto!important;
  bottom:76px!important;
  max-width:min(360px,calc(100vw - 44px))!important;
  grid-template-columns:repeat(2,max-content)!important;
  color:#12355b!important;
  padding:13px 14px!important;
  border:1px solid rgba(153,192,195,.46)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 22px 52px rgba(18,53,91,.18)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  backdrop-filter:blur(18px)!important;
}

@media (max-width:760px){
.planningLegendFloating{
    right:14px!important;
    bottom:18px!important;
  }
.planningLegendFloating summary{
    min-width:102px!important;
    min-height:50px!important;
    padding:10px 15px!important;
  }
}
.internalChatPanel{
  left:24px!important;
  bottom:92px!important;
  width:min(860px,calc(100vw - 48px))!important;
  height:min(680px,calc(100dvh - 132px))!important;
  max-height:680px!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  overflow:hidden!important;
  border:1px solid rgba(153,192,195,.54)!important;
  border-radius:24px!important;
  background:
    linear-gradient(145deg,rgba(255,255,255,.94),rgba(244,250,251,.82))!important;
  box-shadow:0 34px 90px rgba(18,53,91,.24)!important;
  backdrop-filter:blur(20px)!important;
}
.internalChatPanel.hidden{
  display:none!important;
}
.internalChatHead{
  min-height:92px!important;
  align-items:center!important;
  padding:20px 24px!important;
  border-bottom:1px solid rgba(153,192,195,.42)!important;
  background:
    radial-gradient(circle at top right,rgba(153,192,195,.38),transparent 34%),
    linear-gradient(135deg,#00528f,#126daf)!important;
  color:#fff!important;
}
.internalChatHead span,
.internalChatHead h3,
.internalChatHead p{
  color:#fff!important;
}
.internalChatHead span{
  opacity:.78!important;
  letter-spacing:.06em!important;
}
.internalChatHead h3{
  font-size:22px!important;
  line-height:1.1!important;
}
.internalChatHead p{
  opacity:.86!important;
  font-size:13px!important;
}
.internalChatHead .miniIcon{
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  border-color:rgba(255,255,255,.24)!important;
  color:#fff!important;
  background:rgba(0,37,72,.22)!important;
  box-shadow:none!important;
}
.internalChatBody{
  min-height:0!important;
  display:grid!important;
  grid-template-columns:250px minmax(0,1fr)!important;
  background:#fff!important;
}
.internalChatContacts{
  min-height:0!important;
  overflow:auto!important;
  padding:16px!important;
  border-right:1px solid rgba(153,192,195,.36)!important;
  background:
    linear-gradient(180deg,rgba(248,252,253,.96),rgba(239,247,248,.9))!important;
}
.chatSectionTitle{
  margin:8px 4px 10px!important;
  color:#5d858b!important;
  font-size:10px!important;
}
.internalChatContacts button{
  min-height:72px!important;
  margin:0 0 10px!important;
  padding:14px 14px 14px 18px!important;
  border:1px solid rgba(153,192,195,.25)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.84)!important;
  box-shadow:0 10px 24px rgba(18,53,91,.06)!important;
}
.internalChatContacts button::before{
  width:6px!important;
  opacity:.78!important;
}
.internalChatContacts button.active{
  border-color:rgba(0,82,143,.34)!important;
  background:linear-gradient(135deg,#eef8ff,#fff)!important;
  box-shadow:0 16px 32px rgba(0,82,143,.12)!important;
}
.internalChatContacts button.hasUnread{
  border-color:rgba(71,189,28,.38)!important;
  box-shadow:0 16px 32px rgba(71,189,28,.12)!important;
}
.internalChatContacts b{
  font-size:13px!important;
}
.internalChatContacts span{
  font-size:12px!important;
  line-height:1.25!important;
}
.internalChatThread{
  min-height:0!important;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  background:
    radial-gradient(circle at 100% 0,rgba(153,192,195,.16),transparent 34%),
    linear-gradient(180deg,#fff,#f8fbfc)!important;
}
.internalChatMessages{
  min-height:0!important;
  overflow:auto!important;
  padding:22px 24px!important;
  gap:13px!important;
  background:transparent!important;
}
.chatMessage{
  width:fit-content!important;
  max-width:min(74%,560px)!important;
  min-width:180px!important;
  padding:13px 15px!important;
  border-radius:18px 18px 18px 6px!important;
  border:1px solid rgba(153,192,195,.5)!important;
  background:rgba(255,255,255,.9)!important;
  box-shadow:0 12px 28px rgba(18,53,91,.07)!important;
}
.chatMessage.mine{
  border-color:rgba(0,82,143,.22)!important;
  border-radius:18px 18px 6px 18px!important;
  color:#fff!important;
  background:linear-gradient(135deg,#00528f,#126daf)!important;
  box-shadow:0 14px 30px rgba(0,82,143,.18)!important;
}
.chatMessage span{
  font-size:11px!important;
}
.chatMessage p{
  font-size:14px!important;
  line-height:1.48!important;
}
.internalChatComposer{
  align-items:center!important;
  gap:12px!important;
  padding:16px 18px!important;
  border-top:1px solid rgba(153,192,195,.36)!important;
  background:rgba(244,250,251,.94)!important;
}
.internalChatComposer textarea{
  min-height:52px!important;
  max-height:130px!important;
  padding:15px 17px!important;
  border-radius:18px!important;
  font-size:14px!important;
  background:#fff!important;
}
.internalChatComposer button#internalChatSend{
  width:52px!important;
  min-width:52px!important;
  height:52px!important;
  min-height:52px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#00528f,#126daf)!important;
  box-shadow:0 16px 30px rgba(0,82,143,.2)!important;
}
.internalChatComposer button#internalChatSend svg{
  width:22px!important;
  height:22px!important;
}

@media (max-width:760px){
.internalChatPanel{
    inset:0!important;
    width:100vw!important;
    height:100dvh!important;
    max-height:none!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
.internalChatHead{
    min-height:78px!important;
    padding:14px 16px!important;
  }
.internalChatHead h3{
    font-size:20px!important;
  }
.internalChatBody{
    grid-template-columns:1fr!important;
    grid-template-rows:auto minmax(0,1fr)!important;
  }
.internalChatContacts{
    display:flex!important;
    gap:10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:10px 12px!important;
    border-right:0!important;
    border-bottom:1px solid rgba(153,192,195,.36)!important;
    scroll-snap-type:x proximity!important;
  }
.chatSectionTitle{
    display:none!important;
  }
.internalChatContacts button{
    flex:0 0 152px!important;
    min-height:62px!important;
    margin:0!important;
    padding:11px 12px 11px 16px!important;
    scroll-snap-align:start!important;
  }
.internalChatContacts b{
    font-size:12px!important;
  }
.internalChatContacts span{
    font-size:11px!important;
  }
.internalChatMessages{
    padding:16px 12px!important;
  }
.chatMessage{
    max-width:88%!important;
    min-width:0!important;
    padding:12px 13px!important;
  }
.chatMessage p{
    font-size:13px!important;
  }
.internalChatComposer{
    padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;
  }
.internalChatComposer textarea{
    min-height:48px!important;
    border-radius:16px!important;
  }
.internalChatComposer button#internalChatSend{
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    border-radius:16px!important;
  }
}

/* SoluHub BETA 0.2.25 - header/menu compact au scroll avec retour au survol */
@media (min-width:761px){
#appShell.appLayout{
    --chrome-expanded-offset:136px;
    --chrome-compact-offset:88px;
    padding-top:var(--chrome-expanded-offset)!important;
    transition:padding-top .32s cubic-bezier(.2,.8,.2,1)!important;
  }
#appShell.appLayout.chromeCompact{
    padding-top:var(--chrome-compact-offset)!important;
  }
#appShell.appLayout::before{
    top:10px!important;
    height:116px!important;
    border-radius:0 0 26px 26px!important;
    background:
      linear-gradient(135deg,rgba(255,255,255,.9),rgba(244,250,251,.72))!important;
    box-shadow:0 20px 54px rgba(18,53,91,.12)!important;
    backdrop-filter:blur(22px) saturate(1.3)!important;
    transition:height .32s cubic-bezier(.2,.8,.2,1), opacity .25s ease, background .25s ease, box-shadow .25s ease!important;
  }
#appShell.appLayout.chromeCompact::before{
    height:72px!important;
    opacity:.78!important;
    background:
      linear-gradient(135deg,rgba(255,255,255,.58),rgba(238,248,250,.42))!important;
    box-shadow:0 14px 34px rgba(18,53,91,.08)!important;
  }
#appShell.appLayout .appHeader{
    top:10px!important;
    min-height:58px!important;
    height:58px!important;
    padding:8px 18px!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    transition:height .32s cubic-bezier(.2,.8,.2,1), min-height .32s cubic-bezier(.2,.8,.2,1), padding .32s cubic-bezier(.2,.8,.2,1), opacity .25s ease!important;
  }
#appShell.appLayout.chromeCompact .appHeader{
    min-height:36px!important;
    height:36px!important;
    padding:4px 18px!important;
    opacity:.9!important;
  }
#appShell.appLayout .brandLogo{
    height:54px!important;
    max-height:54px!important;
    transition:height .32s cubic-bezier(.2,.8,.2,1), opacity .25s ease, transform .32s cubic-bezier(.2,.8,.2,1)!important;
  }
#appShell.appLayout.chromeCompact .brandLogo{
    height:34px!important;
    max-height:34px!important;
    opacity:.72!important;
    transform:translateY(-1px)!important;
  }
#appShell.appLayout .headerActions{
    gap:8px!important;
    transition:transform .32s cubic-bezier(.2,.8,.2,1)!important;
  }
#appShell.appLayout.chromeCompact .headerActions{
    transform:translateY(-1px)!important;
  }
#appShell.appLayout.chromeCompact .syncCluster{
    max-width:0!important;
    opacity:0!important;
    margin:0!important;
    overflow:hidden!important;
    pointer-events:none!important;
    transform:translateX(12px)!important;
  }
#appShell.appLayout .syncCluster,
  #appShell.appLayout .userBadge,
  #appShell.appLayout .version,
  #appShell.appLayout #logoutBtn{
    transition:max-width .28s ease, opacity .22s ease, transform .28s ease, min-height .28s ease, height .28s ease, padding .28s ease!important;
  }
#appShell.appLayout.chromeCompact .userBadge{
    min-height:30px!important;
    padding:5px 10px!important;
    font-size:11px!important;
  }
#appShell.appLayout.chromeCompact .version{
    min-height:30px!important;
    padding:6px 10px!important;
    font-size:11px!important;
  }
#appShell.appLayout.chromeCompact #logoutBtn{
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    min-height:34px!important;
  }
#appShell.appLayout .mainMenu{
    top:72px!important;
    min-height:46px!important;
    height:46px!important;
    padding:5px 14px!important;
    border:0!important;
    border-radius:22px!important;
    background:rgba(255,255,255,.18)!important;
    box-shadow:none!important;
    backdrop-filter:blur(18px) saturate(1.25)!important;
    transition:top .32s cubic-bezier(.2,.8,.2,1), min-height .32s cubic-bezier(.2,.8,.2,1), height .32s cubic-bezier(.2,.8,.2,1), padding .32s cubic-bezier(.2,.8,.2,1), background .25s ease, box-shadow .25s ease, opacity .25s ease!important;
  }
#appShell.appLayout.chromeCompact .mainMenu{
    top:47px!important;
    min-height:34px!important;
    height:34px!important;
    padding:2px 14px!important;
    background:rgba(255,255,255,.34)!important;
    box-shadow:0 10px 28px rgba(18,53,91,.08)!important;
  }
#appShell.appLayout .mainMenu .tab{
    min-height:34px!important;
    height:34px!important;
    padding:6px 10px!important;
    border-radius:14px!important;
    line-height:1!important;
    transition:min-height .28s ease, height .28s ease, padding .28s ease, border-radius .28s ease, background .18s ease, box-shadow .18s ease!important;
  }
#appShell.appLayout.chromeCompact .mainMenu .tab{
    min-height:28px!important;
    height:28px!important;
    padding:4px 9px!important;
    border-radius:11px!important;
    font-size:11px!important;
  }
#appShell.appLayout.chromeCompact .mainMenu .tab svg{
    width:14px!important;
    height:14px!important;
  }
}

@media (max-width:760px){
#appShell.appLayout{
    padding-top:104px!important;
    transition:padding-top .28s ease!important;
  }
#appShell.appLayout.chromeCompact{
    padding-top:76px!important;
  }
#appShell.appLayout::before{
    height:96px!important;
    background:rgba(255,255,255,.78)!important;
    backdrop-filter:blur(18px)!important;
    transition:height .28s ease, opacity .22s ease!important;
  }
#appShell.appLayout.chromeCompact::before{
    height:70px!important;
    opacity:.86!important;
  }
#appShell.appLayout .appHeader{
    min-height:44px!important;
    height:44px!important;
    padding:6px 12px!important;
    transition:height .28s ease, min-height .28s ease, padding .28s ease!important;
  }
#appShell.appLayout.chromeCompact .appHeader{
    min-height:34px!important;
    height:34px!important;
    padding:4px 12px!important;
  }
#appShell.appLayout .brandLogo{
    height:38px!important;
    transition:height .28s ease, opacity .22s ease!important;
  }
#appShell.appLayout.chromeCompact .brandLogo{
    height:28px!important;
    opacity:.76!important;
  }
#appShell.appLayout .mainMenu{
    top:54px!important;
    min-height:38px!important;
    height:38px!important;
    padding:4px 8px!important;
    border:0!important;
    background:rgba(255,255,255,.42)!important;
    backdrop-filter:blur(18px)!important;
    transition:top .28s ease, height .28s ease, min-height .28s ease, padding .28s ease!important;
  }
#appShell.appLayout.chromeCompact .mainMenu{
    top:39px!important;
    min-height:30px!important;
    height:30px!important;
    padding:2px 8px!important;
  }
}

/* SoluHub BETA 0.2.26 - echelle horaire planning type CyberG */
@media (min-width: 761px){
#planningBoard{
    width:100%!important;
    max-width:none!important;
  }
}

/* SoluHub BETA 0.2.27 - arrondis du bandeau haut harmonises */
@media (min-width: 761px){
#appShell.appLayout::before{
    border-radius:26px!important;
  }
#appShell.appLayout.chromeCompact::before{
    border-radius:22px!important;
  }
}

@media (max-width: 760px){
#appShell.appLayout::before{
    border-radius:20px!important;
  }
#appShell.appLayout.chromeCompact::before{
    border-radius:18px!important;
  }
}
html[data-season-theme="christmas"]{
  --theme-heading:#0b6b46;
  --theme-heading-2:#b72b2b;
  --theme-text:#173f2c;
  --theme-muted:#5d755f;
  --theme-soft:#e9f7ec;
}
html[data-season-theme="halloween"]{
  --theme-heading:#2b2147;
  --theme-heading-2:#e87418;
  --theme-text:#2a243a;
  --theme-muted:#736878;
  --theme-soft:#fff0df;
}
html[data-season-theme="new-year"]{
  --theme-heading:#092d5d;
  --theme-heading-2:#b88913;
  --theme-text:#172d4a;
  --theme-muted:#65748a;
  --theme-soft:#fff7db;
}
html[data-color-mode="dark"][data-season-theme="christmas"]{
  --theme-heading:#95f2b3;
  --theme-heading-2:#ff8c80;
  --theme-text:#edfdf2;
  --theme-muted:#bad1c0;
  --theme-soft:#123624;
}
html[data-color-mode="dark"][data-season-theme="halloween"]{
  --theme-heading:#ffd08f;
  --theme-heading-2:#ff8a22;
  --theme-text:#fff5ea;
  --theme-muted:#d5bfda;
  --theme-soft:#30233d;
}
html[data-color-mode="dark"][data-season-theme="new-year"]{
  --theme-heading:#f4d675;
  --theme-heading-2:#8fd3ff;
  --theme-text:#eef6ff;
  --theme-muted:#bfd0e2;
  --theme-soft:#152d4d;
}
html[data-season-theme]:not([data-season-theme="classic"]) body,
html[data-season-theme]:not([data-season-theme="classic"]) .panel,
html[data-season-theme]:not([data-season-theme="classic"]) .card,
html[data-season-theme]:not([data-season-theme="classic"]) .homeClean,
html[data-season-theme]:not([data-season-theme="classic"]) .dossierCard,
html[data-season-theme]:not([data-season-theme="classic"]) .accountCard,
html[data-season-theme]:not([data-season-theme="classic"]) .settingsPanel{
  color:var(--theme-text)!important;
}
html[data-season-theme]:not([data-season-theme="classic"]) h1,
html[data-season-theme]:not([data-season-theme="classic"]) h2,
html[data-season-theme]:not([data-season-theme="classic"]) h3,
html[data-season-theme]:not([data-season-theme="classic"]) h4,
html[data-season-theme]:not([data-season-theme="classic"]) .homeWelcome h2,
html[data-season-theme]:not([data-season-theme="classic"]) .homeCardTitle,
html[data-season-theme]:not([data-season-theme="classic"]) .dossierCard h3,
html[data-season-theme]:not([data-season-theme="classic"]) .panelHeader h2{
  color:var(--theme-heading)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.45);
}
html[data-season-theme]:not([data-season-theme="classic"]) .homeCardTitle svg,
html[data-season-theme]:not([data-season-theme="classic"]) .panelHeader svg,
html[data-season-theme]:not([data-season-theme="classic"]) .menuTab svg,
html[data-season-theme]:not([data-season-theme="classic"]) .userBadge svg{
  color:var(--theme-heading-2)!important;
  stroke:currentColor!important;
}
html[data-season-theme]:not([data-season-theme="classic"]) .mainMenu .tab:not(.active),
html[data-season-theme]:not([data-season-theme="classic"]) .panelControl label,
html[data-season-theme]:not([data-season-theme="classic"]) .filterBar label,
html[data-season-theme]:not([data-season-theme="classic"]) .eyebrow,
html[data-season-theme]:not([data-season-theme="classic"]) .small,
html[data-season-theme]:not([data-season-theme="classic"]) .subtitle,
html[data-season-theme]:not([data-season-theme="classic"]) .mutedLine{
  color:var(--theme-muted)!important;
}
html[data-season-theme]:not([data-season-theme="classic"]) .syncNote,
html[data-season-theme]:not([data-season-theme="classic"]) .version,
html[data-season-theme]:not([data-season-theme="classic"]) .userBadge,
html[data-season-theme]:not([data-season-theme="classic"]) .rolePill,
html[data-season-theme]:not([data-season-theme="classic"]) .dossierPill,
html[data-season-theme]:not([data-season-theme="classic"]) .tag{
  color:var(--theme-heading)!important;
  background:color-mix(in srgb, var(--theme-soft) 82%, white)!important;
  border-color:color-mix(in srgb, var(--theme-heading) 18%, transparent)!important;
}
html[data-season-theme]:not([data-season-theme="classic"]) #dashboard .homeLeftStack .homeWelcome,
html[data-season-theme]:not([data-season-theme="classic"]) #dashboard .homeLeftStack .homeWelcome h2,
html[data-season-theme]:not([data-season-theme="classic"]) #dashboard .homeLeftStack .homeCardTitle b,
html[data-season-theme]:not([data-season-theme="classic"]) #dashboard .homeLeftStack .urgentEmpty,
html[data-season-theme]:not([data-season-theme="classic"]) .dossierIdentity h3,
html[data-season-theme]:not([data-season-theme="classic"]) .dossierRowDetails b,
html[data-season-theme]:not([data-season-theme="classic"]) .dossierCardGrid b,
html[data-season-theme]:not([data-season-theme="classic"]) .dossierToolbar label,
html[data-season-theme]:not([data-season-theme="classic"]) .dossierPanelHeader h2{
  color:var(--theme-heading)!important;
}
html[data-season-theme]:not([data-season-theme="classic"]) .panelHeader p,
html[data-season-theme]:not([data-season-theme="classic"]) .dossierCount,
html[data-season-theme]:not([data-season-theme="classic"]) .dossierIdentity p,
html[data-season-theme]:not([data-season-theme="classic"]) .dossierRowDetails span{
  color:var(--theme-muted)!important;
}
html[data-season-theme]:not([data-season-theme="classic"]) .appHeader{
  position:relative;
}
html[data-season-theme]:not([data-season-theme="classic"]) .appHeader::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:-1px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,var(--theme-heading-2),var(--theme-heading),transparent);
  opacity:.38;
  pointer-events:none;
}
html[data-season-theme]:not([data-season-theme="classic"]) .mainMenu .tab.active,
html[data-season-theme]:not([data-season-theme="classic"]) button.primary,
html[data-season-theme]:not([data-season-theme="classic"]) .chatLauncher,
html[data-season-theme]:not([data-season-theme="classic"]) #internalChatSend{
  background:linear-gradient(135deg,var(--theme-heading),var(--theme-heading-2))!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.28)!important;
}
html[data-season-theme]:not([data-season-theme="classic"]) .mainMenu .tab.active svg,
html[data-season-theme]:not([data-season-theme="classic"]) button.primary svg,
html[data-season-theme]:not([data-season-theme="classic"]) .chatLauncher svg,
html[data-season-theme]:not([data-season-theme="classic"]) #internalChatSend svg{
  color:#fff!important;
}
html[data-color-mode="dark"]{
  --bg:#102a3d;
  --surface:#f7fbfc;
  --surface-soft:#eaf5f7;
  --ink:#f8fcff;
  --ink-strong:#ffffff;
  --muted:#bed1df;
  --line:rgba(159,201,200,.28);
  --brand:#8fd3ff;
  --brand-2:#99c0c3;
  --accent:#99c0c3;
  --accent-strong:#5fa8ad;
  --blue:#f8fcff;
  --blue-bg:rgba(143,211,255,.14);
  --purple-bg:rgba(153,192,195,.16);
  --orange-bg:rgba(255,179,71,.16);
  --green-bg:rgba(71,189,28,.15);
  --red-bg:rgba(245,54,29,.15);
  --shadow:0 24px 64px rgba(2,18,32,.30);
  --shadow-soft:0 14px 36px rgba(2,18,32,.22);
  color-scheme:dark;
}
html[data-color-mode="dark"][data-season-theme="christmas"]{
  --theme-heading:#a9f4bf;
  --theme-heading-2:#ff968d;
  --theme-text:#f1fff5;
  --theme-muted:#c8dccd;
  --theme-soft:#173c2a;
}
html[data-color-mode="dark"][data-season-theme="halloween"]{
  --theme-heading:#ffd49a;
  --theme-heading-2:#ff9a3d;
  --theme-text:#fff6ec;
  --theme-muted:#decbe2;
  --theme-soft:#372643;
}
html[data-color-mode="dark"][data-season-theme="new-year"]{
  --theme-heading:#ffe189;
  --theme-heading-2:#91d9ff;
  --theme-text:#f3f9ff;
  --theme-muted:#cbd9e8;
  --theme-soft:#17365c;
}
html[data-color-mode="dark"] body{
  background:
    radial-gradient(circle at 12% 6%, rgba(143,211,255,.18), transparent 31%),
    radial-gradient(circle at 92% 8%, rgba(153,192,195,.16), transparent 28%),
    linear-gradient(180deg,#17364b 0,#102a3d 310px,#0d2132 100%)!important;
  color:var(--ink)!important;
}
html[data-color-mode="dark"] #appShell.appLayout::before{
  background:rgba(248,252,255,.88)!important;
  border-color:rgba(159,201,200,.28)!important;
  box-shadow:0 18px 52px rgba(2,18,32,.24)!important;
}
html[data-color-mode="dark"] .brandLogo{
  filter:none!important;
  opacity:1!important;
}
html[data-color-mode="dark"] .appHeader,
html[data-color-mode="dark"] .mainMenu{
  background:rgba(248,252,255,.86)!important;
  border-color:rgba(159,201,200,.32)!important;
  color:#12355b!important;
  box-shadow:0 18px 42px rgba(2,18,32,.15)!important;
}
html[data-color-mode="dark"] .panel,
html[data-color-mode="dark"] .card,
html[data-color-mode="dark"] .accountCard,
html[data-color-mode="dark"] .loginCard,
html[data-color-mode="dark"] .settingsPanel,
html[data-color-mode="dark"] .appointmentPopupCard,
html[data-color-mode="dark"] .internalChat,
html[data-color-mode="dark"] .homeWelcome,
html[data-color-mode="dark"] .homePlacement,
html[data-color-mode="dark"] .homeUrgent,
html[data-color-mode="dark"] .homeAnnouncement,
html[data-color-mode="dark"] .dossierCard,
html[data-color-mode="dark"] .dossierRow,
html[data-color-mode="dark"] .dossierToolbar{
  background:rgba(17,42,60,.76)!important;
  border-color:rgba(159,201,200,.32)!important;
  color:var(--ink)!important;
  box-shadow:0 18px 44px rgba(2,18,32,.22)!important;
}
html[data-color-mode="dark"] h1,
html[data-color-mode="dark"] h2,
html[data-color-mode="dark"] h3,
html[data-color-mode="dark"] h4,
html[data-color-mode="dark"] label,
html[data-color-mode="dark"] b,
html[data-color-mode="dark"] strong,
html[data-color-mode="dark"] .accountCard h3,
html[data-color-mode="dark"] .panelHeader h2,
html[data-color-mode="dark"] .homeCardTitle,
html[data-color-mode="dark"] .homeWelcome h2{
  color:var(--ink-strong)!important;
  text-shadow:none!important;
}
html[data-color-mode="dark"] .appHeader h1,
html[data-color-mode="dark"] .mainMenu .tab{
  color:#12355b!important;
}
html[data-color-mode="dark"] p,
html[data-color-mode="dark"] small,
html[data-color-mode="dark"] .small,
html[data-color-mode="dark"] .subtitle,
html[data-color-mode="dark"] .mutedLine,
html[data-color-mode="dark"] .panelHeader p,
html[data-color-mode="dark"] .dossierCount{
  color:var(--muted)!important;
}
html[data-color-mode="dark"] .mainMenu .tab.active,
html[data-color-mode="dark"] button.primary,
html[data-color-mode="dark"] .chatLauncher,
html[data-color-mode="dark"] #internalChatSend{
  background:linear-gradient(135deg,#00528f,#126daf)!important;
  border-color:rgba(255,255,255,.24)!important;
  color:#fff!important;
}
html[data-color-mode="dark"] .userBadge,
html[data-color-mode="dark"] .version,
html[data-color-mode="dark"] .syncNote,
html[data-color-mode="dark"] .rolePill,
html[data-color-mode="dark"] .dossierPill,
html[data-color-mode="dark"] .tag,
html[data-color-mode="dark"] .themeChoice,
html[data-color-mode="dark"] .segmentedChoice button,
html[data-color-mode="dark"] button.secondary,
html[data-color-mode="dark"] .secondaryLink{
  background:rgba(248,252,255,.92)!important;
  border-color:rgba(159,201,200,.38)!important;
  color:#12355b!important;
}
html[data-color-mode="dark"] .syncNote{
  background:rgba(71,189,28,.14)!important;
  border-color:rgba(71,189,28,.34)!important;
  color:#0f6c30!important;
}
html[data-color-mode="dark"] .themeChoice.active,
html[data-color-mode="dark"] .segmentedChoice button.active{
  background:linear-gradient(135deg,#00528f,#126daf)!important;
  color:#fff!important;
}
html[data-color-mode="dark"] .themeChoice.active small,
html[data-color-mode="dark"] .segmentedChoice button.active small{
  color:rgba(255,255,255,.82)!important;
}
html[data-color-mode="dark"] input,
html[data-color-mode="dark"] select,
html[data-color-mode="dark"] textarea{
  background:rgba(248,252,255,.95)!important;
  border-color:rgba(159,201,200,.50)!important;
  color:#12355b!important;
}
html[data-color-mode="dark"] input::placeholder,
html[data-color-mode="dark"] textarea::placeholder{
  color:#6f7f91!important;
}
.trackingPanel{--tr-blue:#075a97;--tr-navy:#063d70;--tr-red:#d92d3f;--tr-green:#138a4b;--tr-amber:#c77800}
.trackingHeader{align-items:center}
.trackingSync{font-weight:800;color:#617287}
.trackingDot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#28a745;margin-right:7px}
.trackingKpisRich{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px;margin:14px 0}
.trackingKpi{border:1px solid #d9e5ee;border-radius:13px;padding:14px 16px;background:#fff;min-height:96px;box-shadow:0 6px 18px rgba(8,65,107,.06)}
.trackingKpi span{display:block;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.03em}
.trackingKpi strong{display:block;font-size:29px;line-height:1.1;margin:6px 0}
.trackingKpi small{font-weight:700}
.kpiRed{background:#fff1f2;border-color:#ffcbd1;color:#b42334}
.kpiGreen{background:#ecfbf2;border-color:#bcebd0;color:#08783e}
.kpiAmber{background:#fff7e8;border-color:#f7ddb2;color:#a95f00}
.kpiBlue{background:#eef7ff;border-color:#c9e1f5;color:#075a97}
.trackingToolbar{display:grid;grid-template-columns:180px 240px auto 1fr;gap:12px;align-items:end;padding:14px;margin-bottom:14px}
.trackingToolbar label>span{display:block;font-size:11px;font-weight:900;text-transform:uppercase;margin-bottom:5px}
.trackingTypeFilters{display:flex;gap:6px;align-items:center}
.trackingType{border:1px solid #cbdce8;background:#f7fbfe;color:#34566f;border-radius:9px;padding:10px 13px;font-weight:800}
.trackingType.active{background:var(--tr-blue);color:#fff;border-color:var(--tr-blue)}
.trackingRuleNote{justify-self:end;background:#f4f8fb;border-radius:9px;padding:9px 12px;display:flex;flex-direction:column}
.trackingTableCard{overflow:hidden;padding:0!important}
.trackingTableHead{display:flex;justify-content:space-between;align-items:center;padding:14px 16px}
.trackingTableHead div{display:flex;flex-direction:column}
.readonlyPill{background:#eaf3fa;color:#075a97;border-radius:99px;padding:7px 11px;font-size:11px;font-weight:900}
.trackingTableScroll{overflow:auto}
.trackingTable{width:100%;border-collapse:collapse;min-width:1280px}
.trackingTable thead{background:linear-gradient(90deg,#075a97,#06477c);color:#fff}
.trackingTable th{padding:11px 9px;text-align:left;font-size:11px;text-transform:uppercase;white-space:nowrap}
.trackingTable th small{color:#dbefff;text-transform:none}
.trackingTable td{padding:10px 9px;border-bottom:1px solid #dfe9f0;font-size:13px;vertical-align:middle}
.trackingTable tbody tr:nth-child(even){background:#f8fbfd}
.trackingTable tbody tr:hover{background:#eef7fc}
.trackingTable td b{display:block;color:#123c60}
.trackingTable td small{display:block;color:#738598;margin-top:2px}
.trackingPill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;font-weight:900;white-space:nowrap}
.trackingPill.red{background:#ffe3e6;color:#c91f33}
.trackingPill.green{background:#dff8e9;color:#087a3d}
.trackingPill.amber{background:#fff0cf;color:#a55b00}
.trackingPill.blue{background:#e5f1fb;color:#075a97}
.trackingTime.bad{color:#d51f35;font-weight:900}
.trackingTime.good{color:#12804a;font-weight:900}
.trackingBalance.plus{background:#ffe3e6;color:#c91f33}
.trackingBalance.minus{background:#dff8e9;color:#087a3d}
.trackingBalance.zero{background:#edf2f6;color:#536779}
.trackingStatus{display:inline-flex;gap:6px;align-items:center;font-weight:900;border-radius:999px;padding:6px 10px}
.trackingStatus:before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
.trackingStatus.bad{background:#ffe3e6;color:#c91f33}
.trackingStatus.ok{background:#dff8e9;color:#087a3d}
.trackingEditBtn{padding:7px 12px!important;font-weight:900!important}
.trackingBottom{display:grid;grid-template-columns:1.3fr 1fr;gap:12px;margin-top:14px}
.trackingRules,.trackingLegend{border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700}
.trackingRules{background:#fff0f1;border:1px solid #ffc9cf;color:#9e2432}
.trackingLegend{background:#eef7ff;border:1px solid #c9e1f5;color:#194b70}
.lg{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}
.lg.red{background:#d92d3f}
.lg.green{background:#138a4b}
.lg.amber{background:#d88900}@media(max-width:1200px){
.trackingKpisRich{grid-template-columns:repeat(3,1fr)}
.trackingToolbar{grid-template-columns:1fr 1fr}
.trackingRuleNote{justify-self:stretch}}@media(max-width:700px){
.trackingKpisRich{grid-template-columns:1fr 1fr}
.trackingToolbar,.trackingBottom{grid-template-columns:1fr}
.trackingTypeFilters{overflow:auto}}
.trackingSetup{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin-top:12px;background:#eef7ff;border:1px solid #c9e1f5}
.trackingSetup p{margin:0;font-weight:700;color:#194b70}
.trackingActions{display:flex;gap:8px;flex-wrap:wrap}
.trackingStatus.pending{background:#fff0cf;color:#9a5a00}
.trackingDialog{border:0;border-radius:14px;box-shadow:0 18px 60px #17334c55;padding:22px;max-width:min(960px,95vw);max-height:85vh;overflow:auto;color:#163b59}
.trackingDialog::backdrop{background:#102f49a8}
.trackingDialog h3{margin:0 40px 8px 0}
.trackingClose{float:right;background:#edf3f8;color:#234;border:0;border-radius:7px;padding:6px 12px;cursor:pointer}
.trackingMapRow{display:grid;grid-template-columns:130px 1fr 1fr 120px auto;gap:8px;align-items:end;border-top:1px solid #dce8f1;padding:10px 0}
.trackingMapRow label,.trackingForm label{font-size:12px;font-weight:800;display:grid;gap:4px}
.trackingMapRow select,.trackingForm input,.trackingForm select,.trackingForm textarea{width:100%;box-sizing:border-box;padding:8px;border:1px solid #bfd0dc;border-radius:7px;background:#fff}
.trackingForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.trackingForm label:last-child{grid-column:1/-1}
@media(max-width:850px){
.trackingMapRow{grid-template-columns:1fr 1fr}
.trackingMapRow>b{grid-column:1/-1}
.trackingSetup{display:block}
.trackingActions{margin-top:10px}}
.trackingSecret{display:grid;grid-template-columns:1fr auto;gap:7px 10px;margin:14px 0;padding:12px;background:#eef7ff;border-radius:9px}
.trackingSecret label,.trackingSecret small{grid-column:1/-1}
.trackingSecret label{font-weight:800}
.trackingSecret input{min-width:0;padding:9px;border:1px solid #bfd0dc;border-radius:7px}
.trackingSecret small{color:#47647a}
@media(max-width:700px){
.trackingSecret{grid-template-columns:1fr}}
.trackingDateLayout{display:grid;grid-template-columns:270px 1fr;gap:20px;margin:16px 0;align-items:start}
.trackingCalendar{padding:14px;background:#f7faff}
.trackingCalendarHeader{display:flex;align-items:center;gap:5px;margin-bottom:14px}
.trackingCalendarHeader strong{flex:1;text-transform:capitalize;font-size:15px}
.trackingCalendarHeader button{border:0;background:transparent;color:#36566e;font-size:24px;cursor:pointer;padding:0 8px}
.trackingCalendarWeekdays,.trackingCalendarDays{display:grid;grid-template-columns:24px repeat(7,1fr);align-items:center;text-align:center;gap:5px 2px}
.trackingCalendarWeekdays{font-size:11px;margin-bottom:8px;color:#34566f}
.trackingCalendarDays button{width:27px;height:27px;border:0;border-radius:50%;background:transparent;color:#173b5c;cursor:pointer;font-size:12px;position:relative;padding:0;justify-self:center}
.trackingCalendarDays button:hover{background:#deecff}
.trackingCalendarDays button.outside{color:#8a9aad}
.trackingCalendarDays button.today{box-shadow:inset 0 0 0 1px #0d59d8}
.trackingCalendarDays button.selected{background:#0d59d8;color:#fff;font-weight:800}
.trackingCalendarDays button.hasData:after{content:'';position:absolute;width:3px;height:3px;border-radius:50%;background:currentColor;bottom:2px;left:12px}
.trackingWeekNumber{font-size:10px;padding:8px 0;background:#eaf0f9;border-radius:3px}
.trackingCalendar #trackingGoToday{margin-top:12px;font-size:12px;padding:6px 10px}
.trackingDaySummary{padding:14px 0}
.trackingDaySummary h3{font-size:23px;color:#123c60;text-transform:capitalize;margin:0 0 12px}
.trackingDaySummary p{color:#526d84}
.trackingToolbar{grid-template-columns:240px auto 1fr}
.trackingMapRow{grid-template-columns:130px 1fr 120px auto}@media(max-width:700px){
.trackingDateLayout{grid-template-columns:1fr}
.trackingCalendar{width:270px;max-width:100%;box-sizing:border-box}
.trackingToolbar,.trackingMapRow{grid-template-columns:1fr}}
.trackingToolbar input[type=date]{padding:11px;border:1px solid #c5d9e8;border-radius:8px;background:#fff;font:inherit;color:#163c5d}
.trackingJourneyDialog{width:min(1200px,94vw);max-width:1200px;max-height:90vh;overflow:auto;padding:28px;border:0;border-radius:20px;box-shadow:0 24px 80px #082f5266}
.trackingJourneyDialog::backdrop{background:#072d4f88;backdrop-filter:blur(4px)}
.trackingJourneyLayout{display:grid;grid-template-columns:320px 1fr;gap:22px;margin:22px 0}
#trackingTripList{max-height:460px;overflow:auto;display:grid;gap:10px;align-content:start}
.trackingTripCard{display:flex;gap:12px;align-items:center;text-align:left;background:#f4f9ff;color:#183e60;border:1px solid #c8deed;border-radius:12px;padding:15px;width:100%}
.trackingTripCard.active{border-color:#0864b0;box-shadow:0 0 0 2px #0864b022;background:#e7f2ff}
.trackingTripCard small{display:block;font-size:12px;margin-top:5px}
.trackingTripCard>span:last-child{font-size:11px;margin-left:auto}
.tripNumber{border-radius:50%;background:#075eaa;color:#fff;min-width:28px;height:28px;display:grid;place-items:center}
#trackingRouteMap{height:420px;border-radius:14px;background:#eaf2f7;z-index:0}
.trackingCorrection{border-top:1px solid #dce7ef;padding-top:16px}
.trackingCorrection summary{cursor:pointer;font-weight:700;color:#075eaa}
@media(max-width:800px){
.trackingJourneyLayout{grid-template-columns:1fr}
#trackingTripList{max-height:240px}
#trackingRouteMap{height:320px}}
.trackingWorkspace{display:grid;grid-template-columns:290px minmax(0,1fr);gap:24px;align-items:start;margin-top:22px}
.trackingSidebar{padding:20px!important;background:#fff;border:1px solid #dae5ed;border-radius:16px;box-shadow:0 4px 18px #153e5d08}
.trackingTechChoice{display:block;padding-bottom:18px;border-bottom:1px solid #e8eef3}
.trackingTechChoice>span,.trackingDateFields label>span{display:block;font-size:11px;font-weight:800;color:#627b8d;letter-spacing:.04em;text-transform:uppercase;margin-bottom:7px}
.trackingTechChoice select{width:100%;height:44px;border:1px solid #ccdae4;border-radius:9px;background:#f7fafc;padding:0 12px;font:inherit;font-weight:650;color:#174063}
.trackingSidebar .trackingCalendar{padding:18px 0;background:transparent;width:auto;max-width:none}
.trackingCalendarHeader strong{font-size:14px;white-space:nowrap}
.trackingCalendarHeader button{width:28px;height:28px;font-size:20px;padding:0;border-radius:6px;background:#f2f6fa}
.trackingCalendarWeekdays,.trackingCalendarDays{gap:6px 2px}
.trackingCalendarDays button{width:28px;height:28px;font-weight:600;font-size:12px}
.trackingWeekNumber{background:transparent;color:#9aabb9;padding:4px 0}
.trackingCalendarDays button.selected{background:#0964b1}
.trackingCalendarDays button.outside{opacity:.6}
.trackingSidebar #trackingGoToday{width:100%;margin-top:16px;padding:9px;background:#f3f7fb;color:#165886;border:1px solid #dae6ef}
.trackingPeriodPicker{padding-top:18px;border-top:1px solid #e8eef3}
.trackingPeriodPicker>b{font-size:12px;color:#526e84}
.trackingDateFields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0}
.trackingDateFields input{width:100%;min-width:0;box-sizing:border-box;height:39px;padding:6px;border:1px solid #cfdce6;border-radius:8px;background:#fff;font-size:12px;color:#294d68}
.trackingPeriodPicker>button{width:100%;padding:11px;font-size:13px;border-radius:9px}
.trackingHeaderActions{display:flex;align-items:center;gap:15px}
.trackingHeaderActions button{width:auto;padding:9px 15px;font-size:12px}
.trackingSync{font-size:12px;font-weight:600;color:#7a8d9d}
.trackingResults{min-width:0}
.trackingCumulative[hidden],.trackingViewStatus[hidden]{display:none!important}
.trackingCumulative{padding:0 0 20px}
.trackingCumulativeHeading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}
.trackingCumulativeHeading h3{font-size:19px;margin:4px 0 0;color:#143e60}
.trackingCumulativeHeading p{margin:0;text-align:right;font-size:12px;color:#667d8f}
.trackingCumulativeHeading small{display:block;font-size:11px;margin-top:5px}
.trackingResults .trackingKpisRich{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.trackingResults .trackingKpi{padding:18px;border-radius:13px;min-height:104px;box-sizing:border-box;box-shadow:none}
.trackingKpi strong{font-size:32px;margin:10px 0 8px}
.trackingKpi small{font-size:11px;font-weight:500}
.kpiRed{background:#fff4f4;border-color:#f1d8dc;color:#b6384d}
.kpiAmber{background:#fff9ed;border-color:#eddfc6;color:#a46612}
.kpiBlue{background:#eef6fc;border-color:#d0e3f0;color:#126098}
.trackingDaySummary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0;margin:3px 0 14px}
.trackingDaySummary h3{font-size:19px;margin:5px 0 0;text-transform:capitalize}
.trackingDaySummary .eyebrow,.trackingCumulativeHeading .eyebrow{font-size:10px;color:#7890a2;letter-spacing:.08em}
.readonlyPill{background:#edf4f8;color:#638095;font-size:10px;font-weight:700}
.trackingTable{min-width:1050px}
.trackingTable thead{background:#f0f5f9;color:#47667e}
.trackingTable th{padding:14px 12px;font-size:10px;letter-spacing:.03em;border-bottom:1px solid #dbe6ef}
.trackingTable td{padding:14px 12px;font-size:12px}
.trackingTable td small{font-size:10px}
.trackingTable td b{font-size:12px}
.trackingTableCard{border:1px solid #dbe6ee;border-radius:13px;box-shadow:none}
.trackingPill{padding:4px 8px;font-size:11px;font-weight:700}
.trackingStatus{font-size:10px;font-weight:700;padding:5px 8px}
.trackingEditBtn{width:auto!important;min-width:66px;padding:7px 11px!important;font-size:11px!important;border-radius:7px!important}
.trackingHelp{margin-top:17px;font-size:12px;color:#7a8e9e}
.trackingHelp summary{cursor:pointer;font-weight:600}
.trackingHelp p{line-height:1.6;max-width:850px}
.trackingViewStatus{padding:12px 16px;background:#fff6e5;border:1px solid #eddab4;border-radius:10px;color:#8d631d;font-size:13px}
.trackingAdminCard small{display:block;font-size:12px;color:#6d8294;margin-top:12px}
.trackingAdminCard button{width:auto}
.trackingAdminCard p{font-size:13px;color:#60788d;line-height:1.6}
.trackingMapRow{grid-template-columns:150px minmax(0,1fr) 120px;align-items:center}
.trackingMapRow button{width:auto}
@media(max-width:1000px){
.trackingWorkspace{grid-template-columns:250px minmax(0,1fr);gap:16px}
.trackingSidebar{padding:15px!important}
.trackingCumulativeHeading{align-items:start;flex-direction:column;gap:8px}
.trackingCumulativeHeading p{text-align:left}
.trackingResults .trackingKpi{padding:12px}
.trackingKpi strong{font-size:25px}}
@media(max-width:700px){
.trackingWorkspace{grid-template-columns:1fr}
.trackingSidebar{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.trackingTechChoice{grid-column:1/-1}
.trackingPeriodPicker{border-top:0;padding-top:18px}
.trackingCalendar{margin:0}
.trackingHeaderActions{gap:8px}
.trackingSync{max-width:130px}
.trackingDaySummary h3{font-size:16px}
.trackingResults .trackingKpisRich{gap:7px}
.trackingKpi span{font-size:10px}
.trackingKpi small{font-size:10px}
.trackingMapRow{grid-template-columns:1fr}}
@media(max-width:420px){
.trackingSidebar{display:block}
.trackingPeriodPicker{border-top:1px solid #e8eef3}
.trackingKpi strong{font-size:23px}}
.trackingSidebar .trackingCalendarHeader button{min-height:28px;height:28px;line-height:1;font-weight:500}
.trackingSidebar .trackingCalendarDays button{min-height:28px;height:28px;line-height:1}
.trackingPanel .trackingTable thead{background:#edf3f8!important;color:#47667e!important}
.trackingPanel .trackingTable th{color:#47667e!important}
.trackingPanel .trackingTable thead th{background:#edf3f8!important;color:#47667e!important}
.giftActions{display:flex;gap:8px;flex-wrap:wrap}
.giftActions button{width:auto}
.giftNotice{padding:14px 18px;background:#edf5fc;border:1px solid #d4e4f2;border-radius:12px;color:#42647e;font-size:13px}
.giftStats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0}
.giftStats article{background:#fff;border:1px solid #dbe7ef;border-radius:14px;padding:20px}
.giftStats span{font-size:12px;color:#698194}
.giftStats strong{display:block;font-size:30px;margin-top:6px;color:#075e99}
.giftToolbar{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:14px;align-items:end;padding:18px}
.giftToolbar label{font-size:12px;color:#577287;font-weight:700;display:grid;gap:7px}
.giftToolbar input,.giftToolbar select{width:100%;box-sizing:border-box;min-width:0;height:42px;padding:9px;border:1px solid #cfdee9;border-radius:8px;background:#fff}
.giftToolbar button{width:auto}
.giftTableCard{padding:0!important;overflow:hidden;border-radius:13px}
.giftTable{width:100%;min-width:1100px;border-collapse:collapse}
.giftTable th{padding:15px;text-align:left;font-size:11px;background:#eaf2f8;color:#466b87}
.giftTable td{padding:15px;border-bottom:1px solid #e0e9f0;font-size:12px}
.giftTable b,.giftTable small{display:block}
.giftTable small{color:#778c9c;margin-top:5px;max-width:300px}
.giftTable button{width:auto}
.giftBadge{display:inline-block;padding:5px 10px;border-radius:99px;background:#fff1d8;color:#946122;font-weight:700}
.giftBadge.done{background:#e5f6eb;color:#298250}
.giftAlert{display:block;color:#b24545;font-size:11px;margin-top:7px}
.giftFootnote{font-size:12px;color:#718797;line-height:1.7;margin-top:17px}
@media(max-width:800px){
.giftToolbar{grid-template-columns:1fr 1fr}
.giftStats{gap:8px}
.giftStats article{padding:13px}
.giftStats span{font-size:10px}}@media(max-width:480px){
.giftToolbar{grid-template-columns:1fr}}

/* Suivi postal : logo fourni, numéro manuel conservé côté serveur. */
.postalButton {display:inline-flex;align-items:center;gap:12px;max-width:100%;padding:10px 14px 10px 8px;margin-top:8px;border:1px solid #e3e7ee;border-bottom:3px solid #ffcd00;border-radius:14px;background:#fff;color:#173f79;text-decoration:none;box-shadow:0 3px 12px #173f790a;transition:transform .18s ease,box-shadow .18s ease;}
.postalButton:hover {transform:translateY(-2px);box-shadow:0 7px 18px #173f7918;border-color:#e4b800;}
.postalButton:focus-visible {outline:3px solid #164a90;outline-offset:4px;}
.postalButton strong {display:block;font-size:13px;line-height:1.4;}
.postalButton small {display:block;font-size:11px;color:#637086;overflow-wrap:anywhere;}
.postalLogo {display:block;position:relative;overflow:hidden;width:50px;height:44px;flex-shrink:0;background:white;border-radius:8px;}
.postalLogo img {position:absolute;max-width:none!important;width:134px!important;height:76px!important;left:-42px;top:-13px;}
.postalDisabled {opacity:.55;cursor:default;box-shadow:none;}
.postalDisabled:hover {transform:none;box-shadow:none;border-color:#e3e7ee;}
@media(prefers-reduced-motion:reduce){.postalButton{transition:none}.postalButton:hover{transform:none}}

.mcPanel{--mc-blue:#163f73;--mc-red:#bc3c49;--mc-green:#177a61}
.mcKpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}.mcKpis article,.mcKpis>button{padding:22px;border:1px solid #e0e8f0;border-radius:18px;background:white;color:var(--mc-blue);text-align:left;box-shadow:0 5px 20px #163f7305}.mcKpis strong{display:block;font-size:36px;margin:8px 0}.mcKpis small{display:block;font-size:11px;color:#6a7c8f}.mcKpis .mcUrgentTile,.mcUrgentTile{background:#fff2f2;color:#a3293e;border-color:#fad0d7}.mcImportBox,.mcSummary{padding:18px;margin:18px 0}.mcImportBox summary,.mcSummary summary{font-weight:700;cursor:pointer}.mcInputs{display:flex;gap:20px;align-items:end;flex-wrap:wrap;margin-top:18px}.mcInputs label{flex:1;min-width:200px}.mcInputs input{display:block;width:100%;margin-top:8px}.mcImportBox p{font-size:12px;color:#65758a}.mcTable{min-width:1100px}.mcTable td{vertical-align:top;padding:18px 12px!important}.mcTable small,.mcSummary small{display:block;color:#64758a;font-size:11px;margin:5px 0}.mcUrgentRow{background:#fff7f7}.mcUrgency{padding:6px;border:1px solid #dce3eb;background:white;opacity:.45;margin-right:7px}.mcUrgency.active{opacity:1;border-color:#e37a89;background:#ffe7e9}.mcBadge{display:inline-block;padding:6px 10px;border-radius:20px;font-size:11px;font-weight:700;background:#edf0f5;color:#586879}.mcBadge.ready{background:#e3f7ef;color:#146851}.mcBadge.waiting{background:#fff2d9;color:#895814}.mcBadge.cancelled,.mcBadge.review{background:#ffe8e8;color:#b03a43}.mcBadge.sent{background:#e9effb;color:#335c97}.mcModified{color:#8352aa!important}.mcSectionTitle{margin-top:40px}.mcTotals{background:#eaf1fa;font-weight:bold}.mcDialog{width:min(680px,94vw);max-height:90vh;overflow:auto}.mcDialog label{display:block;margin:16px 0;font-size:13px;font-weight:600}.mcDialog input:not([type=checkbox]),.mcDialog select,.mcDialog textarea{display:block;width:100%;margin-top:8px}.mcNational{padding:14px;background:#f0f5ff;border-radius:12px}.mcDialog hr{border:0;border-top:1px solid #e3e9f1;margin:24px 0}#mcDetailError,#mcOrderError{color:#a92b43;white-space:pre-wrap}.mcSuccess{animation:mcSent .6s ease;background:#e0f7eb!important;color:#146851}@keyframes mcSent{from{transform:translateY(8px);opacity:.4}to{transform:translateY(0);opacity:1}}@media(max-width:900px){.mcKpis{grid-template-columns:repeat(2,minmax(0,1fr))}.mcInputs{display:block}.mcInputs>*{margin:12px 0}}@media(prefers-reduced-motion:reduce){.mcSuccess{animation:none}}
