:root {
  font-family:"Hiragino Sans","Yu Gothic",Meiryo,system-ui,sans-serif;
  color:#19283a;
  background:#f3f6fa;
  --nav:#122238;
  --blue:#245cc4;
  --muted:#566980;
  --line:#dce5ef;
  --white:#fff;
  font-size:14px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  display:grid;
  grid-template-columns:216px minmax(0,1fr);
  min-height:100vh
}
button,input,select,textarea {
  font:inherit
}
button,select {
  cursor:pointer
}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #77a4ff;
  outline-offset:2px
}
.sidebar {
  background:var(--nav);
  color:#eef5ff;
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  padding:22px 14px;
  overflow:auto
}
.brand {
  font-size:22px;
  font-weight:750;
  display:flex;
  align-items:center;
  gap:11px;
  margin:4px 8px 30px
}
.brand small {
  display:block;
  font-size:10px;
  color:#a4b7d2;
  letter-spacing:.1em;
  margin-top:2px
}
.brand-icon,.avatar {
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#3269cf;
  color:#fff;
  width:38px;
  height:38px
}
.sidebar nav {
  display:grid;
  gap:4px
}
.sidebar nav button {
  background:transparent;
  color:#bccce1;
  border:0;
  text-align:left;
  padding:10px 12px;
  border-radius:7px
}
.sidebar nav button:hover,.sidebar nav button[aria-current=page] {
  background:#26416a;
  color:white
}
.nav-icon {
  display:inline-block;
  width:27px;
  color:#9dbfff
}
.sidebar-footer {
  margin-top:auto;
  padding:25px 8px 2px;
  color:#a4b7d2;
  font-size:12px
}
.online {
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#69d6af;
  margin-right:4px
}
.topbar {
  height:62px;
  background:white;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 30px;
  color:var(--muted);
  gap:12px
}
.identity {
  display:flex;
  align-items:center;
  gap:8px
}
.avatar {
  width:29px;
  height:29px;
  background:#e7efff;
  color:#245cc4;
  font-size:12px
}
.identity select {
  border:0;
  background:transparent;
  color:#19283a;
  padding:5px
}
.workspace {
  min-width:0
}
main {
  max-width:1440px;
  margin:auto;
  padding:28px 30px 56px
}
.page-head,.section-head,.toolbar,.actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap
}
.page-head {
  margin-bottom:20px
}
.section-head {
  margin-bottom:12px
}
.actions {
  justify-content:flex-start;
  gap:7px
}
.toolbar {
  justify-content:flex-start;
  margin-bottom:14px
}
.toolbar label {
  display:flex;
  align-items:center;
  gap:6px
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:29px;
  letter-spacing:-.02em
}
h2 {
  font-size:17px
}
h3 {
  font-size:15px
}
p {
  line-height:1.6
}
.muted,.subtitle {
  color:var(--muted)
}
.subtitle {
  margin-top:6px
}
button {
  border:1px solid var(--line);
  color:#23405f;
  background:white;
  border-radius:7px;
  padding:7px 11px;
  white-space:nowrap
}
button:hover {
  background:#eaf1fd
}
.primary {
  background:var(--blue);
  border-color:var(--blue);
  color:white
}
.primary:hover {
  background:#194baf
}
.link {
  border:0;
  background:transparent;
  color:#2057ba;
  padding:2px;
  text-align:left;
  white-space:normal
}
.danger {
  color:#a32b36
}
.sm {
  font-size:12px;
  padding:4px 8px
}
.hero {
  background:linear-gradient(110deg,#172c4b,#274e7d);
  color:white;
  border-radius:13px;
  padding:25px 27px;
  margin-bottom:18px;
  display:flex;
  gap:16px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap
}
.hero p {
  color:#d2e1f4;
  margin-top:6px
}
.hero time {
  background:#ffffff18;
  border:1px solid #ffffff32;
  padding:6px 10px;
  border-radius:7px
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px
}
.metric,.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:11px;
  box-shadow:0 2px 5px #14283f08
}
.metric {
  text-align:left;
  padding:15px 17px;
  display:grid;
  gap:6px;
  white-space:normal
}
.metric strong {
  font-size:27px
}
.metric span {
  color:var(--muted);
  font-size:12px
}
.metric.alert strong {
  color:#a72739
}
.panel {
  padding:17px;
  margin-bottom:16px
}
.compact {
  margin:0
}
.split {
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr);
  gap:15px;
  align-items:start
}
.scroll {
  overflow:auto
}
.scroll table {
  min-width:520px
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left
}
th,td {
  padding:10px 9px;
  border-bottom:1px solid #e6edf4;
  vertical-align:middle
}
th {
  background:#f0f4fa;
  color:#465e79;
  font-size:12px;
  white-space:nowrap
}
tr:last-child td {
  border-bottom:0
}
td small {
  display:block;
  margin-top:4px;
  color:var(--muted)
}
.badge {
  font-weight:650;
  font-size:11px;
  padding:3px 7px;
  border-radius:999px;
  display:inline-block;
  white-space:nowrap;
  background:#edf1f6;
  color:#465a74
}
.blue {
  background:#e7efff;
  color:#244f9e
}
.green {
  background:#dff6eb;
  color:#156443
}
.red {
  background:#fde7e9;
  color:#a72837
}
.amber {
  background:#fff0d4;
  color:#825100
}
.progress {
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap
}
.track {
  width:60px;
  height:6px;
  border-radius:8px;
  background:#e8eef7;
  overflow:hidden
}
.track i {
  display:block;
  height:100%;
  background:#3d72d6
}
.empty {
  padding:18px 4px;
  color:var(--muted)
}
.item {
  padding:11px 0;
  border-bottom:1px solid var(--line)
}
.item:last-child {
  border:0
}
.item p {
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.facts {
  display:flex;
  flex-wrap:wrap;
  gap:14px 26px;
  margin:10px 0
}
.facts div {
  display:grid;
  gap:4px
}
.facts small {
  color:var(--muted)
}
.group-title {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap
}
.table-note {
  margin:9px 0;
  color:var(--muted)
}
input,select,textarea {
  border:1px solid #b9c8da;
  background:white;
  border-radius:6px;
  color:#19283a;
  padding:7px 8px;
  min-width:0
}
textarea {
  resize:vertical
}
dialog {
  border:1px solid var(--line);
  border-radius:12px;
  width:min(620px,calc(100% - 24px));
  padding:20px;
  color:#19283a
}
dialog::backdrop {
  background:#10233d84
}
.fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:14px 0
}
.fields label {
  display:grid;
  gap:5px;
  align-content:start
}
.wide {
  grid-column:1/-1
}
.form-error {
  color:#a72837;
  margin:8px 0
}
#toast {
  position:fixed;
  bottom:18px;
  right:20px;
  background:#1c395c;
  color:white;
  border-radius:8px;
  max-width:min(480px,90vw);
  z-index:3
}
#toast:not(:empty) {
  padding:10px 14px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%)
}
@media(max-width:900px) {
  .split {
    grid-template-columns:1fr
  }
  .metrics {
    grid-template-columns:repeat(2,1fr)
  }
  main {
    padding:18px
  }
  .topbar {
    padding:0 18px
  }
}
@media(max-width:620px) {
  body {
    display:block
  }
  .sidebar {
    position:relative;
    height:auto;
    padding:10px
  }
  .brand {
    margin:2px 4px 9px;
    font-size:17px
  }
  .brand-icon {
    width:30px;
    height:30px
  }
  .brand small,.nav-icon,.sidebar-footer {
    display:none
  }
  .sidebar nav {
    display:flex;
    flex-wrap:wrap
  }
  .sidebar nav button {
    padding:5px 8px
  }
  .topbar {
    height:auto;
    min-height:47px
  }
  .fields {
    grid-template-columns:1fr
  }
  .page-head h1 {
    font-size:24px
  }
}
.item+.toolbar {
  margin-top:14px
}
.form-error:empty {
  display:none
}
.link+.page-head {
  margin-top:8px
}
.fields select[multiple] {
  min-height:90px
}
.fields select[multiple] option {
  padding:3px
}

