/* Grilles du widget Planning — couleurs communes du CRM, styles limités au widget. */
#dash-widget-planning54{min-width:0}#dash-widget-planning54 [data-dash-body]{min-width:0}#dash-widget-planning54 .pw55-toolbar,#dash-widget-planning54 .pw55-week-controls,#dash-widget-planning54 .pw55-filters{display:flex;align-items:center;flex-wrap:wrap;gap:7px}#dash-widget-planning54 .pw55-toolbar{justify-content:space-between;margin:14px 0 12px;gap:12px}#dash-widget-planning54 .pw55-range{font-size:12px;margin:0 5px;font-weight:700;color:var(--ws-text)}
#dash-widget-planning54 .pw55-btn,.pw55-detail .pw55-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:36px!important;padding:8px 10px!important;margin:0!important;font:inherit;font-size:12px;font-weight:600;line-height:1.4;color:var(--ws-text)!important;background:var(--ws-panel)!important;border:1px solid var(--ws-line)!important;border-radius:9px!important;box-shadow:none!important;cursor:pointer;text-decoration:none}#dash-widget-planning54 .pw55-btn:disabled{opacity:.45;cursor:default}#dash-widget-planning54 select{width:auto;min-width:0;max-width:220px;margin:0;padding:8px 10px;border:1px solid var(--ws-line);border-radius:9px;font-size:12px;background:var(--ws-panel);color:var(--ws-text);height:auto}
#dash-widget-planning54 .pw55-message{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 14px;font-size:11px;line-height:1.6;color:var(--ws-muted)}#dash-widget-planning54 .pw55-link{color:var(--ws-accent);font-size:11px;font-weight:600;text-decoration:none}#dash-widget-planning54 .pw55-location{border:1px solid var(--ws-line);border-radius:12px;overflow:hidden;margin-top:16px;background:var(--ws-panel)}#dash-widget-planning54 .pw55-location-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:var(--ws-panel2);border-bottom:1px solid var(--ws-line)}#dash-widget-planning54 .pw55-location-head h4{font-size:13px;font-weight:750;line-height:1.4;margin:0;color:var(--ws-text)}#dash-widget-planning54 .pw55-location-head small{font-size:10px;color:var(--ws-muted);white-space:nowrap}
#dash-widget-planning54 .pw55-table-scroll{overflow:auto;max-height:360px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--ws-line) transparent;-webkit-overflow-scrolling:touch}#dash-widget-planning54 table.pw55-week{width:100%;min-width:790px;table-layout:fixed;border-collapse:separate;border-spacing:0;border:0;margin:0;background:var(--ws-panel);font-size:11px}#dash-widget-planning54 .pw55-week th,#dash-widget-planning54 .pw55-week td{padding:10px 8px;border:0;border-bottom:1px solid var(--ws-line);border-right:1px solid var(--ws-line);text-align:left;vertical-align:top;background:var(--ws-panel);color:var(--ws-text);font-size:11px;line-height:1.5;white-space:normal;box-shadow:none;min-width:0;max-width:none}#dash-widget-planning54 .pw55-week tr:last-child>td,#dash-widget-planning54 .pw55-week tr:last-child>th{border-bottom:0}#dash-widget-planning54 .pw55-week tr>:last-child{border-right:0}#dash-widget-planning54 .pw55-week thead th{position:sticky;top:0;z-index:2;height:47px;text-align:center;font-size:10px;font-weight:650;color:var(--ws-muted);text-transform:none;letter-spacing:normal}#dash-widget-planning54 .pw55-week tr>:first-child{position:sticky;left:0;z-index:1;width:140px;background:var(--ws-panel)}#dash-widget-planning54 .pw55-week thead tr>:first-child{z-index:3;text-align:left}#dash-widget-planning54 .pw55-week td{height:82px}#dash-widget-planning54 .pw55-week .pw55-today{background:color-mix(in srgb,var(--ws-accent) 5%,var(--ws-panel))}#dash-widget-planning54 .pw55-week th.pw55-today{color:var(--ws-accent)}#dash-widget-planning54 .pw55-person{display:flex;align-items:center;gap:8px;font-weight:600;padding-top:3px;overflow-wrap:anywhere}#dash-widget-planning54 .pw55-person strong{font-size:11px;color:var(--ws-text);font-weight:650}#dash-widget-planning54 .pw55-avatar{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:50%;background:var(--ws-panel2);color:var(--ws-accent);font-size:9px;font-weight:750}
#dash-widget-planning54 .pw55-shift{display:block!important;width:100%!important;min-height:0!important;padding:8px 5px!important;margin:0 0 5px!important;border:1px solid color-mix(in srgb,var(--ws-accent) 24%,var(--ws-line))!important;border-left:3px solid var(--ws-accent)!important;border-radius:7px!important;background:var(--ws-panel2)!important;color:var(--ws-text)!important;box-shadow:none!important;font-size:10px!important;line-height:1.6!important;text-align:left!important;cursor:pointer;transform:none!important;white-space:normal}#dash-widget-planning54 .pw55-shift strong{display:block;font-size:10px;font-weight:700;color:var(--ws-text)}#dash-widget-planning54 .pw55-shift small{display:block;font-size:9px;color:var(--ws-muted);margin:0}#dash-widget-planning54 .pw55-shift.pw55-draft{border-style:dashed!important;border-left-style:solid!important}#dash-widget-planning54 .pw55-absence,#dash-widget-planning54 .pw55-rest{display:block;border-radius:7px;padding:9px 5px;font-size:10px;margin-bottom:5px;background:var(--warning-bg,#FFF0D5);color:var(--warning-text,#825000)}#dash-widget-planning54 .pw55-rest{background:var(--ws-panel2);color:var(--ws-muted)}#dash-widget-planning54 .pw55-empty-cell{display:block;font-size:10px;text-align:center;margin-top:17px;color:var(--ws-muted);opacity:.6}#dash-widget-planning54 .pw55-empty{padding:16px;margin:0;font-size:12px;color:var(--ws-muted)}#dash-widget-planning54 .pw55-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin-top:20px;font-size:10px;color:var(--ws-muted)}#dash-widget-planning54 .pw55-legend{display:flex;gap:12px;flex-wrap:wrap}#dash-widget-planning54 .pw55-legend span:before{content:'';display:inline-block;width:6px;height:6px;border-radius:2px;background:var(--ws-accent);margin-right:5px}#dash-widget-planning54 .pw55-legend [data-state=draft]:before{border:1px dashed var(--ws-accent);background:transparent}#dash-widget-planning54 .pw55-legend [data-state=absence]:before{background:var(--warning-text,#825000)}#dash-widget-planning54 .pw55-footer[hidden]{display:none!important}#dash-widget-planning54 .pw55-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.pw55-detail{width:440px;max-width:94vw;max-height:90dvh;overflow:auto;padding:22px!important;background:var(--ws-panel)!important;color:var(--ws-text)!important;border:1px solid var(--ws-line)!important;border-radius:16px!important;box-shadow:0 18px 70px #0004}.pw55-detail::backdrop{background:#0b102080}.pw55-detail header{display:flex;align-items:center;justify-content:space-between;gap:15px}.pw55-detail h2{font-size:18px;font-weight:750;margin:0!important;color:var(--ws-text)}.pw55-detail dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;margin:24px 0;font-size:13px}.pw55-detail dt{color:var(--ws-muted)}.pw55-detail dd{margin:0;color:var(--ws-text);overflow-wrap:anywhere}.pw55-detail footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}.pw55-detail .pw55-link{color:var(--ws-accent);font-size:12px;font-weight:600}#dash-widget-planning54 :is(button,select,a):focus-visible,.pw55-detail :is(button,a):focus-visible{outline:2px solid var(--ws-accent)!important;outline-offset:2px}
@media(max-width:760px){#dash-widget-planning54 .pw55-toolbar{gap:10px}#dash-widget-planning54 .pw55-filters{width:100%}#dash-widget-planning54 .pw55-filters select{flex:1;max-width:100%}#dash-widget-planning54 .pw55-week-controls{gap:4px}#dash-widget-planning54 .pw55-range{font-size:11px;margin:0 2px}#dash-widget-planning54 .pw55-week-controls .pw55-btn{padding:8px!important}#dash-widget-planning54 .pw55-table-scroll{max-height:300px}#dash-widget-planning54 .pw55-week tr>:first-child{width:120px}#dash-widget-planning54 .pw55-location-head{padding:12px;flex-wrap:wrap;gap:5px}.pw55-detail{padding:16px!important}}
#dash-widget-planning54 .pw55-week tbody th{font-size:11px!important;text-transform:none!important;letter-spacing:normal!important;background:var(--ws-panel)!important;color:var(--ws-text)!important}
#dash-widget-planning54 .pw55-week td{padding:10px 8px!important;vertical-align:top!important}#dash-widget-planning54 .pw55-week th{padding:10px 8px!important}#dash-widget-planning54 .pw55-week thead th{background:var(--ws-panel)!important}#dash-widget-planning54 .pw55-week thead th.pw55-today{background:var(--ws-panel2)!important;color:var(--ws-accent)!important}
#dash-widget-planning54 table.pw55-week{width:max(100%,790px)!important;min-width:790px!important;max-width:none!important}#dash-widget-planning54 .pw55-shift strong{white-space:nowrap}
