/* ==========================================================================
   KALKULATOR BTU & PK AC - MODERN MOBILE APP STYLES
   Designed for Mobile-First & Desktop Mockup Preview
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-900: #0c4a6e;

  --accent-cyan: #06b6d4;
  --accent-teal: #14b8a6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --bg-app: #f4f7fb;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.1), 0 4px 10px -4px rgb(0 0 0 / 0.05);
  --shadow-glow: 0 10px 30px -5px rgba(2, 132, 199, 0.35);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background: #0b1329;
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.1) 0px, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  overflow-x: hidden;
}

/* ==========================================================================
   Desktop Toolbar (Preview Mode Controls)
   ========================================================================== */
.desktop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin: 16px auto 12px auto;
  color: #fff;
  font-size: 0.82rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 100;
  width: max-content;
}

.toolbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-300);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.view-toggles {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px;
  border-radius: var(--radius-full);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--slate-300);
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn.btn-wifi-pill {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.view-btn.btn-wifi-pill:hover {
  background: rgba(34, 197, 94, 0.35);
  color: #ffffff;
}

/* Wi-Fi Share Modal */
.wifi-sheet {
  max-width: 460px;
}

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

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.qr-img {
  width: 190px;
  height: 190px;
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--slate-200);
}

.qr-tip {
  font-size: 0.76rem;
  color: var(--slate-600);
  margin-top: 8px;
  font-weight: 600;
}

.wifi-url-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 10px;
  text-align: left;
}

.wifi-url-label {
  display: block;
  font-size: 0.72rem;
  color: var(--slate-500);
  margin-bottom: 6px;
}

.wifi-link-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.wifi-link-display code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-700);
  word-break: break-all;
}

.btn-copy-url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-600);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.btn-copy-url:hover {
  background: var(--primary-700);
}

.wifi-info-card {
  margin-top: 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 0.76rem;
  color: #0369a1;
}

.wifi-info-card p {
  margin: 0;
  line-height: 1.35;
}

.view-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Viewport Shell (Phone Frame vs Full Responsive)
   ========================================================================== */
.app-viewport {
  width: 100%;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Desktop Phone Mockup View */
.app-viewport.phone-frame {
  max-width: 440px;
  height: 840px;
  max-height: calc(100vh - 70px);
  margin: 0 auto 30px auto;
  border-radius: 46px;
  border: 8px solid #2a3449;
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 25px 60px -15px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(2, 132, 199, 0.2);
  background: var(--bg-app);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-viewport.phone-frame .app-screen {
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.app-viewport.phone-frame .app-header {
  flex-shrink: 0;
}

.app-viewport.phone-frame .app-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 20px 16px;
}

.app-viewport.phone-frame .app-nav {
  flex-shrink: 0;
  position: relative;
  z-index: 50;
  border-bottom-left-radius: 38px;
  border-bottom-right-radius: 38px;
}

.phone-notch-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 4px;
  background: #0f172a;
}

.notch-speaker {
  width: 50px;
  height: 4px;
  background: #334155;
  border-radius: var(--radius-full);
}

.notch-camera {
  width: 10px;
  height: 10px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 50%;
}

/* Full Width View (Desktop or Tablet) */
.app-viewport.full-frame {
  max-width: 820px;
  margin: 0 auto 30px auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  background: var(--bg-app);
}

.app-viewport.full-frame .phone-notch-bar {
  display: none;
}

/* ==========================================================================
   Mobile Screen & Inner Container
   ========================================================================== */
.app-screen {
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  position: relative;
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.app-header {
  background: linear-gradient(145deg, #0f172a 0%, #0369a1 100%);
  color: #ffffff;
  padding: 18px 20px 22px 20px;
  position: relative;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.3);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
  width: 100%;
}

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

.header-guide-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.app-brand-logo {
  height: 46px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.badge-ac {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.header-titles h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #ffffff;
}

.subtitle {
  font-size: 0.82rem;
  color: #bae6fd;
  margin-top: 4px;
}

/* Project Details Accordion */
.project-info-collapse {
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.82rem;
}

.project-info-collapse summary {
  padding: 9px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-weight: 600;
  color: #e0f2fe;
  user-select: none;
}

.project-info-collapse summary::-webkit-details-marker {
  display: none;
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.project-info-collapse .chevron {
  transition: transform var(--transition-normal);
}

.project-info-collapse[open] .chevron {
  transform: rotate(180deg);
}

.project-form-grid {
  padding: 10px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-group-sm label {
  display: block;
  font-size: 0.72rem;
  color: var(--slate-300);
  margin-bottom: 3px;
}

.form-group-sm input {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.8rem;
  color: var(--slate-900);
  font-family: inherit;
  outline: none;
}

.form-group-sm input:focus {
  border-color: var(--accent-cyan);
  background: #ffffff;
}

/* ==========================================================================
   App Body & Card Containers
   ========================================================================== */
.app-body {
  padding: 16px 16px 90px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-purple { background: #f3e8ff; color: #7c3aed; }

.card-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
}

.card-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Inputs, Steppers & Form Controls
   ========================================================================== */
.inputs-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.input-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.input-top label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-800);
}

.unit-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-500);
  background: var(--slate-200);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.stepper-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-step {
  width: 46px;
  height: 44px;
  background: var(--slate-100);
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--slate-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: all var(--transition-fast);
}

.btn-step:active {
  background: var(--primary-100);
  color: var(--primary-700);
  transform: scale(0.94);
}

.stepper-wrap input {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--slate-900);
  outline: none;
  padding: 6px;
}

/* Ceiling Alert Warning */
.ceiling-alert {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.ceiling-alert.hidden {
  display: none;
}

/* Room Metric Live Pill */
.room-stats-pill {
  margin-top: 14px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-700);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-900);
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: var(--primary-200);
}

/* ==========================================================================
   Factor Radio Cards (600, 800, 1000)
   ========================================================================== */
.factor-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.factor-card {
  position: relative;
  display: block;
  background: var(--slate-50);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.factor-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.factor-card:hover {
  border-color: var(--primary-200);
  background: #ffffff;
}

.factor-card.active {
  background: #ffffff;
  border-color: var(--primary-600);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

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

.factor-btu {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-700);
}

.factor-btu small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-500);
}

