/* PGEO — photographic reference, 8 September 2026. No permission or feature changes. */
:root{--reference-bg:#091725;--reference-panel:#102231;--reference-line:#233b4d;--reference-text:#edf3f9;--reference-muted:#a5b8ce;--reference-blue:#318bfa}
body.v17-theme{background:var(--reference-bg)!important;color:var(--reference-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.v17-light main{background:linear-gradient(135deg,#0a1826,#081522)!important}
.v17-light .app-sidebar{background:#0b1927!important;border-color:var(--reference-line)!important;box-shadow:none!important}
.v17-light :is(.panel,.entity-card,.tutorial-card,.metric-group,.comment-row,.map-ledger-side,.sandbox-summary,.standby-zone){background:var(--reference-panel)!important;color:var(--reference-text)!important;border:1px solid var(--reference-line)!important;border-radius:12px;box-shadow:none!important}
.v17-light :is(.section-head h2,.panel h2,.panel h3){color:var(--reference-text)!important;font-style:normal;letter-spacing:-.025em}
.v17-light :is(small,.hint){color:var(--reference-muted)}
.v17-light button{border-radius:9px;background:#122535;color:#dce8f5;border-color:#294052;box-shadow:none}
.v17-light button:hover{background:#1b354d;border-color:#4784b4}
.v17-light button:focus-visible{outline:2px solid #65adff;outline-offset:3px}
.v17-light button.primary,.v17-light .primary{background:#267fdf!important;border-color:#4a9eff!important;box-shadow:none!important}
.v17-light :is(input,select,textarea,.form-grid input,.form-grid select,.form-grid textarea){background:#0c1e2e!important;color:var(--reference-text)!important;border-color:#2a4358!important;border-radius:7px}
.v17-light :is(input,textarea)::placeholder{color:#93a9c0}
.v17-light dialog{background:#102231!important;border-color:#2a4358!important;border-radius:14px!important}
.v17-light .dialog-head{background:#102231}
.v17-light .admin-table,.v17-light .admin-table td,.v17-light #companyTable td,.v17-light #companyTable td b{background:#102231!important;color:var(--reference-text)!important;border-color:var(--reference-line)!important}
.v17-light .admin-table th,.v17-light #companyTable th{background:#142c41!important;color:#c3d3e4!important;border-color:var(--reference-line)!important}
.v17-light #companyTable td small{background:transparent!important;color:var(--reference-muted)!important}
.v17-light .app-sidebar .nav{color:var(--reference-muted)!important;border-radius:9px!important}
.v17-light .app-sidebar .nav.active{background:#173959!important;color:#55a2ff!important;box-shadow:inset 3px 0 #318bfa!important}
.reference-planning-heading{display:flex;justify-content:space-between;align-items:center;margin:4px 0 22px;gap:16px}
.reference-planning-heading h1{margin:0;font-size:34px;line-height:1.2;letter-spacing:-.025em;color:#f5f8fc}
.reference-planning-heading p{margin:4px 0 0;color:var(--reference-muted);font-size:19px}
.reference-week{font-weight:700;font-size:24px;border:1px solid #263f53;background:#102231;border-radius:8px;padding:9px 23px;min-width:80px;text-align:center}
.reference-planning-controls{margin:18px 0}
.reference-modes{display:flex;border:1px solid #334b60;border-radius:10px;max-width:530px;overflow:hidden;margin-bottom:16px}
.reference-modes button{flex:1;border:0!important;border-radius:8px!important;background:transparent!important;color:#b6c8dc!important;padding:12px!important;font-size:16px;font-weight:500}
.reference-modes button.active{background:#215eac!important;color:#f4f8fe!important;box-shadow:inset 0 0 0 1px #469afa!important}
.reference-days{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 0 8px;max-width:750px}
.reference-days[hidden],.reference-day-title[hidden]{display:none!important}
.reference-days button{flex:0 0 calc((100% - 40px)/5);min-width:60px;display:grid;gap:4px;justify-items:center;padding:12px 6px!important;scroll-snap-align:start;background:#102231!important;border-color:#1d3446!important;color:var(--reference-muted)!important}
.reference-days button span{text-transform:capitalize;font-size:14px}.reference-days button strong{font-size:18px;color:#edf3f9}
.reference-days button.active{background:#318bfa!important;color:white!important;border-color:#529fff!important}
.reference-day-title{font-size:24px;color:#edf3f9;margin:20px 0 12px;letter-spacing:-.02em}.reference-day-title:first-letter{text-transform:uppercase}
.v17-light .planner-scroll{background:#0b1a28!important;border-color:#233b4d!important;border-radius:12px}
.v17-light :is(#planningTable,.company-planning-table) :is(th,td){border-color:#233b4d!important}
.v17-light :is(#planningTable,.company-planning-table) tbody tr>td,.v17-light :is(#planningTable,.company-planning-table) tbody tr:nth-child(even)>td{background:#0d2030!important}
.v17-light :is(#planningTable,.company-planning-table) tbody tr .geo-col{background:#0b1a28!important;color:#eaf3fb!important}
.v17-light :is(#planningTable,.company-planning-table) thead th{background:#142b3e!important;color:#b8cbe0!important}
.v17-light :is(#planningTable,.company-planning-table) .today-head{background:#226abb!important;color:white!important;box-shadow:inset 0 -3px #60aaff!important}
.v17-light :is(#planningTable,.company-planning-table) .today-cell{box-shadow:inset 1px 0 #318bfa,inset -1px 0 #318bfa!important}
body.v17-light #planning :is(#planningTable,.company-planning-table) tbody tr>td{background:#0d2030!important}
body.v17-light #planning :is(#planningTable,.company-planning-table) .today-head :is(.day-name,.day-num){color:#f4f8fe!important}
.v17-light :is(#planningTable,.company-planning-table) .task{--task-accent:#65a6ed;background:linear-gradient(110deg,#132737,#102231)!important;border:1px solid #253d50!important;border-left:5px solid var(--task-accent)!important;border-radius:10px!important;color:#edf3f9!important;filter:none!important;box-shadow:0 3px 12px #00000012!important;padding:12px 12px 14px!important;min-height:132px!important;height:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;overflow:visible!important}
.v17-light :is(#planningTable,.company-planning-table) .task:hover{background:#163047!important;border-top-color:#427197!important}
body.v17-light :is(#planningTable,.company-planning-table) .cell{height:auto!important;overflow:visible!important;min-height:132px!important}
body.v17-light :is(#planningTable,.company-planning-table) .task{flex:0 0 auto!important}
body.v17-light :is(#planningTable,.company-planning-table) .task:only-child,body.v17-light :is(#planningTable,.company-planning-table) .task:first-child:nth-last-child(2),body.v17-light :is(#planningTable,.company-planning-table) .task:first-child:nth-last-child(2)~.task{min-height:132px!important;flex-basis:auto!important}
.v17-light :is(#planningTable,.company-planning-table) .task.pending-request{--task-accent:#a2acba!important;border-style:dashed!important}
.v17-light :is(#planningTable,.company-planning-table) .task-commune-vertical{position:static!important;writing-mode:horizontal-tb!important;max-width:none!important;font-size:10px!important;font-weight:500!important;text-transform:uppercase;color:#a6bdd3!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;align-self:center}
.v17-light :is(#planningTable,.company-planning-table) .task-commune-vertical:before{content:'⌖';margin-right:6px;color:#b8d0e8}
.v17-light :is(#planningTable,.company-planning-table) .task-type-vertical{position:static!important;writing-mode:horizontal-tb!important;transform:none!important;font-size:10px!important;max-width:none!important;background:color-mix(in srgb,var(--task-accent) 16%,transparent)!important;color:var(--task-accent)!important;border-radius:5px;padding:4px 7px;font-weight:650;align-self:start}
.v17-light :is(#planningTable,.company-planning-table) .task-name{position:static!important;transform:none!important;grid-column:1/-1!important;display:block!important;margin:0!important;padding:0!important;text-align:left!important;font-size:17px!important;line-height:1.25!important;max-height:none!important;overflow:visible!important}
.v17-light :is(#planningTable,.company-planning-table) .task-name span{font-weight:650!important;color:#edf3f9!important}
.v17-light :is(#planningTable,.company-planning-table) .task-foot{position:static!important;grid-column:1/-1;display:flex!important;align-items:center!important;gap:8px;flex-wrap:wrap;margin:3px 0 0!important;padding:11px 38px 0 0!important;border-top:1px solid #253d50}
.v17-light :is(#planningTable,.company-planning-table) .task-duration{right:12px!important;bottom:19px!important;font-size:12px!important;font-weight:600!important;color:#edf3f9!important;opacity:1!important}
.v17-light :is(#planningTable,.company-planning-table) .task-people,.v17-light :is(#planningTable,.company-planning-table) .equipment-icons{display:flex;gap:4px;flex-wrap:wrap}
.v17-light :is(#planningTable,.company-planning-table) .eq{color:#aec8df!important;background:transparent!important;border:0!important;padding:1px!important}
.v17-light :is(#planningTable,.company-planning-table) .trigram-badge{width:29px;height:29px;font-size:10px;box-shadow:inset 0 0 0 1.5px #c5d8ed}
.v17-light :is(#planningTable,.company-planning-table) .trigram-geometer{width:46px;height:46px;font-size:15px;box-shadow:inset 0 0 0 2px #9ebcd4}
.v17-light #planning .standby-zone{margin-top:24px!important;padding:16px!important;background:#0c1d2c!important}
.v17-light .standby-head strong{font-size:18px;letter-spacing:0;color:#eaf3fb}
.reference-day-view .planner-scroll{overflow:visible!important;border:0!important;background:transparent!important}
.reference-day-view :is(#planningTable,.company-planning-table){display:block;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}
.reference-day-view :is(#planningTable,.company-planning-table)>colgroup,.reference-day-view :is(#planningTable,.company-planning-table)>thead{display:none!important}
.reference-day-view :is(#planningTable,.company-planning-table)>tbody{display:block}
.reference-day-view :is(#planningTable,.company-planning-table) tbody td{max-width:none!important}
.v17-light .task-templates{background:#102231!important;border-color:#263e52!important}
.v17-light .task-template{background:#142c41!important;color:#e4eef8!important;border-left-color:var(--template-color)!important}
.task-templates:empty{min-height:0!important;padding:0!important;border:0!important;margin:0!important}
.reference-day-view :is(#planningTable,.company-planning-table)>tbody>tr{display:grid;grid-template-columns:76px minmax(0,1fr);gap:16px;margin-bottom:16px}
.v17-light .reference-day-view :is(#planningTable,.company-planning-table) tbody tr>td,.v17-light .reference-day-view :is(#planningTable,.company-planning-table) tbody tr>.geo-col{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;position:static!important;width:auto!important;min-width:0!important}
body.v17-light #planning.reference-day-view :is(#planningTable,.company-planning-table) tbody tr>td{background:transparent!important}
.reference-day-view :is(#planningTable,.company-planning-table) td.reference-other-day{display:none!important}
.reference-day-view :is(#planningTable,.company-planning-table) .cell{min-height:112px!important}
.reference-day-view :is(#planningTable,.company-planning-table) .task{min-height:146px!important;margin:0 0 10px!important;padding:14px 18px 18px!important}
.reference-day-view :is(#planningTable,.company-planning-table) .task-name{font-size:21px!important}
.reference-day-view :is(#planningTable,.company-planning-table) .task-commune-vertical{font-size:12px!important}
.reference-day-view :is(#planningTable,.company-planning-table) .task-duration{bottom:23px!important;right:18px!important;font-size:14px!important}
.reference-day-view :is(#planningTable,.company-planning-table) .geo-avatar{padding-top:28px!important}
.reference-day-view :is(#planningTable,.company-planning-table) .trigram-geometer{width:56px;height:56px;font-size:18px}
.reference-day-view .reference-empty{border:1px dashed #30485c;border-radius:10px;padding:30px 20px;color:#afc2d7;background:#0c1d2c}
.reference-day-view .reference-empty:before{content:'＋  Disponible';font-size:18px;font-weight:600;color:#dce8f5;display:block;pointer-events:none}
.reference-day-view .reference-empty:after{content:'Aucune affectation';display:block;margin:5px 0 0 28px;font-size:13px;pointer-events:none}
@media(max-width:600px){
 .v17-light main{padding:20px 16px 28px!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 #planning{width:100%!important;min-width:0!important;max-width:100%!important}
 #planning .reference-planning-controls,#planning .reference-planning-heading{min-width:0!important;max-width:100%!important}
 .reference-planning-heading{margin:5px 4px 20px}.reference-planning-heading h1{font-size:30px}.reference-planning-heading p{font-size:17px}
 .reference-modes{max-width:none}.reference-day-title{font-size:22px}
 #planning .toolbar{flex-wrap:wrap;gap:8px;background:transparent!important;border:0!important;padding:0!important}
 #planning .toolbar #range{order:-1;width:100%;text-align:center;color:#dce8f5;font-size:14px}
 .reference-day-view :is(#planningTable,.company-planning-table)>tbody>tr{grid-template-columns:58px minmax(0,1fr);gap:12px}
 .reference-day-view :is(#planningTable,.company-planning-table) .task{padding:12px 12px 16px!important}.reference-day-view :is(#planningTable,.company-planning-table) .task-name{font-size:18px!important}
 .reference-day-view :is(#planningTable,.company-planning-table) .task-commune-vertical{font-size:10px!important}.reference-day-view :is(#planningTable,.company-planning-table) .task-duration{right:12px!important;font-size:12px!important}
 .reference-day-view :is(#planningTable,.company-planning-table) .trigram-geometer{width:46px;height:46px;font-size:15px}
 .v17-light .app-sidebar{background:#0a1929!important;border-top:1px solid #263e52!important}
 .v17-light .app-sidebar .nav.active{background:#12304a!important;box-shadow:inset 0 2px #318bfa!important}
}
/* Match login surfaces without touching authentication controls. */
body.pgeo-reference-login{background:#091725!important}
body.pgeo-reference-login:before,body.pgeo-reference-login:after{opacity:.07!important}
.pgeo-reference-login main{background:#102231!important;border:1px solid #263e52!important;box-shadow:0 18px 60px #0003!important;border-radius:16px!important}
.pgeo-reference-login .primary{background:#267fdf!important;box-shadow:none!important}
