/* ============================================================
   MAIN STYLESHEET - N-Home Smart Home Builder
   UniFi Design Center–style color pass
   ============================================================ */

/* Reset & Base */
* { box-sizing: border-box; }

@media print {
     body > * {
       display: none !important;
     }
   }

   body > .print-container,
   body > #printable-table,
   body > #rooms-print-table {
     display: block !important;
     color: #000 !important;
   }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: var(--nh-body-bg);              /* deep navy background */
  color: #e5e7eb;                   /* light neutral text */
  padding-bottom: 52px !important;
}

body, html{
  overflow: hidden;
  height: 100%;
}
/*Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #111827;
    height: 50px;
    flex: 0 0 auto;
    background: #606469;
}
/* Layout */
.page {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  min-height: 100vh;
  position: relative;
}
.print-container {
  height: 800px; 
}
.print-container {
  height: auto !important;        
  overflow: visible !important;   
  position: relative !important; 
}
/* SIDEBAR SCROLLBAR */
.sidebar {
    background: var(--nh-body-bg);              /* solid dark panel */
    margin: auto;
    background: rgba(48, 48, 48, 0.37);
    height: 100%;
    border-radius: 9px;
    overflow: hidden;
    display: block;
}

.sidebar, .main {
  scrollbar-width: thin;
  scrollbar-color: #3b4252 #1e1e1e;
}

/* Chrome / Edge / Safari */
.sidebar::-webkit-scrollbar, .main::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track, .main::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.sidebar::-webkit-scrollbar-thumb, .main::-webkit-scrollbar-thumb {
  background-color: #3b4252;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover, .main::-webkit-scrollbar-thumb:hover {
  background-color: #4c556a;
}
.main {
  padding: 24px;
  overflow-y: auto;
  width:100%;
  max-height: 100vh;
  background: var(--nh-body-bg);
}

/* Slide-Out Panel */
.slide-out {
    position: fixed;
    right: 0;
    top: 0;
    height: calc(100vh - 30px);
    width: 450px;
    background: rgb(3 7 18 / 10%);
    border-left: 1px solid #111827;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s 
ease;
    z-index: 100;
    backdrop-filter: blur(30px);
    border: 1px solid rgb(28, 30, 33);
    border-radius: 8px;
    margin: 15px 0px;
}

.slide-out.active {
  transform: translateX(0);
}

/* System Cards */
.system-card {
  background: var( --nh-tier-card-bg);
  border: 1px solid var(--nh-border-subtle);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.system-card:hover {
    border-color: var(--nh-tier-card-border-color);
    background: var(--nh-tier-card-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
}

.system-card.active {
  border-color: var(--nh-tier-card-accent);
  background: var(--nh-tier-card-bg-selected);
  box-shadow: 0 0 0 1px rgba(38, 196, 255, 0.55);
}

.system-card-title {
  font-weight: 600;
  font-size: 12px;
}

.system-card-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

/* Typography */
h1 {
  font-size: 24px;
  margin: 0 0 4px 0;
  font-weight: 700;
}

.subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 20px;
}

h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 12px 0;
  color: #26c4ff;                   /* section label accent */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

/* Sections */
.section { margin-bottom: 20px; }

/* Form Elements */
label {
  font-size: 13px;
  color: #e5e7eb;
}

label.small {
  font-size: 12px;
  color: #94a3b8;
}

select,
input[type="text"],
input[type="number"] {
  width:auto
}

select:focus,
input:focus {
  outline: none;
  border-color: #26c4ff;
  box-shadow: 0 0 0 1px rgba(38, 196, 255, 0.45);
}

/* Buttons */
button {
  border: none;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

/* Primary = UniFi cyan */
button.primary {
  background: #26c4ff;
  color: #020617;
  box-shadow: 0 8px 16px rgba(38, 196, 255, 0.35);
}

button.primary:hover {
  background: #38cfff;
  box-shadow: 0 10px 22px rgba(38, 196, 255, 0.45);
  transform: translateY(-1px);
}

/* Secondary = outlined, neutral */
button.secondary {
  background: transparent;
  border: 1px solid #1f2937;
  color: #e5e7eb;
}

button.secondary:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: #26c4ff;
}

/* Small */
button.small {
  padding: 6px 10px;
  font-size: 11px;
}
button.link.secondary.small {
    background: none;
    border: none;
    color: #0ea5e9;
    padding: 10px 0px;
}
button.link.secondary.small:hover {
    text-decoration: underline; 
}
/* Cards */
.card {
  background-color: var(--nh-panel-bg);
  border: 1px solid var(--nh-border-subtle);
  border-radius: 9px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var( --nh-shadow-soft);
}

.card h3 {
  margin-top: 0;
  color: #26c4ff;
}

/* SYSTEM TABS — Centered Pill Navigation */
.system-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 16px;
  margin-bottom: 16px;
  border-bottom: none;
}

/* Base pill */
.system-tab {
  padding: 8px 16px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid #1f2937;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

/* Hover */
.system-tab:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #e5e7eb;
}

/* ACTIVE — OUTLINE ONLY */
.system-tab.active {
  background: transparent;              /* no fill */
  border-color: #0ea5e9;                /* cyan outline */
  color: #0ea5e9;                       /* cyan text */
}

