/* 기성금 계산기 — 남색 + 호박색 표준 (손으로 넣는 칸은 노란색) */
.gs {
  --navy: #0b2f73;
  --navy2: #e4ecf9;
  --amber: #b96a00;
  --gold: #f0b429;
  --bg: #f2f0ea;
  --ln: #ddd9cf;
  --in: #fff7b0;
  --red: #b42318;
  --green: #17663f;
  --txt: #111827;
  --sub: #4b5563;
  background: var(--bg);
  color: var(--txt);
  min-height: 70vh;
}
.gs * {
  box-sizing: border-box;
}
.gs [hidden] {
  display: none !important;
}
.gs button {
  font: inherit;
  cursor: pointer;
  border: 0;
}
.gs-top {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.gs-top > div,
.gs-body {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 18px;
}
.gs-top > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.gs-top h1 {
  font-size: 23px;
  font-weight: 800;
  margin-right: 2px;
  letter-spacing: -0.5px;
}
.gs-top .v {
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 9px;
  margin-right: auto;
}
.gs-top button {
  background: #c5d3ee;
  color: var(--navy);
  font-weight: 700;
  font-size: 13.5px;
  padding: 7px 13px;
}
.gs-top button:hover {
  background: #fff;
}
.gs-top button.g {
  background: var(--gold);
}
.gs-body {
  padding-top: 16px;
  padding-bottom: 40px;
}
.gs .card {
  background: #fff;
  border: 1px solid var(--ln);
  padding: 15px 16px;
}
.gs .card h2 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* 시작 */
.start {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}
.start .drop {
  grid-row: span 2;
  background: #fff;
  border: 3px dashed #9db2dc;
  padding: 44px 20px;
  text-align: center;
  color: var(--navy);
  min-height: 310px;
}
.start .drop:hover,
.start .drop.hov {
  border-color: var(--amber);
  background: #fff3d4;
}
.start .drop svg {
  width: 108px;
  height: 108px;
}
.start .drop b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  margin: 10px 0 2px;
}
.start .drop span {
  font-size: 14.5px;
  color: var(--sub);
}
.start .opt {
  background: #fff;
  border: 1px solid var(--ln);
  border-left: 6px solid var(--navy);
  text-align: left;
  padding: 20px;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
}
.start .opt:hover {
  border-left-color: var(--amber);
  background: #fff3d4;
}
.start .opt small {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sub);
  margin-top: 3px;
}
.how {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.how div {
  background: #fff;
  border: 1px solid var(--ln);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 800;
}
.how svg {
  width: 88px;
  height: 56px;
  flex: none;
}
.how b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  flex: none;
}

