.planning-panel{padding:16px;overflow:hidden}.planning-toolbar,.planning-period{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.planning-toolbar label{min-width:150px}.planning-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:14px 0}.planning-filters label{flex:1 1 140px;min-width:120px}.planning-filters label input,.planning-filters label select{width:100%}.planning-filters .form-error:empty{display:none}.planning-period{justify-content:center;margin:8px 0}.planning-note{font-size:12px;color:var(--muted,#696169);line-height:1.5;margin:12px 0}.gantt-scroll,.capacity-scroll{overflow:auto;max-height:66vh;border:1px solid #e5dfe6;border-radius:8px}.gantt-layout{display:flex;min-width:1150px}.gantt-labels{width:350px;min-width:350px;position:sticky;left:0;background:#fff;z-index:2;border-right:1px solid #e5dfe6}.gantt-heading{height:38px;padding:10px;font-weight:600;background:#f6f2f6;font-size:12px}.gantt-label{height:42px;box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:2px 8px;border-top:1px solid #eee9ef}.gantt-label>div{min-width:0;flex:1}.gantt-label small{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#746b74}.gantt-name{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;text-align:left;padding:0}.gantt-label.is-child{padding-left:24px}.gantt-indent{width:12px;flex:none}.gantt-chart{flex:1;min-width:800px;display:block}.gantt-grid{stroke:#efebf0;stroke-width:1}.gantt-tick{font-size:11px;fill:#746b74}.gantt-bar{fill:#774461;cursor:pointer}.gantt-child{fill:#b89aaf}.gantt-done{fill:#a3a0a6}.gantt-pending{fill:#ded4dc;stroke:#94788b;stroke-dasharray:4 3}.gantt-dependency{fill:none;stroke:#877382;stroke-width:1.3}.gantt-today{stroke:#bc5e4c;stroke-width:1.5;stroke-dasharray:4 4;pointer-events:none}.planning-legend{display:flex;gap:12px;font-size:12px}.planning-legend span{padding:5px 8px;border-radius:5px}.free{background:#f3f5f3;color:#435e49}.occupied{background:#eee7ed;color:#6b405b}.overload{background:#fceceb;color:#a3292c}.unknown{background:#fff7e7;color:#82580d}.capacity-table{border-collapse:collapse;width:100%}.capacity-table th,.capacity-table td{padding:10px!important;font-size:12px;min-width:115px;border:1px solid #e6e0e7;vertical-align:top!important}.capacity-table th:first-child{position:sticky;left:0;z-index:1;background:white;min-width:235px;max-width:265px}.capacity-table thead th{background:#f6f2f6}.capacity-table small{display:block;font-size:10px;margin:4px 0;font-weight:normal}.planning-totals{display:flex;gap:20px;padding:14px;border-radius:8px;background:#f6f2f6;margin-bottom:16px}.planning-totals span{flex:1;font-size:12px}.planning-totals strong{display:block;margin-top:5px}.allocation-row,.allocation-heading{display:grid;grid-template-columns:1fr 1fr 32px;gap:10px;margin-bottom:8px;align-items:center}.allocation-heading{font-size:12px;color:#746b74}.allocation-row input{min-width:0;width:100%}.planning-issues>div{padding:10px 0;border-bottom:1px solid #e5dfe6}.planning-issues small{display:block;color:#746b74}.planning-issues button{text-align:left}.planning-issues{max-height:40vh;overflow:auto}.planning-totals strong{white-space:nowrap}.planning-toolbar .report-tabs{flex-wrap:wrap}@media(max-width:700px){.planning-panel{padding:10px}.planning-totals{gap:10px;flex-wrap:wrap}.gantt-labels{width:250px;min-width:250px}.planning-toolbar{align-items:stretch}.planning-toolbar .button{font-size:12px}}

/* Equipa em foco — compact capacity cards, shared planning calculations. */
.planning-controls{border-block:1px solid #eee9ef;margin:14px 0 0;padding:10px 0}
.planning-controls .form-error:empty{display:none}
.planning-main-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.planning-main-controls .planning-period{justify-content:flex-start;margin:0;gap:8px;flex:1 1 320px}
.planning-period strong{font-size:14px;font-variant-numeric:tabular-nums}
.planning-main-controls label{margin:0}
.planning-main-controls select{height:34px;width:100%;min-height:0;padding:5px 28px 5px 10px;font-size:12px}
.planning-scale{flex:0 0 110px}.planning-person-filter{flex:0 1 250px;min-width:150px}
.planning-filters[hidden]{display:none}.planning-filters{margin:12px 0 0}.planning-filters label{font-size:12px}
.team-focus-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 8px}
.team-focus-summary h2{font-size:17px;margin:0 0 4px}.team-focus-summary p{font-size:12px;color:var(--muted,#696169);margin:0}
.team-focus-counts{display:flex;flex-wrap:wrap;gap:7px;font-size:11px;justify-content:flex-end}
.team-focus-counts span,.team-focus-status span{border-radius:5px;padding:5px 8px;white-space:nowrap}
.team-focus-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:20px;align-items:start}
.team-focus-main{min-width:0}.team-focus-cards{display:grid;gap:12px}
.team-focus-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 10px}
.team-focus-tools p{font-size:11px;color:var(--muted,#696169);margin:0}.team-focus-tools label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted,#696169);margin:0;white-space:nowrap}
.team-focus-tools select{font-size:11px;padding:4px 24px 4px 7px;min-height:0;height:28px}
.team-focus-card{background:#fff;border:1px solid #e5dfe6;border-radius:10px;padding:13px 14px 0;overflow:hidden}
.team-focus-card>header{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.team-focus-avatar{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#eee6ed;color:#71455f;font-size:11px;font-weight:700;flex:none}
.team-focus-person{min-width:0;flex:1}.team-focus-person h3{margin:0 0 4px;font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.team-focus-person p{margin:0;font-size:11px;color:var(--muted,#696169);line-height:1.5}.team-focus-person p strong{color:var(--text,#302932)}
.team-focus-status{display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:11px;font-weight:600}
.team-focus-periods{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.team-focus-periods:has(>.team-focus-day:nth-child(6):last-child){grid-template-columns:repeat(6,minmax(0,1fr))}
.team-focus-periods:has(>.team-focus-day:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr))}
.team-focus-periods:has(>.team-focus-day:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
.team-focus-periods:has(>.team-focus-day:only-child){grid-template-columns:1fr}
.team-focus-periods.many-periods{grid-template-columns:repeat(6,minmax(0,1fr));max-height:440px;overflow:auto}
.team-focus-day{font:inherit;display:flex;flex-direction:column;min-width:0;text-align:left;border:1px solid transparent;border-radius:6px;padding:8px 7px;cursor:pointer;background:#faf9fb;color:#443b45;font-variant-numeric:tabular-nums}
.team-focus-day:hover{border-color:#b3a5b1;box-shadow:0 2px 6px #53495214}.team-focus-day:focus-visible{outline:2px solid #774461;outline-offset:2px}
.team-focus-day.is-today{border-color:#bba4b4}.team-focus-day-label{display:flex;justify-content:space-between;gap:3px;font-size:10px;line-height:1.4;min-height:16px;color:#696169}
.team-focus-day-label small{font-size:9px}.team-focus-day>strong{font-size:14px;font-weight:650;line-height:1.5;margin-top:4px;white-space:nowrap}
.team-focus-day-capacity{font-size:10px;color:#746b74;line-height:1.5}.team-focus-day-caption{font-size:9px;line-height:1.4;margin-top:5px;min-height:13px}
.team-focus-day progress{display:block;width:100%;height:5px;appearance:none;-webkit-appearance:none;border:0;border-radius:4px;margin-top:7px;background:#e7e1e8;overflow:hidden}
.team-focus-day progress::-webkit-progress-bar{background:#e7e1e8}.team-focus-day progress::-webkit-progress-value{background:#80506e;border-radius:4px}.team-focus-day progress::-moz-progress-bar{background:#80506e;border-radius:4px}
.team-focus-day.unknown{background:#fcf9f1;color:#805b1d}.team-focus-day.unknown progress::-webkit-progress-bar{background:repeating-linear-gradient(135deg,#f5e9cb 0,#f5e9cb 3px,#fcf7eb 3px,#fcf7eb 6px)}
.team-focus-day.unknown progress{background:repeating-linear-gradient(135deg,#f5e9cb 0,#f5e9cb 3px,#fcf7eb 3px,#fcf7eb 6px)}
.team-focus-day.overload{background:#fcf0ef;color:#a12f31}.team-focus-day.overload progress::-webkit-progress-value{background:#b94a4d}.team-focus-day.overload progress::-moz-progress-bar{background:#b94a4d}
.team-focus-day.free{background:#f5f7f5;color:#44604d}.team-focus-day.past,.team-focus-day.off{background:#f7f6f8;color:#89818a}.team-focus-day.past progress,.team-focus-day.off progress{opacity:.35}
.team-focus-status .past{background:#f2eff3;color:#777078}
.team-focus-card>footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;padding:9px 0;border-top:1px solid #eee9ef;font-size:11px;color:var(--muted,#696169)}
.team-focus-card>footer>div{display:flex;gap:7px;flex-wrap:wrap}.team-focus-card>footer .text-button{font-size:11px;padding:0;white-space:nowrap}.team-focus-partial{font-size:10px}
.team-focus-tasks{border-top:1px solid #eee9ef;max-height:260px;overflow:auto;padding:8px 0}
.team-focus-tasks>p{font-size:11px;color:#746b74;margin:3px 0 8px}.team-focus-tasks>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #f2eff3}
.team-focus-tasks .text-button{font-size:12px;text-align:left;padding:0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-focus-tasks span{font-size:10px;color:#746b74;flex:none}
.team-focus-fit{border:1px solid #e6dce5;border-radius:10px;padding:16px;background:#faf7fa;margin-top:38px;min-width:0}
.team-focus-fit-heading{display:flex;align-items:center;gap:8px;color:#774461}.team-focus-fit-heading svg{width:18px;height:18px}.team-focus-fit h3{font-size:15px;margin:0}
.team-focus-fit>p{font-size:12px;color:#746b74;line-height:1.5;margin:10px 0 16px}.team-focus-fit label{font-size:11px;display:block;margin-bottom:12px}.team-focus-fit input,.team-focus-fit select{display:block;margin-top:5px;width:100%;min-width:0;font-size:12px;min-height:34px;padding:7px 8px}
.team-focus-fit form>.button{width:100%;font-size:12px}.team-focus-fit .planning-note{font-size:11px}.team-focus-fit .form-error:empty{display:none}.team-focus-fit .scope-note{font-size:12px;line-height:1.5}
.team-focus-fit-footer{border-top:1px solid #e6dce5;padding-top:12px;margin-top:16px}.team-focus-fit-footer .text-button{font-size:11px;padding:0}.team-focus-fit-footer small{display:block;font-size:10px;line-height:1.6;color:#746b74;margin-top:10px}
.team-fit-result{padding:10px 0;border-top:1px solid #e6dce5;font-size:12px}.team-fit-result strong,.team-fit-result>span{display:block;margin-bottom:4px}.team-fit-result>span{color:#746b74;font-size:11px}.team-fit-result summary{color:#774461;cursor:pointer;font-size:11px;margin-top:8px}.team-fit-result .text-button{display:block;font-size:11px;padding:6px 0;text-align:left}.team-fit-result small{font-size:10px;line-height:1.4;display:block;color:#746b74}.team-fit-result-title{font-weight:600;font-size:12px;margin:16px 0 8px}
.team-focus-note{border-top:1px solid #eee9ef;margin-top:16px;padding-top:12px;font-size:11px}
@media(max-width:1250px){.team-focus-layout{grid-template-columns:minmax(0,1fr)}.team-focus-fit{margin-top:0;max-width:none}.team-focus-fit form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.team-focus-fit form>label{margin:0}.team-focus-fit form>.planning-note{grid-column:1/-1;grid-row:2;margin:0}.team-focus-fit [data-fit-result],.team-focus-fit .form-error{grid-column:1/-1}.team-focus-fit-footer{margin-top:8px}.team-focus-fit-footer small{display:inline;margin-left:10px}}
@media(max-width:700px){.planning-main-controls .planning-period{flex-basis:100%;justify-content:center}.planning-person-filter{flex:1;min-width:0}.planning-scale{flex-basis:90px}.team-focus-summary{align-items:flex-start;flex-direction:column}.team-focus-counts{justify-content:flex-start}.team-focus-card{padding:10px 10px 0}.team-focus-card>header{flex-wrap:wrap}.team-focus-status{flex-direction:row;margin-left:42px}.team-focus-periods,.team-focus-periods.many-periods,.team-focus-periods:has(>.team-focus-day:nth-child(5):last-child),.team-focus-periods:has(>.team-focus-day:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}.team-focus-fit form{grid-template-columns:1fr}.team-focus-fit form>.planning-note{grid-row:auto}.team-focus-fit-footer small{display:block;margin-left:0}.team-focus-person p span{display:block}.team-focus-tasks>div{align-items:flex-start;flex-direction:column;gap:4px}.team-focus-tasks .text-button{max-width:100%}.team-focus-card>footer{align-items:flex-start}.team-focus-card>footer>div{flex-direction:column}.team-focus-tools p{max-width:50%}}
/* Keep three technicians visible on a typical laptop screen. */
.team-focus-card>header{margin-bottom:8px}
.team-focus-day{padding:6px 7px}
.team-focus-day-label{min-height:14px;line-height:1.2}
.team-focus-day>strong{font-size:13px;line-height:1.3;margin-top:2px}
.team-focus-day-capacity{line-height:1.2}
.team-focus-day progress{height:4px;margin-top:5px}
.team-focus-day-caption{line-height:1.3;min-height:12px;margin-top:4px}
.team-focus-card>footer{margin-top:8px;padding:8px 0}

@media screen and (max-width:700px){
  .planning-panel,.planning-toolbar>*,.planning-main-controls>*{min-width:0}
  .planning-toolbar .report-tabs{display:flex;max-width:100%}
  .planning-toolbar .report-tabs .button{flex:1 1 auto;min-height:44px}
  .planning-main-controls select,.planning-filters select,.planning-filters input,
  .team-focus-fit input,.team-focus-fit select{min-height:44px;font-size:16px}
  .planning-totals strong,.planning-legend{white-space:normal;overflow-wrap:anywhere}
  .planning-legend{flex-wrap:wrap;gap:6px}
  .gantt-scroll,.capacity-scroll{max-width:100%;overscroll-behavior-inline:contain}
  .gantt-labels{width:clamp(122px,40vw,215px);min-width:clamp(122px,40vw,215px)}
  .gantt-layout{min-width:0;width:max-content}
  .gantt-chart{flex:none}
  .gantt-label button{min-height:36px}
  .gantt-label.is-child{padding-left:12px}
  .gantt-labels .gantt-name{min-width:0;max-width:100%}
  .capacity-table th:first-child{min-width:118px;max-width:155px}
  .team-focus-tools p{max-width:100%}
  .team-focus-controls,.team-focus-tools{flex-wrap:wrap}
}
.mobile-gantt-hint{display:none}
@media screen and (max-width:700px){.mobile-gantt-hint{display:inline}}
