#gantt-smart-context-menu,
.gsc-submenu {
  position: fixed;
  z-index: 2147483000;
  min-width: 238px;
  max-width: min(330px, calc(100vw - 18px));
  padding: 6px;
  border: 1px solid rgba(195, 168, 116, .34);
  border-radius: 8px;
  background: #fbf7ef;
  color: #10213a;
  box-shadow: 0 18px 46px rgba(16, 33, 58, .18), 0 2px 0 rgba(255, 255, 255, .75) inset;
  font-family: Inter, "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.25;
}

#gantt-smart-context-menu[hidden],
.gsc-submenu[hidden] {
  display: none !important;
}

.gsc-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 2px 2px 5px;
  padding: 8px 9px;
  border-radius: 7px;
  background: linear-gradient(90deg, #0b2a4a, #163b63);
  color: #d9c188;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.gsc-title b {
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsc-group {
  padding: 3px 0;
}

.gsc-group + .gsc-group {
  border-top: 1px solid rgba(195, 168, 116, .22);
}

.gsc-item {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #10213a;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.gsc-item:hover,
.gsc-item.is-open {
  background: #edf3f8;
  color: #0b2a4a;
}

.gsc-item:focus-visible {
  outline: 2px solid rgba(71, 122, 163, .75);
  outline-offset: 1px;
}

.gsc-item[disabled] {
  color: rgba(71, 85, 105, .42);
  cursor: not-allowed;
}

.gsc-item[disabled]:hover {
  background: transparent;
}

.gsc-ico {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #e8ddc8;
  color: #0b2a4a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.gsc-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsc-meta {
  color: #5f89ae;
  font-size: 10px;
}

.gsc-panel {
  position: fixed;
  z-index: 2147482999;
  width: min(760px, calc(100vw - 24px));
  min-width: 520px;
  min-height: 280px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  resize: both;
  border: 1px solid rgba(126, 151, 176, .36);
  border-radius: 8px;
  background: #f4efe6;
  color: #10213a;
  box-shadow: 0 18px 48px rgba(16, 33, 58, .22);
  font-family: Inter, "DM Sans", system-ui, sans-serif;
}

.gsc-panel-rel {
  width: min(700px, calc(100vw - 24px));
  min-width: 640px;
  min-height: 190px;
  max-height: min(380px, calc(100vh - 28px));
}

.gsc-assign-panel {
  width: min(760px, calc(100vw - 28px));
  min-height: 360px;
  max-height: min(640px, calc(100vh - 28px));
}

.gsc-panel-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 13px;
  border-bottom: 1px solid rgba(195, 168, 116, .24);
  background: linear-gradient(90deg, #0b2a4a, #12385e);
  cursor: move;
  user-select: none;
}

.gsc-panel-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0;
}

.gsc-panel-head span {
  display: block;
  margin-top: 3px;
  color: #d9c188;
  font-size: 10px;
}

.gsc-x,
.gsc-btn {
  border: 1px solid rgba(95, 137, 174, .28);
  border-radius: 6px;
  background: #ffffff;
  color: #10213a;
  min-height: 28px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.gsc-x {
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
  font-size: 18px;
}

.gsc-btn:hover {
  background: #edf3f8;
}

.gsc-btn.primary {
  background: #477aa3;
  border-color: #477aa3;
  color: #ffffff;
}

.gsc-btn.primary:hover {
  background: #355f8c;
}

.gsc-btn.danger {
  background: #fff5f3;
  border-color: rgba(147, 51, 38, .28);
  color: #933326;
}

.gsc-body {
  padding: 9px 10px 10px;
}

.gsc-panel-rel .gsc-body {
  padding: 7px 8px 8px;
}

.gsc-panel.is-dragging {
  opacity: .96;
  box-shadow: 0 28px 78px rgba(16, 33, 58, .32);
}

.gsc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 12px;
}

.gsc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gsc-field.wide {
  grid-column: 1 / -1;
}

.gsc-field span,
.gsc-section-title {
  color: #4f6884;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.gsc-inp,
.gsc-sel,
.gsc-text {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(95, 137, 174, .34);
  border-radius: 7px;
  background: #fffdf9;
  color: #10213a;
  padding: 8px 10px;
  font: inherit;
  box-sizing: border-box;
}

.gsc-inp:focus,
.gsc-sel:focus,
.gsc-text:focus {
  outline: 2px solid rgba(71, 122, 163, .28);
  border-color: #477aa3;
}

.gsc-text {
  min-height: 74px;
  resize: vertical;
}

.gsc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.gsc-panel-rel .gsc-actions {
  margin-top: 8px;
}

.gsc-actions.compact {
  gap: 6px;
  margin-top: 0;
}

.gsc-actions.compact .gsc-btn {
  min-height: 28px;
  padding: 5px 10px;
  font-size: 12px;
}

.gsc-rel-workbench {
  display: grid;
  gap: 5px;
}

.gsc-rel-panes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 6px;
}

.gsc-rel-pane {
  border: 1px solid rgba(116, 139, 163, .24);
  border-radius: 5px;
  background: #ffffff;
  overflow: hidden;
}

.gsc-rel-pane.is-active {
  border-color: rgba(36, 76, 115, .36);
  box-shadow: inset 0 2px 0 rgba(36, 76, 115, .68);
}

.gsc-rel-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
  padding: 2px 6px;
  border-bottom: 1px solid rgba(126, 151, 176, .16);
  background: #f3f6fa;
}

