.gpr-view-switch{display:flex;gap:5px;padding:5px;margin-bottom:16px;border-radius:12px;background:var(--bg,#f1f5f9);width:fit-content;max-width:100%}.gpr-view-switch button{display:flex;align-items:center;gap:7px;border:0;border-radius:9px;padding:10px 15px;background:transparent;color:var(--text-muted,#64748b);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}.gpr-view-switch button.active{background:var(--card,#fff);color:var(--text,#172237);box-shadow:0 2px 8px #0001}.gpr-view-switch .material-icons-round{font-size:20px}
.project-timeline-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:10px 0 7px}.project-timeline-summary>div{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:13px}.project-timeline-summary b{font-size:22px}.project-timeline-summary span{color:var(--text-muted,#64748b)}.project-timeline-summary .money-neg{color:#dc2626}.project-timeline-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:var(--text-muted,#64748b);margin:7px 0 10px}.project-timeline-legend>span{display:flex;align-items:center;gap:6px}.project-timeline-legend i{display:inline-block;width:42px;height:7px;border-radius:6px;background:linear-gradient(90deg,#16a34a,#dc2626)}.project-timeline-legend i.event{width:10px;height:10px;border:2px solid #475569;background:var(--card,#fff)}.project-timeline-legend i.today{width:3px;height:15px;background:#0f9b8e}
.project-timeline-scroll{--timeline-name:310px;overflow:auto;max-height:72vh;border:1px solid var(--border,#dbe1e9);border-radius:14px;background:var(--card,#fff);position:relative}.project-timeline-grid{width:calc(var(--timeline-name) + var(--timeline-width));min-width:100%}.project-timeline-header,.project-timeline-row{display:grid;grid-template-columns:var(--timeline-name) minmax(var(--timeline-width),1fr)}.project-timeline-header{position:sticky;top:0;z-index:6;background:var(--card,#fff);border-bottom:1px solid var(--border,#dbe1e9)}.project-timeline-corner{position:sticky;left:0;z-index:7;padding:9px 12px;background:var(--card,#fff);border-right:1px solid var(--border,#dbe1e9)}.project-timeline-corner b,.project-timeline-corner small{display:block}.project-timeline-corner small{font-size:11px;color:var(--text-muted,#64748b);margin-top:5px}.project-timeline-axis{position:relative;min-height:54px;overflow:hidden;background:var(--bg,#f8fafc)}.project-timeline-tick{position:absolute;top:8px;transform:translateX(-50%);font-size:11px;color:var(--text-muted,#64748b);white-space:nowrap;border-left:1px solid var(--border,#dbe1e9);padding-left:4px;height:24px}.project-timeline-today-label{position:absolute;bottom:5px;transform:translateX(-50%);color:#0f9b8e;font-size:11px;background:var(--card,#fff);padding:2px 5px;border-radius:4px}
.project-timeline-row{min-height:92px;border-bottom:1px solid var(--border,#dbe1e9)}.project-timeline-row:last-child{border-bottom:0}.project-timeline-name{position:sticky;left:0;z-index:5;padding:7px 12px;background:var(--card,#fff);border-right:1px solid var(--border,#dbe1e9);display:flex;flex-direction:column;align-items:flex-start;gap:2px}.project-timeline-title{font:inherit;border:0;padding:0;background:none;text-align:left;color:var(--text,#172237);cursor:pointer;max-width:100%}.project-timeline-title b{display:block;font-size:13px;overflow-wrap:anywhere;line-height:1.3}.project-timeline-title small{display:block;font-size:10px;color:var(--text-muted,#64748b);margin-bottom:3px}.project-timeline-relation{font-size:11px;color:var(--text-muted,#64748b)}.project-timeline-relation.late,.project-timeline-relation.invalid{color:#dc2626}.project-timeline-relation.due{color:#b45309}.project-timeline-row-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;width:100%}.project-timeline-row-actions small{font-size:10px;color:var(--text-muted,#64748b)}.project-timeline-row-actions button{font-size:11px}
.project-timeline-track{position:relative;overflow:hidden;background:repeating-linear-gradient(90deg,transparent 0,transparent 99px,var(--border,#dbe1e9) 100px)}.project-timeline-dates{position:sticky;left:12px;width:max-content;max-width:100%;padding:14px 12px 0;font-size:11px;color:var(--text-muted,#64748b)}.project-timeline-dates span{padding:0 7px}.project-timeline-bar{position:absolute;top:61px;height:22px;border-radius:6px;min-width:3px;z-index:2;box-shadow:0 2px 5px #0001}.project-timeline-today-line{position:absolute;top:0;bottom:0;border-left:2px solid #0f9b8e;z-index:3;pointer-events:none}.project-timeline-event{position:absolute;top:62px;transform:translateX(-50%);z-index:4;border-radius:50%;border:2px solid #334155;background:#fff;color:#172237;min-width:20px;height:20px;padding:0 3px;font-size:10px;font-weight:800;cursor:pointer}.project-timeline-event:hover,.project-timeline-event:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}.project-timeline-undated{display:block;position:sticky;left:12px;padding:20px 12px;width:max-content;font-size:12px;color:var(--text-muted,#64748b)}
.project-timeline-history-title{display:grid;gap:10px;margin-bottom:20px;justify-items:start}.project-status-events{list-style:none;padding:0;margin:0}.project-status-events li{padding:0 0 20px 20px;border-left:2px solid var(--border,#dbe1e9);position:relative}.project-status-events li:before{content:'';position:absolute;left:-5px;top:4px;width:8px;height:8px;border-radius:50%;background:#16a34a}.project-status-events time,.project-status-events b,.project-status-events small{display:block;font-size:12px;line-height:1.6}.project-status-events time,.project-status-events small{color:var(--text-muted,#64748b)}
.calc-work-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.calc-work-toolbar .catalog-search{flex:1 1 250px}.calc-work-toolbar select{max-width:100%;min-height:40px}.calc-service-group-field{display:flex;gap:6px}.calc-service-group-field select{flex:1;min-width:0}.calc-service-group-field .btn{flex:none}#calc-service-create{z-index:200030}#calc-service-group-create{z-index:200040}#calc-service-form>.btn,#calc-service-group-form>.btn{margin-top:14px}
@media(max-width:680px){.gpr-view-switch{width:100%;box-sizing:border-box}.gpr-view-switch button{flex:1;padding:9px;font-size:12px;justify-content:center}.project-timeline-scroll{--timeline-name:190px;max-height:76vh}.project-timeline-name,.project-timeline-corner{padding:8px 10px}.project-timeline-summary>div{gap:9px}.project-timeline-legend{gap:10px;font-size:11px}.project-timeline-row{min-height:116px}.project-timeline-event{min-width:26px;height:26px;top:59px}.calc-work-toolbar .catalog-search,.calc-work-toolbar select{width:100%;flex-basis:100%}.calc-work-toolbar>.btn{flex:1}.project-timeline-name .status-tag{max-width:100%;white-space:normal}}

.project-timeline-more{display:flex;justify-content:center;align-items:center;gap:12px;padding:16px}.project-timeline-more small{color:var(--text-muted)}

.project-timeline-row-actions .text-link,.project-timeline-summary .text-link{border:0;background:none;color:var(--text-muted,#64748b);padding:3px 0;font-family:inherit;font-size:11px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.project-timeline-row-actions .text-link:hover{color:var(--primary,#e31e25)}.project-timeline-tick:first-child{transform:none}

.project-timeline-name-dates{font-size:10px;color:var(--text-muted,#64748b);line-height:1.4}.project-timeline-dates{display:none}

.project-timeline-neutral{position:absolute;top:61px;height:22px;min-width:3px;border-radius:6px;box-sizing:border-box;background:#cbd5e1;border:1px solid #64748b;z-index:1}.project-timeline-legend i.neutral{background:#cbd5e1;border:1px solid #64748b}.project-timeline-undated{position:absolute;top:96px;padding:0 12px;max-width:100%;box-sizing:border-box;font-size:11px}.project-timeline-event{box-shadow:0 0 0 2px var(--card,#fff)}
body[data-theme="dark"] .project-timeline-neutral,body[data-theme="dark"] .project-timeline-legend i.neutral{background:#64748b;border-color:#cbd5e1}body[data-theme="dark"] .project-timeline-event{border-color:#f1f5f9;background:#1e293b;color:#fff}body[data-theme="dark"] .project-timeline-legend i.event{border-color:#f1f5f9;background:#1e293b}

/* Compact project rows: wrap all text instead of truncating project information. */
.project-timeline-title{display:flex;align-items:baseline;gap:7px;width:100%;line-height:1.3}
.project-timeline-title small{flex:0 0 auto;max-width:100px;margin:0;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.project-timeline-title b{flex:1;min-width:0}
.project-timeline-status-row{display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap;width:100%;min-width:0}
.project-timeline-status-row .status-tag{min-height:0;padding:2px 7px;font-size:11px;line-height:1.35;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.project-timeline-relation{line-height:1.35;overflow-wrap:anywhere}
.project-timeline-row-actions{gap:2px 8px;line-height:1.3}
.project-timeline-row-actions .project-timeline-name-dates,.project-timeline-status-since{font-size:11px;line-height:1.35;color:var(--text-muted,#64748b);overflow-wrap:anywhere}
.project-timeline-row-actions .text-link{min-height:22px;line-height:16px;padding:3px 0}
.project-timeline-bar,.project-timeline-neutral{top:50%;height:18px;transform:translateY(-50%);border-radius:5px}
.project-timeline-event{top:50%;min-width:22px;height:22px;transform:translate(-50%,-50%)}
.project-timeline-undated{top:calc(50% + 17px);padding:0 10px;line-height:1.35;white-space:normal}
@media(max-width:680px){.project-timeline-title{display:block}.project-timeline-title small{max-width:100%;margin-bottom:2px}.project-timeline-row-actions .text-link{min-height:30px;padding:7px 0}.project-timeline-event{min-width:28px;height:28px}.project-timeline-undated{top:calc(50% + 21px)}}

@media(min-width:681px){.project-timeline-row{min-height:78px}.project-timeline-name{padding:4px 10px;gap:1px}.project-timeline-status-row .status-tag{padding:1px 7px}.project-timeline-row-actions .text-link{min-height:20px;padding:2px 0}.project-timeline-status-since{font-size:10.5px}.project-timeline-bar,.project-timeline-neutral{height:16px}}
