/* To do list — poste de pilotage quotidien. */
#todoView{max-width:1480px;margin:0 auto}
.todo-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:2px 0 13px;padding-bottom:12px;border-bottom:1px solid #e1ebe5}
.todo-head .eyebrow{display:block;margin:0 0 7px;color:#0b9368;font-size:11px;font-weight:800;letter-spacing:1.3px}
.todo-head h1{margin:0;color:#183229;font:800 27px/1.1 Manrope,sans-serif;letter-spacing:-1.1px}
.todo-head p{margin:5px 0 0;color:#6d7c74;font-size:13px;line-height:1.4}
.todo-date{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #d5eade;border-radius:999px;background:#f5fcf8;color:#087f5b;font-size:10px;font-weight:800;white-space:nowrap}
.todo-date:before{content:'◷';font-size:14px}
.todo-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.todo-summary-card{padding:11px 14px;border:1px solid #dfeae4;border-radius:13px;background:#fff;box-shadow:0 7px 20px rgba(20,61,41,.045)}
.todo-summary-card span,.todo-summary-card strong,.todo-summary-card small{display:block}
.todo-summary-card span{color:#6d7d75;font-size:11px;font-weight:750}
.todo-summary-card strong{margin-top:4px;color:#17352a;font:800 25px/1 Manrope,sans-serif;letter-spacing:-1px}
.todo-summary-card small{margin-top:5px;color:#89968f;font-size:9px}
.todo-summary-card.overdue{border-color:#f1d1d1;background:linear-gradient(145deg,#fff,#fff7f7)}
.todo-summary-card.overdue strong{color:#c34850}
.todo-summary-card.today{border-color:#d8eadf;background:linear-gradient(145deg,#fff,#f4fcf7)}
.todo-summary-card.done{border-color:#dce8e3;background:#fbfdfc}
.todo-summary-card.karma{border-color:#bce5d2;background:linear-gradient(135deg,#effcf5,#dbf6e8)}
.todo-summary-card.karma span{color:#087f5b}.todo-summary-card.karma strong{color:#087f5b}.todo-summary-card.karma strong em{color:#6d9483;font-size:13px;font-style:normal}.todo-summary-card.karma small{color:#4e7e69}
.todo-panel{overflow:hidden;border:1px solid #dde9e3;border-radius:16px;background:#fff;box-shadow:0 9px 24px rgba(20,61,41,.05)}
.todo-section{border-top:1px solid #e7efeb}
.todo-section:first-child{border-top:0}
.todo-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:#f8fbf9}
.todo-section-head h2{display:flex;align-items:center;gap:8px;margin:0;color:#264438;font:800 14px Manrope,sans-serif}
.todo-section-head h2:before{content:'●';font-size:10px;color:#11a875}
.todo-section.overdue .todo-section-head{background:#fff8f8}
.todo-section.overdue .todo-section-head h2{color:#9a3d44}
.todo-section.overdue .todo-section-head h2:before{color:#d5525a}
.todo-section-head span{padding:4px 7px;border-radius:999px;background:#e8f6ee;color:#087f5b;font-size:9px;font-weight:800}
.todo-section.overdue .todo-section-head span{background:#fde4e4;color:#b94951}
.todo-item{display:grid;grid-template-columns:32px minmax(160px,1.1fr) minmax(180px,1.7fr) minmax(108px,.8fr) auto;align-items:center;gap:11px;min-height:60px;padding:8px 14px;border-top:1px solid #edf2ef}
.todo-item:hover{background:#fbfefc}
.todo-kind{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e7f7ef;color:#07855e;font-size:14px}
.todo-item.email .todo-kind{background:#e9f4fb;color:#267aa8}
.todo-item.meeting .todo-kind{background:#fff2db;color:#ad7214}
.todo-item.overdue .todo-kind{background:#fde8e8;color:#c34b54}
.todo-time{display:flex;flex-direction:column;gap:3px}
.todo-time strong{color:#243e32;font:800 11px Manrope,sans-serif}
.todo-time span{color:#8b9891;font-size:9px;font-weight:700}
.todo-item.overdue .todo-time strong{color:#bd454e}
.todo-prospect{min-width:0}
.todo-prospect strong,.todo-prospect span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.todo-prospect strong{color:#1d3228;font:800 12px Manrope,sans-serif}
.todo-prospect span{margin-top:2px;color:#78867f;font-size:10px}
.todo-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.todo-meta span{padding:3px 6px;border:1px solid #e0ebe5;border-radius:999px;background:#fff;color:#687870;font-size:8px;font-weight:750}
.todo-meta .urgent{border-color:#f2d2d3;background:#fff2f2;color:#ba4950}
.todo-meta .todo-karma{border-color:#b9e7cf;background:#effcf5;color:#087f5b}
.todo-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.todo-actions button,.todo-actions a{height:28px;display:inline-flex;align-items:center;justify-content:center;padding:0 8px;border:1px solid #dbe7e1;border-radius:7px;background:#fff;color:#4c6257;font-size:9px;font-weight:800;text-decoration:none;white-space:nowrap}
.todo-actions .todo-open:hover{border-color:#aad9c0;background:#f3fbf6;color:#087f5b}
.todo-actions .todo-complete{border-color:#0eaa78;background:#0eaa78;color:#fff}
.todo-actions .todo-complete:hover{background:#07855e}
.todo-actions .todo-postpone:hover{border-color:#ebcf82;background:#fff9ea;color:#976c0c}
.todo-email-auto{display:inline-flex;align-items:center;height:28px;padding:0 7px;color:#7c8a83;font-size:8px;font-weight:750;white-space:nowrap}
.todo-action-backdrop{position:fixed;inset:0;z-index:160;display:grid;place-items:center;padding:22px;background:rgba(10,31,21,.52);backdrop-filter:blur(6px)}
.todo-action-backdrop[hidden]{display:none}
.todo-action-modal{width:min(660px,96vw);max-height:92vh;overflow:auto;border:1px solid #dce9e3;border-radius:18px;background:#fff;box-shadow:0 30px 90px rgba(4,28,17,.3)}
.todo-action-modal header{padding:18px 20px 14px;border-bottom:1px solid #e7efeb;background:linear-gradient(135deg,#fff,#f2fbf6)}
.todo-action-modal small{display:block;color:#0c966b;font-size:9px;font-weight:850;letter-spacing:1.1px}.todo-action-modal h2{margin:4px 0 3px;color:#1d372b;font:800 21px Manrope,sans-serif}.todo-action-modal header p{margin:0;color:#738179;font-size:11px}
.todo-action-body{padding:16px 20px}.todo-action-body>label,.todo-action-grid label{display:grid;gap:6px;color:#53655c;font-size:10px;font-weight:800}.todo-action-body select,.todo-action-body input,.todo-action-body textarea{width:100%;border:1px solid #d9e6e0;border-radius:9px;background:#fff;color:#243d31;font:12px DM Sans,sans-serif;outline:0}.todo-action-body select,.todo-action-body input{height:35px;padding:0 9px}.todo-action-body textarea{min-height:88px;padding:9px;resize:vertical;line-height:1.45}.todo-action-body select:focus,.todo-action-body input:focus,.todo-action-body textarea:focus{border-color:#0eaa78;box-shadow:0 0 0 3px rgba(14,170,120,.1)}
.todo-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}.todo-action-conditional{margin-top:11px;padding:12px;border:1px solid #dcebe3;border-radius:11px;background:#f8fcfa}.todo-action-conditional[hidden]{display:none}.todo-action-conditional>label{display:grid;gap:6px;color:#53655c;font-size:10px;font-weight:800}.todo-action-conditional>label+label{margin-top:10px}.todo-action-modal .todo-action-actions{display:flex;justify-content:flex-end;gap:8px;padding:13px 20px 17px;border-top:1px solid #e8f0ec}.todo-action-actions button{height:35px;padding:0 12px;border-radius:9px;font-size:10px;font-weight:850}.todo-action-actions .primary{border:0;background:#0eaa78;color:#fff}.todo-action-actions .secondary{border:1px solid #d9e5df;background:#fff;color:#62736a}
.todo-retry-choice{display:flex!important;align-items:center;gap:8px}.todo-retry-choice input{width:16px!important;height:16px!important;accent-color:#0eaa78}.todo-action-conditional>small{display:block;margin-top:7px;color:#7e8b84;font-size:9px;line-height:1.35}
@media(max-width:560px){.todo-action-body,.todo-action-modal header{padding-left:14px;padding-right:14px}.todo-action-grid{grid-template-columns:1fr}.todo-action-modal .todo-action-actions{padding-left:14px;padding-right:14px}.todo-action-actions button{flex:1}}
.todo-empty{padding:58px 20px;text-align:center;color:#7c8a82;font-size:13px;line-height:1.5}
.todo-empty strong{display:block;margin-bottom:5px;color:#2e493d;font:800 17px Manrope,sans-serif}
@media(max-width:900px){.todo-item{grid-template-columns:36px minmax(0,1fr) auto;gap:10px}.todo-meta{grid-column:2}.todo-actions{grid-column:3;grid-row:1/3}.todo-time{display:none}}
@media(max-width:900px){.todo-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.todo-head{align-items:flex-start;flex-direction:column;gap:11px}.todo-head h1{font-size:26px}.todo-head p{font-size:13px}.todo-summary{gap:8px}.todo-summary-card{padding:12px}.todo-summary-card strong{font-size:24px}.todo-summary-card span{font-size:10px}.todo-summary-card small{display:none}.todo-item{grid-template-columns:32px minmax(0,1fr);padding:11px 12px}.todo-kind{width:32px;height:32px}.todo-meta{grid-column:2}.todo-actions{grid-column:1/-1;grid-row:auto;justify-content:flex-start}.todo-actions button,.todo-actions a{flex:1}.todo-section-head{padding:12px}}