.gsc-rel-pane-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.gsc-rel-pane-head span {
  color: #4f6884;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.gsc-rel-pane-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 15px;
  border-radius: 999px;
  background: #0b2a4a;
  color: #ffffff;
  font-size: 9px;
}

.gsc-rel-pane-head button {
  min-height: 18px;
  border: 1px solid rgba(71, 122, 163, .28);
  border-radius: 4px;
  background: #ffffff;
  color: #0b2a4a;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.gsc-rel-pane.is-active .gsc-rel-pane-head button {
  background: #244c73;
  border-color: #244c73;
  color: #ffffff;
}

.gsc-rel-cols {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 52px 42px 52px;
  gap: 3px;
  align-items: center;
  min-height: 16px;
  padding: 0 6px;
  border-bottom: 1px solid rgba(95, 137, 174, .13);
  background: #f8fafc;
  color: #4f6884;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gsc-rel-list {
  display: block;
  max-height: 84px;
  overflow: auto;
  padding: 3px;
}

.gsc-rel-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 52px 42px 52px;
  gap: 3px;
  align-items: center;
  min-height: 21px;
  padding: 1px 2px;
  border: 0;
  border-bottom: 1px solid rgba(126, 151, 176, .16);
  border-radius: 0;
  background: transparent;
}

.gsc-rel-row:last-child {
  border-bottom: 0;
}

.gsc-rel-row.is-selected-rel {
  background: rgba(36, 76, 115, .07);
  box-shadow: inset 2px 0 0 #244c73;
}

.gsc-rel-link {
  min-width: 0;
}

.gsc-rel-link span,
.gsc-rel-mini span {
  display: none;
  color: #5f7288;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.gsc-rel-link strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #10213a;
  font-size: 9.8px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsc-rel-mini {
  display: block;
}

.gsc-rel-mini .gsc-sel,
.gsc-rel-mini .gsc-inp {
  height: 20px;
  min-height: 0;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 18px;
}

.gsc-rel-mini input[type="number"]::-webkit-outer-spin-button,
.gsc-rel-mini input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
}

.gsc-rel-delete {
  height: 20px;
  min-height: 0;
  border: 1px solid rgba(147, 51, 38, .18);
  border-radius: 4px;
  background: #fffdfc;
  color: #8f3a2f;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.gsc-rel-delete:hover {
  background: #fbe6e2;
}

.gsc-rel-empty {
  padding: 6px 7px;
  color: #5f7288;
  font-size: 10px;
  font-weight: 750;
}

.gsc-add-rel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(195, 168, 116, .28);
  border-radius: 8px;
  background: #fbf7ef;
}

.gsc-assign-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.gsc-assign-hint {
  color: #6b7d91;
  font-size: 11px;
  font-weight: 750;
}

.gsc-rel-footer-note {
  padding: 4px 6px;
  border: 1px solid rgba(126, 151, 176, .16);
  border-radius: 5px;
  background: rgba(248, 250, 252, .74);
  color: #5f7288;
  font-size: 9.8px;
  font-weight: 700;
}

.gsc-floating-panel {
  z-index: 2147483100;
}

.gsc-assign-window {
  display: grid;
  gap: 8px;
}

.gsc-assign-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 84px 70px;
  gap: 7px;
  align-items: end;
  padding: 8px;
  border: 1px solid rgba(126, 151, 176, .22);
  border-radius: 7px;
  background: rgba(255, 253, 249, .82);
}

.gsc-field.tiny {
  min-width: 0;
}

.gsc-assign-window .gsc-field {
  gap: 3px;
}

.gsc-assign-window .gsc-field span {
  font-size: 8.5px;
}

.gsc-assign-window .gsc-inp,
.gsc-assign-window .gsc-sel {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 12px;
}

.gsc-rel-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.gsc-picker {
  overflow: hidden;
  border: 1px solid rgba(95, 137, 174, .34);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 8px 22px rgba(16, 33, 58, .07);
}

.gsc-picker-assign {
  border-color: rgba(126, 151, 176, .34);
  border-radius: 7px;
  box-shadow: none;
}