/* Disabled */
.system-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: #64748b;
  background: rgba(15, 23, 42, 0.35);
  border-color: #1e293b;
}

.system-tab:disabled:hover {
  background: rgba(15, 23, 42, 0.35);
}
/* Quote Box */
.quote-box {
  position: sticky;
  bottom: 0;
  background: rgba(2, 6, 23, 0.98);
  border-top: 2px solid #26c4ff;
  padding: 16px;
  margin-top: 24px;
  backdrop-filter: blur(16px);
}

.quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: #cbd5f5;
}

.quote-row.total {
  border-top: 1px solid #111827;
  padding-top: 8px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #26c4ff;
}

.price {
  color: #38bdf8;    /* slightly lighter cyan for numbers */
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid #111827;
    max-height: auto;
  }

  .main {
    max-height: auto;
  }

  .slide-out {
    width: 100%;
  }
}
/* ================================
   BASEKIT CARD (universal layout)
   ================================ */

.basekit-card-header {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.basekit-card-header h3 {
  margin: 0;
  font-size: 15px;
  color: #f3f4f6;
}

.basekit-item-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--nh-table-border);
    border-radius: 8px;
    overflow: hidden;
}

.basekit-item-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.basekit-item-name {
  font-size: 12px;
  font-weight: 500;
  color: #f3f4f6;
}

.basekit-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
}

.basekit-item-qty {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* slider */
.basekit-qty-range {
  flex: 1;
  accent-color: #4f46e5; /* deep indigo */
}

/* number input */
.basekit-qty-input {
  width: 60px;
  padding: 4px;
  background: #111827;
  color: #f3f4f6;
  border: 1px solid #4b5563;
  border-radius: 4px;
  font-size: 13px;
}

/* metadata / chips */
.basekit-item-meta {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}
.basekit-item-chip{
  margin-top: 12px;
  font-size: 10px;
  padding: 8px 8px;
  border-radius: 999px;
  background: #7e7e7e38;
  display: inline-block;
  color: #9ca3af;
}
.basekit-item-meta .chip {
  /* background: #374151; */
  padding: 8px 8px;
  font-size: 11px;
  /* border-radius: 999px; */
  color: #0ea5e9;
}
.basekit-item-qty {
  margin-top: 00px;
  display: flex;
  justify-content: flex-end;
}

.basekit-qty-stepper {
  display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 4px 10px;
    background: #0f172a;
    border-radius: 9px;
    border: 1px solid #1f2937;
    font-size: 13px;
    color: #FFF;
}
.basekit-card-header {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.basekit-capacity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 140px;
}

.basekit-capacity-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-size: 11px;
  color: #9ca3af;
}

.basekit-capacity-text {
  font-weight: 500;
  color: #e5e7eb;
}

.basekit-capacity-bar {
  width: 140px;
  height: 4px;
  border-radius: 999px;
  background: #a2a2a21a !important;
  overflow: hidden;
}

.basekit-capacity-fill {
  height: 100%;
  border-radius: 999px;
  background: #22c55e; /* green like your screenshot */
}

.stepper-btn {
  border: none;
  background: transparent;
  padding: 0 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #6b7280;
}

.stepper-btn:hover {
  color: #111827;
}

.stepper-value {
  min-width: 18px;
  text-align: center;
  font-weight: 500;
}

/* =======================================
   SUMMARY CARD — consistent price layout
   ======================================= */
.system-summary-block {
  padding: 12px;
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid #1f2937;
  border-radius: 6px;
  margin-top: 12px;
}

.system-summary-header {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.system-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12px;
  color: #e5e7eb;
}

.system-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #1f2937;
  font-size: 13px;
  font-weight: 600;
  color: #26c4ff;
}
/* =======================================
   Lighting - ROOM SUMMARY CARD — consistent price layout
   ======================================= */
.lighting-room-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--nh-table-border);
  border-radius: 8px;
  overflow: hidden;
}

.lrt-header, 
.lrt-row{
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr auto;
  padding: 10px;
  font-size: 12px;
  align-items: center;
}
.bkt-header, .bkt-row, .st-header, .st-row {
  display: grid;
  grid-template-columns: 4fr 1fr auto;
  padding: 10px;
  font-size: 12px;
  align-items: center;
}

.lrt-header, .bkt-header, .st-header {
  background: var(  --nh-table-header-bg);
  font-weight: 600;
  border-bottom: 1px solid var(--nh-table-border);
  color: #9ca3af;
}

.lrt-row, .bkt-row, .st-row {
  border-bottom: 1px solid var(--nh-table-border);
  color: #e5e7eb;
  cursor: pointer;
}

.lrt-row:hover, .bkt-row:hover, .st-row:hover {
  background: var(--nh-table-row-hover-bg);
}

.lrt-row:last-child, .bkt-row:last-child {
  border-bottom: none;
}

.lrt-col.room, .bkt-col.room {
  font-weight: 500;
}

.lrt-sf, .lrt-ll {
  color: #6b7280;
  font-size: 10px;
  margin-left: 4px;
}
.room-table-card-header{
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}