/* ==========================================================================
   PINASTHIKA RADAR #1 — DASHBOARD PENJURIAN STYLESHEET
   Inspired by the PinHome pastel-teal-white UI aesthetic
   ========================================================================== */

:root {
  --bg-canvas: #000000;
  --teal-primary: #0a0a0a;
  --teal-dark: #000000;
  --teal-soft: #1c1c1c;
  --teal-mint-bg: #e8f6ee;
  --cyan-bar: #fab415;
  --cyan-bar-hover: #e0991c;
  --yellow-accent: #fab415;
  --yellow-accent-hover: #e0991c;
  --yellow-soft-bg: #fff5db;
  --yellow-text: #9a6700;
  --success-text: #197a4b;
  --pink-pastel: #2d2d2d;
  --navy-ink: #1a1a1a;
  --slate-muted: #666666;
  --border-subtle: #e6e6e6;
  --surface-white: #ffffff;
  --surface-soft: #f8f8f8;
  --danger: #e14d4d;
  --radius-shell: 28px;
  --radius-panel: 24px;
  --radius-card: 18px;
  --shadow-shell: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-tooltip: 0 10px 28px rgba(0, 0, 0, 0.12);
  --transition-smooth: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--navy-ink);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

[hidden] {
  display: none !important;
}

/* Decorative Background Waves */
.bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-wave {
  position: absolute;
  width: 520px;
  height: 520px;
  opacity: 0.7;
}

.bg-wave-left {
  bottom: -120px;
  left: -140px;
}

.bg-wave-right {
  top: -100px;
  right: -120px;
}

/* ==========================================================================
   BUTTONS & SHARED UI PRIMITIVES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-smooth), background-color var(--transition-smooth),
    box-shadow var(--transition-smooth), color var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-teal {
  background-color: var(--yellow-accent);
  color: #111111;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(250, 180, 21, 0.25);
}

.btn-teal:hover {
  background-color: var(--yellow-accent-hover);
  transform: translateY(-1px);
}

.btn-yellow {
  background-color: var(--yellow-accent);
  color: #111111;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(250, 180, 21, 0.25);
}

.btn-yellow:hover {
  background-color: var(--yellow-accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: var(--surface-white);
  color: var(--navy-ink);
  border: 1.5px solid #dce6ec;
}

.btn-outline:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  background-color: var(--surface-soft);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #b87a00;
  cursor: pointer;
  transition: gap 0.2s ease, color 0.2s ease;
}

.btn-link svg {
  width: 15px;
  height: 15px;
}

.btn-link:hover {
  gap: 7px;
}

.btn-link-accent {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--teal-primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-icon-ghost {
  background: none;
  border: none;
  color: var(--slate-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-icon-ghost:hover {
  background-color: var(--border-subtle);
  color: var(--navy-ink);
}

.btn-icon-ghost svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   VIEW 1: LOGIN PAGE (Format Kurasi Radar 2)
   ========================================================================== */

.login-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-shell {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: var(--radius-shell);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 32px 36px 40px;
  border: 6px solid rgba(250, 180, 21, 0.22);
}

.login-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 8px 14px;
  height: 54px;
}

.logo-badge-light {
  background: #f8f8f8;
  border: 1px solid #e6e6e6;
}

.logo-badge-teal {
  background: #f8f8f8;
  border: 1px solid #e6e6e6;
  height: 54px;
  padding: 6px 16px;
  overflow: hidden;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-badge-teal .brand-logo-img {
  height: 52px;
  transform: scale(1.25);
}

.login-body {
  text-align: center;
}

.login-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff5db;
  color: #9a6700;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fab415;
  animation: pulseDot 2s infinite;
}

.login-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 0.9rem;
  color: #666666;
  max-width: 390px;
  margin: 0 auto 28px;
}

.login-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 7px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #777777;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 13px 42px 13px 42px;
  border: 1.5px solid #e2e2e2;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.94rem;
  color: #1a1a1a;
  background: #f8f8f8;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.input-with-icon input:focus {
  outline: none;
  border-color: #fab415;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(250, 180, 21, 0.18);
}

.input-with-icon .btn-icon-ghost {
  position: absolute;
  right: 8px;
}

.form-error {
  color: #d93838;
  font-size: 0.84rem;
  font-weight: 600;
  background: #fff1f1;
  padding: 10px 14px;
  border-radius: 10px;
}

.btn-login {
  width: 100%;
  padding: 14px 24px;
  font-size: 0.96rem;
  margin-top: 4px;
}