.gsc-picker-assign .gsc-picker-head {
  min-height: 24px;
  font-size: 8.5px;
}

.gsc-picker-assign .gsc-picker-head span,
.gsc-picker-assign .gsc-pick-row span {
  padding: 4px 7px;
}

.gsc-picker-assign .gsc-picker-body {
  max-height: 300px;
}

.gsc-picker-assign .gsc-pick-row {
  min-height: 23px;
  font-size: 11px;
}

.gsc-picker-assign .gsc-pick-toggle {
  width: 16px;
  height: 16px;
  font-size: 11px;
}

.gsc-picker-head,
.gsc-pick-row {
  display: grid;
  grid-template-columns: 132px minmax(260px, 1fr) 102px 102px;
  align-items: center;
}

.gsc-picker-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 28px;
  border-bottom: 1px solid rgba(95, 137, 174, .26);
  background: linear-gradient(180deg, #f5f8fb, #e9f0f6);
  color: #405a78;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.gsc-picker-head span,
.gsc-pick-row span {
  min-width: 0;
  overflow: hidden;
  padding: 5px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-right: 1px solid rgba(95, 137, 174, .16);
}

.gsc-picker-head span:last-child,
.gsc-pick-row span:last-child {
  border-right: 0;
}

.gsc-picker-body {
  max-height: 300px;
  overflow: auto;
  background: linear-gradient(180deg, #fffdf9, #fbf7ef);
}

.gsc-pick-row {
  width: 100%;
  min-height: 26px;
  border: 0;
  border-bottom: 1px solid rgba(95, 137, 174, .12);
  background: transparent;
  color: #10213a;
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.gsc-pick-row.is-act {
  background: rgba(255, 253, 249, .88);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.gsc-pick-row.is-act span:first-child,
.gsc-pick-row.is-act span:nth-child(2) {
  padding-left: calc(8px + (var(--lvl, 0) * 12px));
}

.gsc-pick-row.is-act:hover {
  background: #edf3f8;
  box-shadow: inset 3px 0 0 #477aa3;
}

.gsc-pick-row.is-selected {
  background: #477aa3;
  color: #ffffff;
  box-shadow: inset 3px 0 0 #d9c188;
}

.gsc-pick-row.is-current {
  background: linear-gradient(90deg, rgba(217, 193, 136, .32), rgba(255, 253, 249, .92));
  color: #10213a;
  box-shadow: inset 4px 0 0 #d9c188;
  cursor: default;
}

.gsc-pick-row.is-current em {
  margin-left: 8px;
  color: #6a5a32;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.gsc-pick-row.is-wbs {
  min-height: 27px;
  border-bottom: 1px solid var(--pick-wbs-border, rgba(95, 137, 174, .32));
  background:
    linear-gradient(90deg, var(--pick-wbs-a, #071A33), var(--pick-wbs-b, #071A33));
  color: var(--pick-wbs-fg, #ffffff);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 4px 0 0 var(--pick-wbs-subtle, #e7eef6);
}

.gsc-pick-row.is-wbs span:first-child,
.gsc-pick-row.is-wbs span:nth-child(2) {
  padding-left: calc(8px + (var(--lvl, 0) * 14px));
}

.gsc-pick-row.is-wbs span {
  border-right-color: rgba(255, 255, 255, .18);
}

.gsc-pick-row.is-wbs span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gsc-pick-row.is-wbs strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsc-pick-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: currentColor;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.gsc-pick-toggle:hover {
  background: rgba(255, 255, 255, .26);
}

.gsc-pick-toggle.is-empty {
  border-color: transparent;
  background: transparent;
}

.gsc-picker-empty {
  padding: 18px;
  color: #5f7288;
  font-weight: 750;
  text-align: center;
}

.gsc-rel-controls {
  display: grid;
  grid-template-columns: 1fr 92px 78px;
  gap: 8px;
}

.gsc-report {
  display: grid;
  gap: 8px;
}

.gsc-report-row {
  padding: 9px 10px;
  border-radius: 7px;
  border: 1px solid rgba(195, 168, 116, .24);
  background: #fffaf2;
  color: #10213a;
}

#ganttOut .gsc-highlight-selected > .p6-left,
#ganttOut .gsc-highlight-selected > .p6-right {
  box-shadow: inset 0 0 0 2px rgba(71, 122, 163, .9);
}

#ganttOut .gsc-action-anchor > .p6-left,
#ganttOut .gsc-action-anchor > .p6-right {
  background-image: linear-gradient(90deg, rgba(37, 99, 235, .12), rgba(212, 154, 34, .08), transparent) !important;
  box-shadow: inset 0 0 0 2px rgba(15, 42, 76, .78), inset 4px 0 0 rgba(212, 154, 34, .95);
}

#ganttOut .gsc-action-anchor .p6-act-bar,
#ganttOut .gsc-action-anchor .p6-ms {
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, .25));
}

#ganttOut .gsc-highlight-related > .p6-left,
#ganttOut .gsc-highlight-related > .p6-right {
  background-image: linear-gradient(90deg, rgba(71, 122, 163, .16), transparent) !important;
}

#ganttOut .gsc-path-upstream > .p6-left,
#ganttOut .gsc-path-upstream > .p6-right {
  background-image: linear-gradient(90deg, rgba(217, 193, 136, .28), transparent) !important;
  box-shadow: inset 3px 0 0 rgba(217, 193, 136, .95);
}

