    :root {
      --teal: #088082;
      --teal-d: #066163;
      --teal-l: #e6f4f4;
      --line: #dbe4e4;
      --txt: #1f2d2d;
      --mut: #6b7c7c
    }

    * {
      box-sizing: border-box
    }

    body {
      margin: 0;
      font-family: Segoe UI, Roboto, Arial, sans-serif;
      background: #f3f7f7;
      color: var(--txt);
      font-size: 14px
    }

    [hidden] {
      display: none !important
    }

    button {
      font: inherit;
      background: var(--teal);
      color: #fff;
      border: 0;
      border-radius: 6px;
      padding: 8px 14px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600
    }

    button:hover {
      background: var(--teal-d)
    }

    .ghost {
      background: #fff;
      color: var(--teal);
      border: 1px solid var(--teal)
    }

    .ghost:hover {
      background: var(--teal-l)
    }

    .danger {
      background: #fff;
      color: #c0392b;
      border: 1px solid #e6b0aa;
      padding: 4px 9px
    }

    .danger:hover {
      background: #fdecea
    }

    input,
    select,
    textarea {
      font: inherit;
      color: inherit;
      border: 1px solid var(--line);
      border-radius: 5px;
      padding: 7px 8px;
      background: #fff;
      width: 100%
    }

    input:focus,
    select:focus,
    textarea:focus {
      outline: 2px solid var(--teal-l);
      border-color: var(--teal)
    }

    /* login */
    #login {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #e6f4f4, #fff)
    }

    .lbox {
      background: #fff;
      width: 380px;
      max-width: 92vw;
      padding: 32px;
      border-radius: 12px;
      box-shadow: 0 6px 30px rgba(8, 128, 130, .15);
      border-top: 4px solid var(--teal)
    }

    .lbox img {
      height: 52px;
      display: block;
      margin: 0 auto 18px
    }

    .lbox label {
      display: block;
      margin: 12px 0 4px;
      color: var(--mut);
      font-weight: 600
    }

    .lbox button {
      width: 100%;
      margin-top: 18px;
      padding: 11px
    }

    .err {
      color: #c0392b;
      font-size: 12px;
      margin-top: 8px
    }

    .hint {
      margin-top: 16px;
      font-size: 11px;
      color: var(--mut);
      background: var(--teal-l);
      padding: 8px;
      border-radius: 6px;
      line-height: 1.6
    }

    /* layout */
    #app {
      display: flex;
      min-height: 100vh
    }

    .side {
      width: 230px;
      background: #fff;
      border-right: 1px solid var(--line);
      padding: 18px 14px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      position: sticky;
      top: 0;
      height: 100vh
    }

    .side img {
      height: 40px;
      align-self: flex-start;
      margin: 0 6px 16px
    }

    .nav {
      background: transparent;
      color: var(--txt);
      text-align: left;
      font-weight: 600;
      padding: 10px 12px;
      border-radius: 8px;
      width: 100%
    }

    .nav:hover {
      background: var(--teal-l)
    }

    .nav.on {
      background: var(--teal);
      color: #fff
    }

    .me {
      margin-top: auto;
      border-top: 1px solid var(--line);
      padding-top: 12px;
      font-size: 12px;
      color: var(--mut)
    }

    .me b {
      display: block;
      color: var(--txt);
      font-size: 13px
    }

    .role {
      display: inline-block;
      background: var(--teal-l);
      color: var(--teal);
      border-radius: 10px;
      padding: 1px 8px;
      font-weight: 700;
      margin: 3px 0 8px
    }

    main {
      flex: 1;
      padding: 22px 26px;
      min-width: 0
    }

    h2.pt {
      margin: 0 0 16px;
      color: var(--teal)
    }

    .card {
      background: #fff;
      border-radius: 10px;
      padding: 16px;
      box-shadow: 0 1px 8px rgba(0, 0, 0, .06)
    }

    .card h3 {
      margin: 0 0 12px;
      font-size: 15px;
      color: var(--teal-d)
    }

    .g2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 16px
    }

    .kpi {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 16px
    }

    .kpi .card b {
      display: block;
      font-size: 20px;
      margin-top: 4px;
      color: var(--teal)
    }

    .kpi .card span {
      color: var(--mut);
      font-size: 12px
    }

    .flt {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 16px
    }

    .flt input,
    .flt select {
      width: auto
    }

    svg text {
      font-family: inherit
    }

    .rk {
      display: grid;
      grid-template-columns: 26px 1fr auto;
      gap: 4px 10px;
      align-items: center;
      margin-bottom: 10px
    }

    .rk i {
      font-style: normal;
      font-weight: 700;
      color: var(--teal)
    }

    .rk .bar {
      grid-column: 2/4;
      height: 8px;
      background: var(--teal-l);
      border-radius: 4px;
      overflow: hidden
    }

    .rk .bar div {
      height: 100%;
      background: linear-gradient(90deg, #088082, #2ba9a0)
    }

    .rk small {
      color: var(--mut)
    }

    table.t {
      width: 100%;
      border-collapse: collapse
    }

    .t th {
      background: var(--teal);
      color: #fff;
      text-align: left;
      padding: 9px 8px;
      font-size: 13px
    }

    .t td {
      padding: 9px 8px;
      border-bottom: 1px solid var(--line)
    }

    .t tbody tr.clk {
      cursor: pointer
    }

    .t tbody tr.clk:hover {
      background: var(--teal-l)
    }

    .chip {
      padding: 2px 9px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap
    }

    .ok {
      background: #e3f6ea;
      color: #1e8449
    }

    .no {
      background: #fff1e0;
      color: #c76a00
    }

    .tb {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      margin-bottom: 14px
    }

    .tb .sp {
      margin-right: auto
    }

    .tb select {
      width: auto
    }

    /* sheet */
    .sheet {
      max-width: 1150px;
      margin: 0 auto;
      background: #fff;
      padding: 36px;
      border-radius: 8px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, .07)
    }

    .top {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      border-bottom: 2px solid var(--teal);
      padding-bottom: 16px
    }

    .co {
      font-size: 12px;
      color: var(--mut);
      line-height: 1.5
    }

    .logo {
      height: 50px;
      width: auto;
      display: block;
      margin-bottom: 6px
    }

    .ttl {
      text-align: right
    }

    .ttl h1 {
      margin: 0;
      color: var(--teal);
      font-size: 26px
    }

    .ttl input {
      text-align: right;
      font-weight: 700;
      font-size: 16px;
      margin-top: 6px;
      width: 200px
    }

    .meta {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px 40px;
      margin: 20px 0
    }

    .f {
      display: grid;
      grid-template-columns: 135px 1fr;
      align-items: start;
      gap: 8px
    }

    .f label {
      color: var(--mut);
      font-weight: 600;
      padding-top: 8px
    }

    .f label::after {
      content: " :"
    }

    .f .fixed {
      padding: 8px 0;
      font-weight: 600
    }

    .sheet table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 6px
    }

    .sheet th {
      background: var(--teal);
      color: #fff;
      text-align: left;
      padding: 9px 8px;
      font-size: 13px
    }

    .sheet td {
      padding: 8px;
      border-bottom: 1px solid var(--line);
      vertical-align: top
    }

    .r {
      text-align: right
    }

    th.r {
      text-align: right
    }

    .qbox {
      display: flex;
      align-items: center;
      border: 1px solid var(--line);
      border-radius: 5px;
      background: #fff
    }

    .qbox input {
      border: 0;
      text-align: right
    }

    .qbox span {
      padding: 0 8px;
      color: var(--teal);
      font-weight: 700;
      background: var(--teal-l);
      align-self: stretch;
      display: flex;
      align-items: center;
      border-radius: 0 5px 5px 0
    }

    .unit {
      display: flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap
    }

    .unit span {
      color: var(--mut)
    }

    textarea.det {
      white-space: nowrap;
      overflow-x: auto;
      resize: none;
      min-height: 34px;
      line-height: 1.35
    }

    .tot {
      font-weight: 600;
      padding-top: 14px !important;
      white-space: nowrap
    }

    .sum {
      margin-left: auto;
      width: 320px;
      margin-top: 14px
    }

    .sum div {
      display: flex;
      justify-content: space-between;
      padding: 5px 0
    }

    .sum .g {
      border-top: 2px solid var(--teal);
      margin-top: 6px;
      padding-top: 9px;
      font-size: 17px;
      font-weight: 700;
      color: var(--teal)
    }

    .sign {
      margin-top: 30px;
      display: flex;
      justify-content: space-between;
      gap: 30px;
      align-items: flex-end
    }

    .sign .box {
      min-height: 110px;
      width: 260px
    }

    .sign .nm {
      border-top: 1px solid var(--txt);
      padding-top: 4px;
      margin-top: 70px
    }

    .bank {
      font-size: 12px;
      color: var(--mut);
      line-height: 1.6;
      white-space: pre-line
    }

    .web {
      text-align: center;
      color: var(--teal);
      font-weight: 600;
      font-size: 12px;
      margin-top: 26px
    }

    .cerr {
      color: #c0392b;
      font-size: 12px;
      margin-top: 3px
    }

    .ro input:disabled,
    .ro select:disabled,
    .ro textarea:disabled {
      background: transparent;
      color: inherit;
      opacity: 1;
      -webkit-text-fill-color: currentColor;
      border-color: transparent;
      appearance: none;
      -webkit-appearance: none
    }

    .ro .qbox {
      border-color: transparent
    }

    @media screen and (max-width:1000px) {

      .g2,
      .kpi {
        grid-template-columns: 1fr
      }

      .side {
        display: none
      }

      .meta {
        grid-template-columns: 1fr
      }

      .sheet {
        overflow-x: auto;
        padding: 16px
      }
    }

    @media print {
      @page {
        size: A4;
        margin: 0
      }

      body {
        background: #fff
      }

      .side,
      .noprint,
      .act,
      .cerr {
        display: none !important
      }

      main {
        padding: 0
      }

      .sheet {
        box-shadow: none;
        margin: 0;
        padding: 14mm 14mm 20mm;
        max-width: none;
        border-radius: 0
      }

      .meta {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 24px
      }

      .f {
        grid-template-columns: 120px 1fr
      }

      .f label {
        padding-top: 0
      }

      .f .fixed {
        padding: 0
      }

      .web {
        position: fixed;
        bottom: 8mm;
        left: 0;
        right: 0
      }

      input,
      select,
      textarea {
        border: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        appearance: none;
        -webkit-appearance: none
      }

      textarea.det {
        overflow: visible !important
      }

      .qbox {
        border: 0 !important
      }

      .qbox span {
        background: transparent !important;
        color: inherit !important
      }

      .sheet th {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact
      }

      tr {
        page-break-inside: avoid
      }

      .sheet table {
        font-size: 11px
      }

      .sheet th,
      .sheet td {
        padding: 6px 4px
      }

      .sheet th:nth-child(1) {
        width: 22px !important
      }

      .sheet th:nth-child(3) {
        width: 70px !important
      }

      .sheet th:nth-child(4) {
        width: 92px !important
      }

      .sheet th:nth-child(5) {
        width: 82px !important
      }

      .sheet th:nth-child(6) {
        width: 96px !important
      }

      body.newc #f_customer {
        display: none
      }
    }