/* 작업 */
.gs-ex {
  background: var(--navy2);
  border: 1px solid #c5d3ee;
  color: var(--navy);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cand {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 2px;
}
.cand button {
  background: #c5d3ee;
  color: var(--navy);
  padding: 7px 12px;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
  display: flex;
  gap: 9px;
  align-items: center;
}
.cand button.on {
  background: var(--navy);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.cand em {
  font-style: normal;
  background: #e2f3e9;
  color: var(--green);
  font-weight: 700;
  padding: 0 7px;
}
.fields {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr 1fr 1.1fr 1.1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.fields label {
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
  display: block;
  min-width: 0;
}
.fields input,
.row input.nm,
.row input.am,
.pc input {
  background: var(--in);
  border: 1px solid #aeb4bf;
  color: var(--txt);
  font: inherit;
  font-weight: 700;
  width: 100%;
  min-width: 0;
}
.fields input {
  display: block;
  margin-top: 3px;
  padding: 8px 10px;
  font-size: 16px;
  height: 42px;
}
.fields input.n {
  text-align: right;
}
.gs input:focus {
  outline: 2px solid var(--amber);
  outline-offset: -1px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr);
  gap: 14px;
  align-items: start;
}
.lh {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.lh h2 {
  margin: 0 !important;
}
.lh u,
.tags u {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  background: #eceae3;
  color: var(--sub);
  padding: 2px 9px;
}
.lh u.d {
  background: var(--navy);
  color: #fff;
}
.lh u.i {
  background: var(--gold);
  color: #4a2b00;
}
.lh .vs {
  margin-left: auto;
  background: #c5d3ee;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 800;
  padding: 6px 13px;
}
.lh .vs.on {
  background: var(--amber);
  color: #fff;
}
.row {
  display: grid;
  grid-template-columns: 30px minmax(96px, 1.1fr) minmax(104px, 0.9fr) minmax(
      0,
      2.5fr
    ) 22px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid #eeebe3;
}
.row .st {
  width: 30px;
  height: 30px;
  border: 2px solid #aeb4bf;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.row.ing .st {
  border-color: var(--gold);
  background: linear-gradient(90deg, var(--gold) 50%, #fff 50%);
}
.row.done .st {
  background: var(--green);
  border-color: var(--green);
}
.row input.nm,
.row input.am {
  padding: 5px 8px;
  font-size: 14.5px;
  height: 34px;
}
.row input.am {
  text-align: right;
}
.row .del {
  background: none;
  color: #a5a9b1;
  font-size: 19px;
  line-height: 1;
  padding: 0;
}
.row .del:hover {
  color: var(--red);
}
.ln {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ln u {
  display: none;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  width: 40px;
  flex: none;
}
.ln.q {
  display: none;
}
.ln.q u {
  color: var(--amber);
}
.vs .ln u,
.vs .ln.q {
  display: flex;
}
.vs .ln.q {
  margin-top: 4px;
}
.row.diff {
  background: #fff3d4;
  box-shadow:
    -8px 0 0 #fff3d4,
    8px 0 0 #fff3d4;
}
.bar {
  position: relative;
  flex: 1;
  height: 30px;
  background: #e6e3da;
  min-width: 60px;
}
.vs .bar {
  height: 24px;
}
.bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  transition: width 0.12s;
}
.bar .b {
  background: var(--navy);
}
.bar .n {
  background: var(--gold);
}
.row.done .pp .n {
  background: var(--green);
}
.bar.qq .n {
  background: var(--amber);
}
.bar input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: ew-resize;
  touch-action: pan-y;
}
.bar input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 36px;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.bar input::-moz-range-thumb {
  width: 11px;
  height: 30px;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 4px;
}
.vs .bar input::-webkit-slider-thumb {
  height: 28px;
}
.qq input::-webkit-slider-thumb {
  border-color: var(--amber);
}
.pc {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}
.pc input {
  width: 46px;
  text-align: right;
  padding: 3px 5px;
  height: 30px;
  margin-right: 2px;
  font-size: 15px;
}
.lf {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--sub);
}
.lf button {
  background: var(--navy2);
  color: var(--navy);
  font-weight: 700;
  padding: 7px 14px;
}
.lf em {
  font-style: normal;
  color: var(--green);
  font-weight: 700;
}
.lf .key {
  margin-left: auto;
  display: flex;
  gap: 12px;
  font-size: 12.5px;
}
.key i {
  display: inline-block;
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 4px;
}

/* 결과 */
.side {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 72px;
}
.now {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--gold);
  padding: 16px 18px;
}
.now span {
  font-size: 15px;
  font-weight: 700;
  color: #dbe5f7;
}
.now strong {
  display: block;
  text-align: right;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
}
.now strong em {
  font-style: normal;
  font-size: 20px;
  margin-left: 2px;
}
.now p {
  text-align: right;
  color: #f0b429;
  font-weight: 700;
  font-size: 15px;
}
.now.neg {
  background: var(--red);
}
.now.neg p {
  color: #ffe1dc;
}
.now .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.now .two b {
  display: block;
  font-size: 23px;
  letter-spacing: -0.5px;
}
.now .two + p {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 7px;
}
.wf,
.hb {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  margin: 5px 0;
}
.wf > span,
.hb > span {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wf > div {
  height: 16px;
  background: #f2f0ea;
}
.wf i,
.hb i {
  display: block;
  height: 100%;
  transition: width 0.2s;
}
.wf b {
  min-width: 104px;
  text-align: right;
  white-space: nowrap;
}
.wf.a i {
  background: var(--navy);
}
.wf.m i {
  background: #9db2dc;
}
.wf.z i {
  background: var(--gold);
}
.wf.r i,
.wf.d i {
  background: var(--red);
}
.wf.z,
.wf.r {
  border-top: 2px solid var(--txt);
  padding-top: 7px;
  margin-top: 8px;
}
.wf.r b {
  color: var(--red);
}
.wf.d i {
  background: var(--amber);
}
.prog {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
}
.bld {
  text-align: center;
}
.bld svg {
  width: 96px;
  display: block;
  margin: 0 auto;
}
.bld b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.bld span {
  font-size: 12.5px;
  color: var(--sub);
  font-weight: 700;
}
.hb {
  grid-template-columns: 36px 1fr 62px;
}
.hb > div {
  height: 24px;
  background: #eceae3;
}
.hb b {
  text-align: right;
  font-size: 14px;
  white-space: nowrap;
}
.hb.t i {
  background: #9db2dc;
}
.hb.w i {
  background: var(--navy);
}
.hb.p i {
  background: var(--gold);
}
.hb.over i {
  background: var(--red);
}
.hb.over b {
  color: var(--red);
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.tags u.r {
  background: #fdf3f2;
  color: var(--red);
  border: 1px solid #efc6c1;
}
.stack {
  display: flex;
  height: 30px;
  background: #eceae3;
  overflow: hidden;
}
.g1 {
  --g: #0b2f73;
}
.g2 {
  --g: #f0b429;
}
.g3 {
  --g: #dcd8cd;
}
.stack i {
  background: var(--g);
  transition: flex 0.2s;
}
.leg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--sub);
}
.leg span {
  border-top: 4px solid var(--g);
  padding-top: 4px;
}
.leg b {
  display: block;
  color: var(--txt);
  font-size: 14px;
}
.cols {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  min-height: 140px;
  overflow-x: auto;
}
.col {
  flex: 1;
  min-width: 54px;
  max-width: 92px;
  text-align: center;
  font-size: 12px;
}
.col em {
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}
.col > div {
  height: 78px;
  background: #f2f0ea;
  display: flex;
  align-items: flex-end;
  margin: 2px 0 4px;
}
.col i {
  display: block;
  width: 100%;
  background: var(--navy);
}
.col.c i {
  background: var(--gold);
}
.col span {
  display: block;
  font-weight: 700;
}
.col b {
  color: var(--sub);
  font-weight: 600;
}
.ract {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.ract button {
  padding: 10px 12px;
  font-weight: 800;
  font-size: 14.5px;
}
.ract .c {
  flex: 1;
  background: var(--navy);
  color: #fff;
}
.ract .c:disabled {
  background: #c9ccd3;
  cursor: default;
}
.ract .u {
  background: var(--navy2);
  color: var(--navy);
}
.ok {
  color: var(--green);
  font-weight: 800;
}
.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cta a {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 15.5px;
  padding: 13px 8px;
  background: var(--amber);
  color: #fff;
}
.cta a + a {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 11px 6px;
}
.cta a:hover {
  filter: brightness(1.08);
}
.fine {
  font-size: 12.5px;
  color: var(--sub);
  margin-top: 14px;
  text-align: center;
}
.gs-busy {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(11, 47, 115, 0.82);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.gs-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 90px);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  z-index: 96;
  opacity: 0;
  transition: 0.25s;
  max-width: 92vw;
  pointer-events: none;
}
.gs-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.gs-toast.bad {
  background: var(--red);
}
#gsPaper {
  display: none;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    position: static;
  }
  .fields {
    grid-template-columns: 1fr 1fr;
  }
  .start,
  .how {
    grid-template-columns: minmax(0, 1fr);
  }
  .start .drop {
    grid-row: auto;
    min-height: 0;
    padding: 30px 16px;
  }
}
@media (max-width: 620px) {
  .gs-top > div,
  .gs-body {
    padding-left: 12px;
    padding-right: 12px;
  }
  .gs-top h1 {
    font-size: 20px;
  }
  .gs-top button {
    padding: 6px 9px;
    font-size: 13px;
  }
  .row {
    grid-template-columns: 30px minmax(0, 1fr) 116px 20px;
    row-gap: 6px;
  }
  .row .bars {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .now strong {
    font-size: 31px;
  }
  .wf {
    grid-template-columns: 84px 1fr auto;
  }
  .wf b {
    min-width: 92px;
  }
  .lf .key {
    margin-left: 0;
  }
}
@media print {
  body > *:not(.gs) {
    display: none !important;
  }
  .gs > *:not(#gsPaper) {
    display: none !important;
  }
  .gs {
    background: #fff;
    min-height: 0;
  }
  #gsPaper {
    display: block;
    font-size: 10.5pt;
    color: #000;
  }
  #gsPaper h1 {
    font-size: 17pt;
    text-align: center;
    margin-bottom: 2mm;
  }
  #gsPaper p {
    text-align: center;
    margin-bottom: 5mm;
  }
  #gsPaper table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 6mm;
  }
  #gsPaper th,
  #gsPaper td {
    border: 1px solid #333;
    padding: 1.4mm 2mm;
    text-align: right;
  }
  #gsPaper th {
    background: #e4ecf9;
    text-align: center;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #gsPaper td:first-child {
    text-align: left;
  }
  #gsPaper .t {
    font-weight: 700;
  }
  #gsPaper .s {
    width: 60%;
    margin-left: auto;
  }
  #gsPaper .s td {
    text-align: right !important;
  }
  #gsPaper tr {
    break-inside: avoid;
  }
  #gsPaper footer {
    text-align: center;
    font-size: 8.5pt;
    color: #555;
  }
  @page {
    size: A4;
    margin: 14mm;
  }
}