#ganttOut .gsc-path-downstream > .p6-left,
#ganttOut .gsc-path-downstream > .p6-right {
  background-image: linear-gradient(90deg, rgba(71, 122, 163, .22), transparent) !important;
  box-shadow: inset 3px 0 0 rgba(71, 122, 163, .95);
}

#ganttOut .gsc-highlight-critical > .p6-left,
#ganttOut .gsc-highlight-critical > .p6-right {
  box-shadow: inset 0 0 0 1px rgba(147, 51, 38, .9);
}

#ganttOut .ga-link-path.gsc-link-highlight {
  stroke-width: 2.4 !important;
  stroke-opacity: 1 !important;
}

#ganttOut .ga-link-path.gsc-link-execution {
  stroke: #2563eb !important;
  filter: drop-shadow(0 0 5px rgba(37, 99, 235, .22));
}

#ganttOut .ga-link-path.gsc-link-material-feed {
  stroke: #d49a22 !important;
  stroke-dasharray: 7, 4 !important;
  filter: drop-shadow(0 0 5px rgba(212, 154, 34, .28));
}

#ganttOut .p6-row.gsc-wbs-hidden {
  display: none !important;
}

#ganttOut .p6-row.gsc-path-filter-hidden {
  display: none !important;
}

#ganttOut.gsc-path-filter-active #ga-svg .ga-link-path:not(.gsc-link-in-path),
#ganttOut.gsc-path-filter-active #ga-svg .ga-link-hit:not(.gsc-link-in-path) {
  display: none !important;
}

.gsc-focus-chip {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(195, 168, 116, .34);
  border-radius: 8px;
  background: #fbf7ef;
  color: #10213a;
  box-shadow: 0 12px 36px rgba(16, 33, 58, .2);
  font-size: 12px;
}

.gsc-path-chip {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482000;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(680px, calc(100vw - 36px));
  padding: 9px 10px;
  border: 1px solid rgba(195, 168, 116, .34);
  border-radius: 8px;
  background: #fbf7ef;
  color: #10213a;
  box-shadow: 0 12px 36px rgba(16, 33, 58, .2);
  font-size: 12px;
  font-weight: 750;
}

.gsc-path-chip .gsc-path-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.gsc-path-chip .gsc-path-dot.exec {
  background: #2563eb;
}

.gsc-path-chip .gsc-path-dot.feed {
  background: #d49a22;
}

.gsc-focus-chip .gsc-btn,
.gsc-path-chip .gsc-btn {
  border: 1px solid rgba(16, 33, 58, .14);
  border-radius: 7px;
  background: #fff;
  color: #10213a;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 5px 9px;
}

#tp-labour .gsc-mapping-activity-focus,
#mapping-v2-view .gsc-mapping-activity-focus {
  outline: 2px solid rgba(205, 171, 93, .85) !important;
  outline-offset: -2px;
  background: linear-gradient(90deg, rgba(205, 171, 93, .2), rgba(231, 238, 246, .28)) !important;
  box-shadow: inset 4px 0 0 #12385f, 0 0 0 1px rgba(18, 56, 95, .18) !important;
}

#tp-labour tr.gsc-mapping-activity-focus > td,
#mapping-v2-view tr.gsc-mapping-activity-focus > td {
  background: transparent !important;
}

@media (max-width: 760px) {
  .gsc-panel {
    left: 12px !important;
    right: 12px !important;
    width: auto;
  }

  .gsc-picker-head,
  .gsc-pick-row {
    grid-template-columns: 112px minmax(180px, 1fr) 88px 88px;
  }

  .gsc-grid,
  .gsc-rel-controls {
    grid-template-columns: 1fr;
  }

  .gsc-rel-panes {
    grid-template-columns: 1fr;
  }

  .gsc-rel-row,
  .gsc-rel-cols {
    grid-template-columns: minmax(150px, 1fr) 68px 58px 58px;
  }

  .gsc-path-chip {
    left: 12px;
    right: 12px;
    flex-wrap: wrap;
  }
}