.factor-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.tag-green { background: #dcfce7; color: #15803d; }
.tag-blue { background: #e0f2fe; color: #0369a1; }
.tag-orange { background: #ffedd5; color: #c2410c; }
.tag-purple { background: #f3e8ff; color: #7e22ce; }
.tag-amber { background: #fef3c7; color: #b45309; }

.factor-name {
  display: block;
  font-size: 0.88rem;
  color: var(--slate-900);
  margin-bottom: 2px;
}

.factor-text {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   Internal Load (Humans & Electronics)
   ========================================================================== */
.mb-3 {
  margin-bottom: 12px;
}

.sub-hint {
  font-size: 0.72rem;
  color: var(--slate-500);
  font-weight: 400;
  margin-top: 1px;
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.preset-rooms-wrap {
  margin-bottom: 14px;
  background: var(--slate-50);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.preset-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-700);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.chip-room {
  background: #ffffff;
  border-color: var(--primary-200);
  color: var(--slate-700);
  font-size: 0.74rem;
}

.chip-room:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-700);
}

.chip-room.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #ffffff;
}

.chip {
  background: #ffffff;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.chip:hover, .chip:active {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-700);
}

/* ==========================================================================
   SECTION 4: RESULT HERO CARD
   ========================================================================== */
.result-hero-card {
  background: linear-gradient(160deg, #091a32 0%, #034870 50%, #0284c7 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  box-shadow: 0 15px 35px -5px rgba(2, 132, 199, 0.4), 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.result-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

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

.result-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #bae6fd;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

/* Total BTU Display */
.btu-display {
  text-align: center;
  padding: 10px 0 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.btu-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.btu-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btu-unit {
  font-size: 1rem;
  font-weight: 700;
  color: #7dd3fc;
}

.pk-estimate {
  font-size: 0.88rem;
  color: #e0f2fe;
  margin-top: 4px;
}

.pk-estimate strong {
  font-family: var(--font-mono);
  color: #ffffff;
  font-size: 1rem;
}

/* Recommendation Banner */
.rec-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-top: 16px;
}

.rec-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: var(--primary-700);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.rec-label {
  font-size: 0.7rem;
  color: #bae6fd;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.rec-pk {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.rec-desc {
  font-size: 0.8rem;
  color: #e0f2fe;
}

/* Multi Unit Suggestion Card */
.multi-unit-card {
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px;
}

.multi-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #bae6fd;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.multi-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.multi-opt-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.multi-opt-pill strong {
  color: #ffffff;
}

.multi-opt-pill span {
  font-family: var(--font-mono);
  color: #7dd3fc;
  font-size: 0.72rem;
}

/* Breakdown Box */
.breakdown-box {
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: #bae6fd;
  margin-bottom: 8px;
}

.stacked-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
  margin-bottom: 12px;
}

.bar-seg {
  height: 100%;
  transition: width 0.4s ease-out;
}

.bar-room { background: #38bdf8; }
.bar-human { background: #a855f7; }
.bar-elec { background: #fbbf24; }

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bd-item {
  display: flex;
  align-items: center;
  font-size: 0.76rem;
}

.bd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.bg-room { background: #38bdf8; }
.bg-human { background: #a855f7; }
.bg-elec { background: #fbbf24; }

.bd-name {
  color: #e2e8f0;
  flex: 1;
}

.bd-val {
  font-family: var(--font-mono);
  color: #ffffff;
  font-weight: 700;
}

/* Action Grid (WhatsApp & Print) */
.action-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-wa {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.action-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.btn-secondary-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 10px 12px;
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-product-action {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  font-size: 0.82rem;
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-product-action:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
}

/* Technical Reference Footnote (Tanpa blok background hitam, tulisan putih bersih & jelas) */
.footnote {
  font-size: 0.74rem;
  color: #ffffff; /* Tulisan putih bersih & sangat jelas di atas kartu biru */
  margin-top: 14px;
  line-height: 1.45;
  text-align: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footnote em {
  color: #ffffff;
  font-style: normal;
  font-weight: 600;
}

/* Web-Only Watermark & Copyright Footer (Tanpa blok background hitam, tulisan tajam & terbaca jelas) */
.app-web-footer {
  margin-top: auto; /* Mendorong watermark mentok di paling bawah container */
  padding: 24px 16px 12px 16px;
  text-align: center;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(203, 213, 225, 0.75) !important;
  box-shadow: none !important;
}

.web-footer-brand {
  margin-bottom: 6px;
}

.web-footer-logo {
  height: 24px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.copyright-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: #1e293b !important; /* Warna gelap tegas & sangat jelas terbaca */
  margin: 0 0 4px 0;
  letter-spacing: 0.1px;
}

.copyright-text strong {
  color: #0f172a !important;
  font-weight: 700;
}

.member-of-text,
.member-of-white,
.member-of-modal {
  color: #334155 !important; /* Warna gelap tegas, sangat jelas dan kontras */
  font-weight: 600 !important;
}

.candi-red,
.member-red {
  color: #e11d48 !important; /* Warna Merah Khas Candi Elektronik */
  font-weight: 800 !important;
}

.copyright-sub {
  font-size: 0.72rem;
  color: #475569 !important; /* Slate-600 tegas & tajam, tidak pudar/buram */
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.1px;
}

/* ==========================================================================
   Mobile Bottom Navigation
   ========================================================================== */
.app-nav {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  padding: 8px 12px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
  z-index: 50;
}

.nav-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--slate-500);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-item.active {
  color: var(--primary-600);
}

.nav-item:hover {
  color: var(--primary-700);
}

/* ==========================================================================
   Modal / Bottom Sheet (Panduan & Standar)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop.open .modal-sheet {
  transform: translateY(0);
}

.modal-drag-handle {
  width: 44px;
  height: 5px;
  background: var(--slate-300);
  border-radius: var(--radius-full);
  margin: 10px auto 4px auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
}

.modal-close-btn {
  background: var(--slate-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-600);
  cursor: pointer;
}

.modal-content {
  padding: 16px 20px 30px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Data Tables inside Modal */
.table-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.table-responsive {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  text-align: left;
}

.data-table th {
  background: var(--slate-100);
  padding: 8px 10px;
  font-weight: 700;
  color: var(--slate-700);
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-800);
}

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

.data-table .highlight-row {
  background: var(--primary-50);
  font-weight: 600;
}

/* Formula Info Card */
.formula-info-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.formula-info-card h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.formula-info-card ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--slate-700);
}

.formula-info-card code {
  background: var(--slate-200);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 300;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Product Catalog Modal */
/* App Info & Developer Modal */
.product-sheet {
  max-width: 540px;
}

.app-info-hero {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

.app-info-logo-wrap {
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.app-info-logo {
  height: 26px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.app-info-hero h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #ffffff;
}

.app-version-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.app-info-desc {
  font-size: 0.78rem;
  color: #e0f2fe;
  line-height: 1.45;
  margin: 0;
}

.app-info-desc strong {
  color: #ffffff;
}

.info-group-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.info-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.info-group-icon {
  font-size: 1rem;
}

.info-group-header h5 {
  font-size: 0.88rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.info-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-feature-list li {
  font-size: 0.74rem;
  line-height: 1.35;
  color: #475569;
}

.info-feature-list strong {
  color: #0f172a;
  display: block;
}

.dev-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dev-spec-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.dev-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.dev-val {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.dev-sub {
  font-size: 0.66rem;
  color: #64748b;
  margin-top: 2px;
}

.info-doc-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.info-doc-card h6 {
  font-size: 0.76rem;
  font-weight: 750;
  color: #166534;
  margin: 0 0 3px 0;
}

.info-doc-card p {
  font-size: 0.72rem;
  color: #15803d;
  margin: 0;
  line-height: 1.35;
}

.modal-action-wrap {
  margin-top: 6px;
}

.btn-secondary-modal {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-md);
  width: 100%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary-modal:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   Responsive Breakpoints for Real Mobile Viewport
   ========================================================================== */
@media (max-width: 640px) {
  body {
    background: var(--bg-app);
  }

  .desktop-toolbar {
    display: none !important;
  }

  .app-viewport.phone-frame {
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .phone-notch-bar {
    display: none;
  }

  .app-screen {
    min-height: 100vh;
    overflow: visible;
  }

  /* BAR BAWAH PERMANEN DIAM DI DASAR LAYAR HP (TIDAK IKUT BERGERAK) */
  .app-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12) !important;
  }

  /* Ruang aman agar konten paling bawah dan watermark tidak tertutup bar navigasi */
  .app-body {
    padding-bottom: 96px !important;
  }
}

/* Result Main Grid (Flex on mobile, 2-column grid on print) */
.result-main-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   Print Styles (Cetak / Simpan PDF Khusus Hasil Kalkulasi Beban AC - Pas 1 Halaman)
   ========================================================================== */
.print-report-header,
.print-report-footer {
  display: none !important;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0; /* Otomatis menghilangkan header browser (jam/judul) dan footer browser (localhost:3000) */
  }

  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    box-sizing: border-box !important;
  }

  html {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #ffffff !important;
    color: #0f172a !important;
    /* Pindahkan margin A4 ke padding body agar dokumen rapi tanpa memunculkan URL / Jam browser */
    padding: 12mm 15mm !important;
    margin: 0 !important;
    font-size: 9pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* SEMBUNYIKAN SEMUA ELEMEN SCREEN: INPUT FORM, TOOLBAR, NAV, BADGE, MODAL, TOMBOL AKSI, FOOTER WEB */
  .desktop-toolbar,
  .app-header,
  .section-card,
  .preset-rooms-wrap,
  .action-grid,
  .action-dual-row,
  .btn-step,
  .preset-chips,
  .phone-notch-bar,
  .modal-backdrop,
  .app-nav,
  .app-web-footer,
  .toast,
  .result-glow,
  .live-indicator {
    display: none !important;
  }

  /* RESET FRAME HP AGAR TIDAK MEMOTONG SUDUT KANAN, KIRI, DAN ATAS */
  .app-viewport,
  .app-viewport.phone-frame,
  .app-viewport.full-frame,
  .app-screen,
  .app-body {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    border: none !important;
    border-radius: 0 !important; /* HILANGKAN BORDER-RADIUS HP (46px) YANG MEMOTONG SUDUT */
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important; /* HILANGKAN OVERFLOW HIDDEN PENYEBAB TERPOTONG */
    background: transparent !important;
    transform: none !important;
  }

  /* 1. HEADER CETAK DOKUMEN LAPORAN */
  .print-report-header {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    border-bottom: 2px solid #0284c7 !important;
    padding-top: 4px !important;
    padding-bottom: 8px !important;
    overflow: visible !important;
    page-break-inside: avoid !important;
  }

  .pr-top-bar {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 10px !important;
    width: 100% !important;
  }

  .pr-brand-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .pr-logo {
    height: 46px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 4px auto !important;
  }

  .pr-title-group {
    text-align: center !important;
  }

  .pr-title {
    font-size: 14pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
    text-align: center !important;
  }

  .pr-subtitle {
    font-size: 8.5pt !important;
    color: #64748b !important;
    margin: 2px 0 0 0 !important;
    text-align: center !important;
  }

  .pr-meta-box {
    display: none !important;
  }

  .pr-summary-card {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .pr-col {
    display: flex;
    flex-direction: column;
  }

  .pr-label {
    font-size: 6.5pt;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.3px;
    margin-bottom: 1px;
  }

  .pr-val {
    font-size: 8.5pt;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
  }

  .pr-subval {
    font-size: 7pt;
    color: #475569;
    margin-top: 1px;
  }

  /* 2. CARD HASIL KALKULASI BEBAN AC (SIDE-BY-SIDE GRID PADA PRINT) */
  .result-hero-card {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #0284c7 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    box-shadow: none !important;
    overflow: visible !important;
    page-break-inside: avoid !important;
  }

  .result-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
    margin-bottom: 8px;
  }

  .result-tag {
    color: #0284c7 !important;
    font-size: 7.5pt !important;
    font-weight: 800;
  }

  /* SIDE-BY-SIDE 2 KOLOM UNTUK MENGHEMAT 50% TINGGI KERTAS */
  .result-main-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    align-items: start !important;
  }

  .result-col-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .result-col-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .btu-display {
    border-bottom: 1px dashed #cbd5e1 !important;
    padding: 4px 0 8px 0 !important;
    text-align: center;
  }

  .btu-number {
    color: #0284c7 !important;
    font-size: 22pt !important;
    line-height: 1 !important;
    text-shadow: none !important;
  }

  .btu-unit {
    color: #0369a1 !important;
    font-size: 11pt !important;
  }

  .pk-estimate {
    color: #334155 !important;
    font-size: 9pt !important;
    margin-top: 2px;
  }

  .pk-estimate strong {
    color: #0f172a !important;
    font-size: 10pt !important;
  }

  .rec-banner {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
    color: #0c4a6e !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    margin-top: 0 !important;
    gap: 8px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .rec-icon {
    background: #0284c7 !important;
    color: #ffffff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .rec-label {
    color: #0369a1 !important;
    font-size: 7pt !important;
  }

  .rec-pk {
    color: #0c4a6e !important;
    font-size: 13.5pt !important;
    line-height: 1.2 !important;
  }

  .rec-desc {
    color: #0369a1 !important;
    font-size: 8pt !important;
    font-weight: 600;
  }

  .multi-unit-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    margin-top: 0 !important;
    padding: 6px 8px !important;
    border-radius: 6px !important;
  }

  .multi-title {
    color: #0284c7 !important;
    font-size: 7.5pt !important;
    margin-bottom: 4px;
  }

  .multi-opt-pill {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    font-size: 7pt !important;
    padding: 3px 6px !important;
    margin-bottom: 3px;
  }

  .multi-opt-pill strong {
    color: #0f172a !important;
  }

  .multi-opt-pill span {
    color: #0284c7 !important;
    font-weight: 700;
  }

  .breakdown-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    margin-top: 0 !important;
    padding: 6px 8px !important;
    border-radius: 6px !important;
  }

  .breakdown-header {
    color: #334155 !important;
    font-size: 7.5pt !important;
    margin-bottom: 4px;
  }

  .stacked-bar {
    border: 1px solid #cbd5e1;
    height: 8px !important;
    margin-bottom: 6px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .breakdown-list {
    gap: 3px;
  }

  .bd-item {
    font-size: 7.5pt !important;
  }

  .bd-dot {
    width: 6px !important;
    height: 6px !important;
    margin-right: 5px;
  }

  .bd-name {
    color: #334155 !important;
  }

  .bd-val {
    color: #0f172a !important;
  }

  .footnote {
    display: none !important;
  }

  /* 3. FOOTER CETAK & TANDA TANGAN (COMPACT & CLEAN) */
  .print-report-footer {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 18px;
    overflow: visible !important;
    page-break-inside: avoid !important;
  }

  .pr-signature-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0;
    padding-top: 4px;
  }

  .pr-sig-box {
    text-align: center;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .pr-sig-box p {
    font-size: 8pt;
    color: #475569;
    margin-bottom: 35px; /* Ruang tanda tangan yang pas */
  }

  .pr-sig-line {
    width: 100%;
    border-bottom: 1px solid #0f172a;
    margin-bottom: 4px;
  }

  .sig-name {
    font-size: 8.5pt;
    font-weight: 700;
    color: #0f172a;
  }
}