.gs .cand em.w,
.gs .lf em.w {
  background: #fdf3f2;
  color: var(--red);
}
/* base.css 의 입력칸 공통 모양을 걷어낸다 */
.gs .row input,
.gs .row label {
  margin: 0;
}
.gs .row .bar input[type="range"] {
  left: -8px;
  right: auto;
  width: calc(100% + 16px);
  padding: 0;
  border: 0;
  background: none;
  outline-offset: 2px;
}
.gs .left {
  display: grid;
  gap: 12px;
  min-width: 0;
}
@media (max-width: 980px) {
  .gs #gsNow {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 8px 16px;
    border-bottom: 0;
    border-top: 3px solid var(--gold);
  }
  .gs #gsNow > span {
    float: left;
    line-height: 38px;
  }
  .gs #gsNow strong {
    font-size: 25px;
    line-height: 38px;
  }
  .gs #gsNow strong + p {
    display: none;
  }
  .gs .gs-body {
    padding-bottom: 90px;
  }
  .gs-toast {
    bottom: 76px;
  }
}
@media (max-width: 620px) {
  .gs .wf {
    grid-template-columns: 100px 1fr auto;
  }
  .gs-top .v {
    display: none;
  }
  .gs-top h1 {
    margin-right: auto;
  }
  .gs #gsNow .two b {
    font-size: 19px;
  }
}