.panel > .metrics {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));
  margin-bottom:0;
}
.comparison-chart {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:14px;
}
.chart-series {
  display:grid;
  grid-template-columns:2.5em minmax(0,1fr) 9ch;
  align-items:center;
  gap:8px;
  margin-top:5px;
  font-size:13px;
}
.chart-series > :last-child {
  text-align:right;
  overflow-wrap:anywhere;
}
.chart-track {
  display:block;
  background:#e9eef5;
  height:10px;
  border-radius:4px;
  overflow:hidden;
}
.chart-fill {
  display:block;
  height:100%;
  background:#2163b5;
}
.chart-fill.base {
  background:#6d829a;
}
.chart-fill.over {
  background:#b1243d;
}
.load-meter {
  display:grid;
  grid-template-columns:minmax(6rem,1fr) auto;
  align-items:center;
  gap:8px;
}

.memo-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.case-summary {
  border-bottom: 1px solid var(--line, #dce2ea);
  margin-bottom: 1rem;
}
.case-summary .actions, .chart-legend {
  align-items: center;
  gap: .5rem;
}
.jump-link {
  align-self: center;
  padding: .35rem .55rem;
  text-underline-offset: .2em;
}
#case-products { scroll-margin-top: 4rem; }
.panel details + details { margin-top: .75rem; }
.panel details > summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
.chart-legend { display: flex; flex-wrap: wrap; margin-bottom: .7rem; }

#businessNavigation {
  position:relative;
  margin-left:auto;
}
#businessNavigation summary {
  cursor:pointer;
  color:var(--muted);
  white-space:nowrap;
}
#businessMenu {
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:10;
  width:12rem;
  padding:8px;
  display:grid;
  gap:4px;
  background:white;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 6px 20px rgba(20,37,68,.15);
}
#businessMenu button {
  text-align:left;
}
#businessMenu button[aria-current=page] {
  font-weight:700;
}
.record-text {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
@media (max-width:600px) {
  .topbar {
    padding:8px 12px;
    flex-wrap:wrap;
  }
  #breadcrumb {
    width:100%;
  }
  #businessNavigation {
    margin-left:0;
  }
  #businessMenu {
    left:0;
    right:auto;
  }
}