.login-demo-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #666666;
  margin-top: 2px;
}

.login-demo-hint .btn-link-accent {
  color: #b87a00;
}

/* ==========================================================================
   VIEW 2: APP SHELL (Reference Teal Frame + White Content Panel)
   ========================================================================== */

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  background: var(--teal-primary);
  border-radius: 0;
  padding: 12px 12px 12px 0;
  display: flex;
}

/* LEFT SIDEBAR */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 0 18px 18px;
  color: #ffffff;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 18px;
  margin-bottom: 22px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sidebar-logo-wrap {
  width: 100%;
  height: 52px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.sidebar-logo-img {
  width: 145px;
  height: 145px;
  object-fit: contain;
  transform: scale(1);
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.btn-close-sidebar {
  display: none;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-close-sidebar svg {
  width: 18px;
  height: 18px;
}

/* Sidebar Navigation with Reference Inverted-Corner Active Tab */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: 16px 0 0 16px;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.2s ease;
}

.nav-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-item .nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-item .nav-icon svg {
  width: 19px;
  height: 19px;
}

.nav-item.active {
  background: var(--surface-white);
  color: var(--navy-ink);
  font-weight: 700;
}

.nav-item.active .nav-icon {
  color: var(--yellow-accent);
}

/* Smooth inverted corner cutouts on desktop */
@media (min-width: 961px) {
  .nav-item.active::before,
  .nav-item.active::after {
    content: "";
    position: absolute;
    right: 0;
    width: 18px;
    height: 18px;
    pointer-events: none;
  }

  .nav-item.active::before {
    top: -18px;
    background: radial-gradient(circle at 0 0, transparent 18px, var(--surface-white) 18.5px);
  }

  .nav-item.active::after {
    bottom: -18px;
    background: radial-gradient(circle at 0 100%, transparent 18px, var(--surface-white) 18.5px);
  }
}

.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  margin: 10px 18px 10px 6px;
}

/* Sidebar Bottom Card */
.sidebar-card {
  margin: 18px 16px 0 0;
  background: var(--teal-soft);
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  color: #ffffff;
}

.sidebar-card-art {
  width: 100%;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.sidebar-card-art svg {
  width: 108px;
  height: 64px;
}

.sidebar-card-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.sidebar-card-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* RIGHT WHITE CONTENT PANEL */
.main-panel {
  flex: 1;
  min-width: 0;
  background: var(--surface-white);
  border-radius: var(--radius-panel);
  padding: 24px 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 420px;
}

.btn-menu-mobile {
  display: none;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  color: var(--navy-ink);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-menu-mobile svg {
  width: 20px;
  height: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--slate-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--surface-soft);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--navy-ink);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-box input:focus {
  outline: none;
  background: var(--surface-white);
  border-color: var(--teal-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-p3i-mini {
  height: 30px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.topbar-p3i-mini img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-ink);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fab415;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-notif {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  color: var(--navy-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-notif:hover {
  background: var(--surface-soft);
}

.btn-notif svg {
  width: 18px;
  height: 18px;
}

.notif-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f06548;
  border: 1.5px solid #ffffff;
}

/* ==========================================================================
   PAGE SECTIONS & HEADERS
   ========================================================================== */

.page-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.welcome-eyebrow {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-muted);
  margin-bottom: 2px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ==========================================================================
   KPI STRIP (Total: 50, Sudah Dinilai: 15, Belum Dinilai: 35)
   ========================================================================== */

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

.kpi-card {
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.kpi-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-muted);
  display: block;
  margin-bottom: 6px;
}

.kpi-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-ink);
  line-height: 1;
}

.text-teal {
  color: var(--success-text);
}

.text-amber {
  color: #d99b00;
}

.kpi-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.kpi-badge-neutral {
  background: #ececec;
  color: var(--navy-ink);
}

.kpi-badge-teal {
  background: var(--teal-mint-bg);
  color: var(--success-text);
}

.kpi-badge-yellow {
  background: var(--yellow-soft-bg);
  color: var(--yellow-text);
}

/* ==========================================================================
   ANIMATED BAR CHART (Matching Reference Chart)
   ========================================================================== */

.chart-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 18px 22px 20px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.chart-period {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.muted-label {
  font-size: 0.85rem;
  color: var(--slate-muted);
  font-weight: 500;
}

.period-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-ink);
  background: var(--surface-soft);
  padding: 6px 12px;
  border-radius: 10px;
}

.period-pill svg {
  width: 15px;
  height: 15px;
  color: var(--teal-primary);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-yellow {
  background: var(--yellow-accent);
}

.dot-cyan {
  background: var(--cyan-bar);
}

.chart-stage {
  display: flex;
  align-items: stretch;
  gap: 14px;
  height: 210px;
  position: relative;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--slate-muted);
  padding-bottom: 28px;
  text-align: right;
  min-width: 24px;
}

.chart-bars-area {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: end;
  padding-bottom: 28px;
  position: relative;
  background-image: linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 100% 25%;
}

.chart-bar-col {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
}

.chart-bar {
  width: 100%;
  max-width: 34px;
  background: var(--cyan-bar);
  border-radius: 12px 12px 6px 6px;
  transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease,
    transform 0.25s ease;
  position: relative;
}

.chart-bar-col:hover .chart-bar {
  background: var(--cyan-bar-hover);
  transform: translateY(-2px);
}

.chart-bar-col.is-active .chart-bar {
  background: var(--yellow-accent);
}

.chart-bar-label {
  position: absolute;
  bottom: -24px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--slate-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.chart-bar-col.is-active .chart-bar-label {
  color: var(--navy-ink);
  font-weight: 800;
}

/* Floating Tooltip Card (matching "$1894.83 Total per day") */
.chart-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--surface-white);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: var(--shadow-tooltip);
  border: 1px solid var(--border-subtle);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 5;
}