/* 표 고르기 — 고른 것만, 나머지는 펼치기 */
.gs .cand {
  overflow: visible;
  flex-wrap: wrap;
}
.gs .cand:not(.open) button:not(.on):not(.more) {
  display: none;
}
.gs .cand .more {
  background: none;
  text-decoration: underline;
}
/* 맨 위 띠 */
.gs .kpi {
  position: sticky;
  top: 60px;
  z-index: 40;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.15fr 1.15fr;
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--gold);
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(11, 47, 115, 0.22);
}
.gs .kpi > div {
  padding: 11px 16px 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  min-width: 0;
}
.gs .kpi > div:first-child {
  border-left: 0;
}
.gs .kpi span {
  font-size: 14px;
  font-weight: 700;
  color: #dbe5f7;
}
.gs .kpi b {
  display: block;
  font-size: clamp(20px, 2.3vw, 31px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.gs .kpi b i {
  font-style: normal;
}
.gs .kpi b em {
  font-style: normal;
  font-size: 0.55em;
  margin-left: 3px;
}
.gs .kpi small {
  font-size: 13px;
  font-weight: 700;
  color: #b9c9e8;
}
.gs .kpi .kr b {
  font-size: clamp(26px, 2.9vw, 40px);
  color: var(--gold);
  line-height: 1.05;
}
.gs .kpi .kb {
  height: 9px;
  background: rgba(255, 255, 255, 0.2);
  margin-top: 5px;
}
.gs .kpi .kb i {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width 0.25s;
}
.gs .kpi .kn {
  background: var(--gold);
  color: var(--navy);
}
.gs .kpi .kn span,
.gs .kpi .kn small {
  color: #5c3a00;
}
.gs .kpi .kn.neg {
  background: var(--red);
  color: #fff;
}
.gs .kpi .kn.neg span,
.gs .kpi .kn.neg small {
  color: #ffe1dc;
}
/* 계약기간 시간줄 */
.gs .kpi .ktime {
  grid-column: 1 / -1;
  background: #fff;
  color: var(--txt);
  border: 1px solid var(--ln);
  border-bottom: 0;
  padding: 8px 16px 7px;
}
.gs .ktime .th,
.gs .ktime .tk {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.gs .ktime .th b {
  font-size: 13.5px;
  letter-spacing: 0;
  color: var(--navy);
}
.gs .ktime .th strong {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}
.gs .ktime.late .th strong {
  color: var(--red);
}
.gs .ktime .tl {
  position: relative;
  height: 30px;
  background: #eceae3;
  margin: 24px 0 5px;
}
.gs .ktime .tl > i {
  position: absolute;
  left: 0;
  transition: width 0.25s;
}
.gs .ktime .past {
  top: 0;
  height: 100%;
  background: #c5d3ee;
}
.gs .ktime .work {
  bottom: 0;
  height: 11px;
  background: var(--navy);
}
.gs .ktime .tl u {
  position: absolute;
  top: 1px;
  bottom: 0;
  border-left: 1px solid rgba(17, 24, 39, 0.25);
  padding-left: 3px;
  font-size: 11px;
  line-height: 16px;
  color: var(--sub);
  text-decoration: none;
  white-space: nowrap;
}
.gs .ktime .tl s {
  position: absolute;
  top: -5px;
  bottom: -3px;
  width: 4px;
  margin-left: -2px;
  background: var(--amber);
  text-decoration: none;
}
.gs .ktime .tl s em {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  padding: 0 7px;
  white-space: nowrap;
}
.gs .ktime .tl s em.r {
  left: auto;
  right: 0;
  transform: none;
}
.gs .ktime .tl s em.l {
  left: 0;
  transform: none;
}
.gs .ktime .tk {
  justify-content: flex-start;
  gap: 16px;
}
.gs .ktime .tk span {
  font-size: 13px;
  color: var(--txt);
}
.gs .ktime .tk .p::before,
.gs .ktime .tk .w::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  background: #c5d3ee;
  margin-right: 5px;
}
.gs .ktime .tk .w::before {
  background: var(--navy);
}
.gs .ktime .tk .bad {
  color: var(--red);
  margin-left: auto;
}
.gs .ktime.no {
  padding: 7px 16px;
}
.gs .ktime.no button {
  background: none;
  color: var(--amber);
  font-weight: 800;
  font-size: 14px;
  width: 100%;
}
.gs .side {
  top: 262px;
}
@media (min-width: 981px) {
  .gs #gsNow:not(.vs) {
    display: none;
  }
}
@media (max-height: 760px) {
  .gs .side {
    position: static;
  }
}
@media (max-width: 980px) {
  .gs .kpi {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
  .gs .kpi .kn {
    display: none;
  }
  .gs .kpi .kt,
  .gs .kpi .kc {
    grid-column: 1 / -1;
  }
  .gs .kpi .kr {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
  .gs .kpi .kc {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
  .gs .kpi b {
    font-size: 27px;
  }
  .gs .kpi .kr b {
    font-size: 34px;
  }
  .gs .ktime .th {
    flex-wrap: wrap;
  }
  .gs .ktime .th strong {
    order: -1;
    width: 100%;
    text-align: center;
  }
  .gs .ktime .th b {
    font-size: 12.5px !important;
  }
  .gs #gsNow > span i {
    font-style: normal;
  }
}

/* 공정표 */
.gs .lh .vs + .vs {
  margin-left: 0;
}
.gs .ln.g,
.gs .gd {
  display: none;
}
.gs .sc .ln.g {
  display: flex;
  margin-top: 5px;
}
.gs .sc .ln u {
  display: none;
}
.gs .vs.sc .ln u {
  display: block;
}
.gs .sc .gg {
  height: 18px;
  background: #f2f0ea;
}
.gs .gg .b {
  background: #9db2dc;
  transition: none;
}
.gs .ln.g.none .b {
  background: repeating-linear-gradient(90deg, #dcd8cd 0 6px, transparent 6px 12px);
}
.gs .row.late .gg .b {
  background: #e3a79f;
}
.gs .gg s,
.gs .pp .ex {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 3px;
  margin-left: -1px;
  background: var(--amber);
  pointer-events: none;
  z-index: 4;
}
.gs .pp .ex {
  background: var(--red);
  top: -4px;
  bottom: -4px;
  z-index: 0;
}
.gs .row .gg input[type="range"] {
  pointer-events: none;
  z-index: 2;
}
.gs .gg input::-webkit-slider-thumb {
  pointer-events: auto;
  width: 14px;
  height: 24px;
  border-color: #5f7fc0;
}
.gs .gg input::-moz-range-thumb {
  pointer-events: auto;
  width: 9px;
  height: 18px;
  border-color: #5f7fc0;
}
.gs .ln .px {
  width: 62px;
  flex: none;
  font-size: 12px;
  color: var(--sub);
  white-space: nowrap;
}
.gs .ln .px b {
  color: var(--txt);
  font-size: 14px;
  margin-right: 3px;
}
.gs .row.late .ln .px b {
  color: var(--red);
}
.gs .sc .gd {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}
.gs .gd em {
  font-style: normal;
}
.gs .row .gd input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 28px;
  padding: 2px 5px;
  font-size: 13px;
  font-weight: 600;
  background: var(--in);
  border: 1px solid #aeb4bf;
  border-radius: 0;
}
.gs .sc .row {
  align-items: start;
  row-gap: 4px;
}
.gs .sc .row .bars {
  grid-column: 4;
  grid-row: 1 / span 2;
}
.gs .sc .row .del {
  grid-column: 5;
  grid-row: 1;
}
.gs .sc .gd {
  grid-column: 2 / 4;
  grid-row: 2;
  margin: 0;
}
.gs .sc .ln .px {
  padding-left: 4px;
}
.gs #gsLateN {
  color: var(--red);
}
.gs .lt {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  margin: 8px 0;
  font-size: 14px;
  font-weight: 700;
}
.gs .lt em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--red);
}
.gs .lt > div {
  position: relative;
  height: 18px;
  background: #f2f0ea;
}
.gs .lt i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
}
.gs .lt .x,
.gs .lk .x {
  background: #e3a79f;
}
.gs .lt .p,
.gs .lk .p {
  background: var(--navy);
}
.gs .lt b {
  min-width: 86px;
  text-align: right;
}
.gs .lk {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  color: var(--sub);
}
.gs .lk i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: -1px;
}
.gs .lm,
.gs .ok.n {
  font-size: 13px;
  color: var(--sub);
  font-weight: 700;
}
.gs .hb.x i {
  background: #e3a79f;
}
.gs .ktime .tl > .px {
  bottom: -2px;
  height: 15px;
  width: 3px;
  background: var(--red);
}
.gs .ktime .tk .x::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 12px;
  background: var(--red);
  margin-right: 5px;
  vertical-align: -1px;
}
@media (max-width: 620px) {
  .gs .sc .row .bars {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .gs .sc .row .del {
    grid-column: 4;
  }
  .gs .sc .gd {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .gs .ktime .tk {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
}
