:root {
  --canvas: #f9faf1;
  --ink: #191c17;
  --muted: #42493d;
  --green: #275216;
  --line: #c2c9ba;
  --surface: #fff;
}
html,
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
}
button,
input,
textarea,
select {
  font-family: inherit;
}
.ms {
  display: inline-block;
  text-align: left;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  letter-spacing: normal;
  text-transform: none;
  font: 400 18px/1 'Material Symbols Local';
  font-feature-settings: 'liga';
  white-space: nowrap;
  direction: ltr;
  overflow: hidden;
  width: 1em;
  height: 1em;
  flex: none;
}
.sr-only {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  padding: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body .app {
  display: flex;
  align-items: stretch;
  min-height: max(100vh, 1024px);
  background: var(--canvas);
}
body .sidebar {
  display: flex;
  flex: 0 0 240px;
  width: 240px;
  position: relative;
  inset: auto;
  align-self: stretch;
  min-height: 1024px;
  height: auto;
  z-index: 2;
  padding: 16px;
  gap: 24px;
  background: white;
  border: 0;
  border-right: 1px solid var(--line);
  box-shadow: none;
}
[data-kp-page='Pelamar affiliate'] #main form {
  max-width: 720px;
  margin: 16px 0;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
[data-kp-page='Pelamar affiliate'] .section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:22px 0 10px;
}
[data-kp-page='Pelamar affiliate'] #applicantMessage:empty {display:none}
[data-kp-page='Pelamar affiliate'] #applicantList {max-width:100%;overflow:auto}
.partnership-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:16px;margin:16px 0}
.partnership-card {min-width:0;overflow-wrap:anywhere}
.partnership-card .toolbar,.partnership-actions {display:flex;gap:8px;flex-wrap:wrap}
.partnership-draft-form textarea {min-height:96px}
.procurement-list {
  margin: 16px 0;
}
.procurement-list article {
  min-width: 0;
  overflow-wrap: anywhere;
}
.procurement-list h3 {
  margin: 6px 0 12px;
}
.procurement-list p {
  margin: 8px 0;
  line-height: 1.5;
}
.procurement-list .btn {
  margin-top: 8px;
}
#socialPeriod {
  margin-bottom: 14px;
  flex-wrap: wrap;
}
body .sidebar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 8px;
  margin: 0;
  border: 0;
}
.brand b {
  font:
    600 18px/24px 'Afacad Flux',
    sans-serif;
  letter-spacing: normal;
}
.brand-symbol {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  border-radius: 12px;
}
.mobile-role {
  display: none;
}
body #sideNav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}
body #sideNav .kp-nav-item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  font:
    500 14px/20px 'Instrument Sans',
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
body #sideNav .kp-nav-item:hover {
  background: #f3f4eb;
}
body #sideNav .kp-nav-item.is-active {
  background: #275216;
  color: white;
}
body .sidebar-foot {
  margin: auto 0 0;
  padding: 16px;
  background: linear-gradient(135deg, #275216, #3e6b2c);
  border: none;
  color: white;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font:
    400 12px/18px 'Instrument Sans',
    sans-serif;
}
.sidebar-foot .side-spark {
  background: white;
  color: #275216;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
}
body .sidebar-foot b {
  color: white;
  font-size: 15px;
  line-height: 22px;
}
.sidebar-foot p {
  color: #d0e7c1;
  margin: 0;
}
.sidebar-foot button,
.all-events {
  border: 0;
  border-radius: 999px;
  font:
    500 12px/16px 'Instrument Sans',
    sans-serif;
  padding: 8px 16px;
  cursor: pointer;
}
.sidebar-foot button {
  background: white;
  color: #275216;
  margin-top: 12px;
}
body .workspace {
  min-width: 0;
  flex: 1;
  margin: 0;
  background: var(--canvas);
}
body .topbar {
  box-sizing: border-box;
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  height: auto;
  min-height: 73px;
  padding: 16px 24px;
  color: var(--ink);
  background: white;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  z-index: 3;
}
.top-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}
.top-select,
.global-search > label,
.bell-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3f4eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  gap: 8px;
  color: var(--ink);
  min-height: 36px;
}
.top-select select {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.date-select,
.bell-button {
  background: white;
}
.global-search {
  position: relative;
  width: 288px;
  max-width: 100%;
}
.global-search > label {
  width: 100%;
  justify-content: flex-start;
}
.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}
.global-search label:focus-within,
.top-select:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
#allMatches {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  max-height: 320px;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px #191c171b;
  padding: 5px;
}
#allMatches[hidden] {
  display: none;
}
#allMatches button {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  background: white;
  border: 0;
  border-radius: 6px;
  padding: 8px;
}
#allMatches button:hover,
#allMatches button:focus {
  background: #f3f4eb;
}
#allMatches small {
  color: var(--muted);
}
.bell-button,
.user-avatar {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
}
.bell-button {
  padding: 0;
  position: relative;
}
.bell-button i {
  position: absolute;
  right: 8px;
  top: 7px;
  background: #15803d;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.user-avatar {
  border-radius: 100%;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 500;
}
body #main {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  min-width: 0;
}
body #mobileNav {
  display: none !important;
}
body .kp-dashboard,
body .kp-dashboard > * {
  box-sizing: border-box;
}
body .kp-dashboard {
  display: grid;
  gap: 16px;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
body .kp-kpis,
body .kp-analytics,
body .kp-lower {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
}
body .kp-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body .kp-analytics,
body .kp-lower {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
body .kp-line-panel {
  grid-column: span 8;
}
body .kp-region-panel,
body .kp-lower > .kp-card {
  grid-column: span 4;
}
body .kp-dashboard .kp-card {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px #191c170d;
  text-align: left;
  color: var(--ink);
}
body .kp-dashboard .kp-kpi {
  min-height: 152px;
  cursor: pointer;
}
body .kp-dashboard .kp-kpi:hover {
  background: #f9faf6;
  border-color: #829776;
}
.metric-top {
  display: grid;
  gap: 4px;
}
.metric-top strong {
  font:
    600 15px/22px 'Instrument Sans',
    sans-serif;
}
.metric-top small,
.kp-card header p,
.recent-activity time {
  color: var(--muted);
  font:
    400 12px/18px 'Instrument Sans',
    sans-serif;
}
.metric-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}
.metric-bottom > b {
  font:
    700 36px/42px 'Afacad Flux',
    sans-serif;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.metric-bottom > small,
.live-label {
  border-radius: 999px;
  padding: 4px 8px;
  background: #dcfce7;
  color: #14532d;
  font:
    500 12px/16px 'Instrument Sans',
    sans-serif;
}
[data-drill='late'] .metric-bottom > small,
[data-drill='stock'] .metric-bottom > small {
  background: #fef3c7;
  color: #78350f;
}
body .kp-analytics > .kp-card {
  min-height: 336px;
}
body .kp-lower > .kp-card {
  min-height: 300px;
}
.kp-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
body .kp-card header h2 {
  font:
    600 18px/24px 'Afacad Flux',
    sans-serif;
  margin: 0;
  letter-spacing: 0;
}
body .kp-card header p {
  margin: 4px 0 0;
}
.compact {
  padding: 4px 12px;
  min-height: 26px;
  gap: 4px;
}
.compact .ms {
  font-size: 15px;
}
.order-chart {
  width: 100%;
  height: 224px;
  display: block;
}
.order-chart text,
.channel-chart svg text {
  font:
    500 11px/14px 'Instrument Sans',
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.region-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
}
.region-map {
  width: 100%;
  height: 128px;
}
.region-rows,
.channel-key {
  display: grid;
  gap: 8px;
}
.region-rows > div > div,
.channel-key button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 12px;
  line-height: 18px;
}
.region-rows i {
  display: block;
  margin-top: 4px;
  background: #edefe6;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.region-rows i b {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.channel-chart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.channel-chart svg {
  width: min(46%, 144px);
  height: auto;
}
.channel-key {
  flex: 1;
  min-width: 0;
}
.channel-key button {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.channel-key i {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  flex: none;
}
.channel-key b {
  margin-left: auto;
  font-weight: 500;
}
.stage-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 4px;
}
.stage-col {
  padding: 0;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--ink);
}
.stage-col i {
  width: 10px;
  border-radius: 999px;
}
.stage-col span {
  padding: 4px;
  background: #edefe6;
  border-radius: 999px;
  font-size: 11px;
}
.stage-col small {
  font-size: 11px;
  color: var(--muted);
}
.recent-activity {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-activity li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.recent-activity li > div {
  min-width: 0;
}
.recent-activity b {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.recent-activity time {
  display: block;
}
.activity-symbol {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d0e7c1;
  color: var(--green);
}
.recent-activity li:nth-child(2) .activity-symbol {
  background: #dcfce7;
}
.recent-activity li:nth-child(3) .activity-symbol {
  background: #fef3c7;
  color: #78350f;
}
.all-events {
  width: 100%;
  color: white;
  background: #275216;
}
.live-label {
  background: #d0e7c1;
  white-space: nowrap;
}
.demo-guide {
  padding-left: 20px;
  line-height: 1.7;
}
.inbox-item {
  justify-content: flex-start;
}
@media (max-width: 1279px) {
  body .kp-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1023px) {
  body .app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  body .sidebar {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    gap: 16px;
    padding: 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  body #sideNav {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  body .sidebar-foot {
    display: none;
  }
  body .sidebar .brand {
    width: 100%;
  }
  .mobile-role {
    display: inline-block;
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 10px;
    background: #edefe6;
    font-size: 11px;
  }
  body .kp-analytics,
  body .kp-lower {
    grid-template-columns: minmax(0, 1fr);
  }
  body .kp-analytics > .kp-card,
  body .kp-lower > .kp-card {
    grid-column: auto;
  }
}
@media (max-width: 639px) {
  body .kp-kpis {
    grid-template-columns: minmax(0, 1fr);
  }
  .top-tools {
    width: 100%;
  }
  .global-search {
    width: 256px;
    max-width: 100%;
  }
  .region-grid {
    grid-template-columns: 1fr;
  }
  .region-map {
    max-width: 200px;
    justify-self: center;
  }
  body #main {
    padding: 24px;
  }
  .kp-card header {
    flex-wrap: wrap;
  }
  body .sidebar {
    overflow: hidden;
  }
  .board {
    overscroll-behavior-inline: contain;
  }
}
@media (max-width: 365px) {
  .channel-chart {
    flex-wrap: wrap;
  }
  .channel-key {
    min-width: 120px;
  }
}
@media (max-width: 639px) {
  [data-kp-page='Order'] #main .table-wrap,
  #main .leave-board .table-wrap {
    overflow: visible;
  }
  [data-kp-page='Order'] #main .table,
  #main .leave-board .table {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
  }
  [data-kp-page='Order'] #main .table thead,
  #main .leave-board .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  [data-kp-page='Order'] #main .table tbody,
  #main .leave-board .table tbody {
    display: grid;
    gap: 12px;
  }
  [data-kp-page='Order'] #main .table tbody tr,
  #main .leave-board .table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
  }
  [data-kp-page='Order'] #main .table td,
  #main .leave-board .table td {
    display: block;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  [data-kp-page='Order'] #main .table td[data-label]::before,
  #main .leave-board td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font:
      500 11px/15px 'Instrument Sans',
      sans-serif;
  }
  .leave-board td:last-child,
  [data-kp-page='Order'] #main .table td[colspan] {
    grid-column: 1/-1;
  }
}