.chart-bar-col.is-active .chart-tooltip,
.chart-bar-col:hover .chart-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.chart-tooltip strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--teal-primary);
}

.chart-tooltip span {
  font-size: 0.7rem;
  color: var(--slate-muted);
  font-weight: 600;
}

/* ==========================================================================
   BOTTOM DASHBOARD GRID (Company Queue + Pastel Promo Widget)
   ========================================================================== */

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.list-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 18px 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-ink);
}

.company-rows {
  display: flex;
  flex-direction: column;
}

.company-row {
  display: grid;
  grid-template-columns: 42px 1.6fr 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.company-row:last-child {
  border-bottom: none;
}

.company-row:hover {
  background: var(--surface-soft);
  transform: translateX(3px);
}

.row-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #111111;
  background: var(--cyan-bar);
  flex-shrink: 0;
}

.row-info {
  min-width: 0;
}

.row-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-sub {
  font-size: 0.78rem;
  color: var(--slate-muted);
}

.row-category {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-scored {
  background: var(--teal-mint-bg);
  color: var(--success-text);
}

.status-pending {
  background: var(--yellow-soft-bg);
  color: var(--yellow-text);
}

.row-score {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy-ink);
  min-width: 52px;
  text-align: right;
}

/* Promo Card */
.promo-widget {
  position: relative;
  background: #fff5db;
  border: 1px solid #f4dfb0;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 230px;
}

.promo-widget-content {
  position: relative;
  z-index: 2;
  max-width: 220px;
}

.promo-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #9a6700;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.promo-widget h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-ink);
  margin-bottom: 6px;
}

.promo-widget p {
  font-size: 0.84rem;
  color: #4a4a4a;
  margin-bottom: 16px;
}

.promo-widget-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 170px;
  height: 132px;
  pointer-events: none;
  z-index: 1;
}

.promo-widget-art svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   GUIDELINES & RUBRIC GRID (Format Kurasi Radar 1)
   ========================================================================== */

.guidelines-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

.guide-card {
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}

.guide-title {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--navy-ink);
  margin-bottom: 14px;
}

.stages-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stage-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-white);
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.stage-pill {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--teal-mint-bg);
  color: var(--success-text);
  margin-top: 2px;
}

.stage-pill-yellow {
  background: var(--yellow-accent);
  color: #111111;
}

.stage-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-ink);
  margin-bottom: 3px;
}

.stage-item p {
  font-size: 0.81rem;
  color: var(--slate-muted);
  line-height: 1.45;
}

.rubric-table-wrap {
  background: var(--surface-white);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.rubric-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.rubric-table th {
  background: #f5f5f5;
  color: var(--navy-ink);
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.rubric-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--navy-ink);
}

.rubric-table tr:last-child td {
  border-bottom: none;
}

.score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid #d9d9d9;
  font-weight: 800;
  color: var(--navy-ink);
}

.score-chip-top {
  background: var(--yellow-accent);
  border-color: var(--yellow-accent);
  color: #111111;
}

/* ==========================================================================
   SUB-PAGE B: PENILAIAN KURATOR (Format Kurasi Radar)
   ========================================================================== */

.company-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-ink);
  background: var(--surface-soft);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.company-identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
  border: 1.5px solid #f4e1b0;
  border-radius: 20px;
  padding: 18px 22px;
}

.company-id-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.company-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--yellow-accent);
  color: #111111;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meta-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.company-name-lg {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--navy-ink);
  margin: 2px 0 6px;
}

.meta-line-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a6700;
  background: #fff5db;
  padding: 4px 12px;
  border-radius: 999px;
}

.company-score-preview {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 12px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.score-preview-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-muted);
  text-transform: uppercase;
}

.score-preview-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #d99300;
}

.score-preview-max {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-muted);
}

.submission-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-card {
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px 20px;
}

.qa-card h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy-ink);
  margin-bottom: 8px;
}

.qa-subnote {
  font-size: 0.82rem;
  color: var(--slate-muted);
  margin-bottom: 12px;
}

.qa-answer {
  font-size: 0.9rem;
  color: #333333;
  line-height: 1.6;
  background: var(--surface-white);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.btn-doc-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #2d2d2d;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn-doc-link svg {
  width: 15px;
  height: 15px;
}

.btn-doc-link:hover {
  background: var(--yellow-accent);
  color: var(--navy-ink);
  transform: translateY(-1px);
}

.clients-table-wrap {
  overflow-x: auto;
  background: var(--surface-white);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.clients-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 540px;
}

.clients-table th {
  background: #1a1a1a;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
}

.clients-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--navy-ink);
}

.clients-table tr:last-child td {
  border-bottom: none;
}

/* Scoring Panel */
.scoring-panel {
  background: var(--surface-white);
  border: 2px solid #f0e4c3;
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scoring-criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.criterion-box {
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}

.criterion-header {
  background: var(--yellow-accent);
  color: #111111;
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.criterion-title {
  font-size: 0.92rem;
  font-weight: 800;
}

.criterion-weight {
  font-size: 0.78rem;
  font-weight: 700;
}

.score-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.score-btn {
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #dcdcdc;
  background: var(--surface-white);
  color: var(--navy-ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-btn:hover {
  border-color: var(--yellow-accent);
  color: #111111;
  transform: translateY(-2px);
}

.score-btn.selected {
  background: var(--yellow-accent);
  border-color: var(--yellow-accent);
  color: #111111;
  box-shadow: 0 6px 14px rgba(250, 180, 21, 0.32);
  transform: scale(1.04);
}

.criterion-hint {
  margin-top: 9px;
  font-size: 0.74rem;
  color: var(--slate-muted);
  min-height: 2.2em;
}

.curator-notes-wrap label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-ink);
  margin-bottom: 8px;
}

.curator-notes-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #dce6ec;
  background: var(--surface-soft);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--navy-ink);
  resize: vertical;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.curator-notes-wrap textarea:focus {
  outline: none;
  border-color: var(--teal-primary);
  background: var(--surface-white);
}

.scoring-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FILTER TABS (Daftar Perusahaan)
   ========================================================================== */

.filter-tabs {
  display: inline-flex;
  background: var(--surface-soft);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.filter-tab {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-tab.active {
  background: var(--yellow-accent);
  color: #111111;
  font-weight: 700;
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--shadow-shell);
  animation: popIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.modal-body {
  font-size: 0.9rem;
  color: #333333;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-preview-box {
  background: var(--surface-soft);
  border: 1px dashed #d4d4d4;
  border-radius: 14px;
  padding: 16px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  background: #242424;
  color: #ffffff;
  border: 1px solid rgba(250, 180, 21, 0.4);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: fadeSlideUp 0.28s ease;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-pop-in {
  animation: popIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1120px) {
  .dashboard-bottom-grid,
  .guidelines-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .app-shell {
    margin: 0;
    border-radius: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--surface-white);
  }

  .main-panel {
    border-radius: 0;
    padding: 18px 18px 28px;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 30, 52, 0.45);
    z-index: 40;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 265px;
    background: var(--teal-primary);
    z-index: 50;
    padding: 22px 16px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .btn-close-sidebar,
  .btn-menu-mobile {
    display: inline-flex;
  }

  .nav-item {
    border-radius: 14px;
  }

  .sidebar-card {
    margin-right: 0;
  }

  .scoring-criteria-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .login-shell {
    padding: 24px 20px 30px;
  }

  .kpi-strip {
    grid-template-columns: 1fr;
  }

  .user-name,
  .topbar-p3i-mini {
    display: none;
  }

  .chart-bars-area {
    gap: 8px;
  }

  .company-row {
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
  }

  .row-category,
  .row-score {
    display: none;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .scoring-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
