:root {
  --bg: #000000;
  --side: #05070a;
  --panel: #0b1118;
  --panel2: #111827;
  --border: #26394d;
  --text: #ffffff;
  --muted: #9ca3af;
  --teal: #0085ff;
  --teal2: #33c6fb;
  --blue: #0177e3;
  --shadow: 0 16px 50px #000a;
}

html, body {
  background: radial-gradient(circle at 78% 0, #061b38 0, transparent 34%), #000;
}

.sidebar {
  background: linear-gradient(180deg, #080b10, #000);
  border-right-color: #17283a;
}

.brand-logo {
  height: 125px;
  margin: -4px 5px 10px;
}

.brand-logo img {
  display: block;
  width: 190px;
  height: 125px;
  object-fit: contain;
  transform: scale(1.25);
  transform-origin: center top;
}

.login-logo {
  height: 190px;
  margin: -8px auto 4px;
}

.login-logo img {
  display: block;
  width: 310px;
  height: 190px;
  object-fit: contain;
  margin: auto;
}

.nav-item:hover, .nav-item.active {
  background: linear-gradient(90deg, #072d52, #0b1c2e);
  color: #33c6fb;
  box-shadow: inset 3px 0 #0085ff;
}

.metric.accent {
  background: linear-gradient(145deg, #052b55, #091522);
  border-color: #0177e3;
}

.primary {
  background: linear-gradient(90deg, #0177e3, #33c6fb);
  color: #ffffff;
}

.result-total {
  background: linear-gradient(145deg, #052b55, #07141f);
  border-color: #0177e3;
}

.pipeline { grid-template-columns: repeat(6, minmax(150px, 1fr)); }
.pipeline-col { border-top-color: #0085ff; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.pipeline-col.drag-over { background: #0b2237; border-color: #33c6fb; box-shadow: inset 0 0 0 1px #33c6fb; }
.order-card { border-left-color: #33c6fb; }
.order-card[draggable="true"] { cursor: grab; }
.order-card[draggable="true"]:active, .order-card.pipeline-dragging { cursor: grabbing; opacity: .52; }
.donut { background: conic-gradient(#0085ff var(--rate, 0%), #17283a 0); }
.bar { background: linear-gradient(180deg, #33c6fb, #0177e3); }
.status-dot { background: #33c6fb; box-shadow: 0 0 12px #0085ff; }
.avatar { background: linear-gradient(135deg, #33c6fb, #0177e3); color: #fff; }

.dashboard-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-widget { min-width: 0; }
.widget-drag-handle {
  display: none;
  position: absolute;
  z-index: 6;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 1px solid #2778b9;
  border-radius: 50%;
  background: #06192b;
  color: #33c6fb;
  cursor: grab;
  touch-action: none;
  user-select: none;
  font-size: 17px;
  line-height: 1;
}
.dashboard-layout.layout-editing .dashboard-widget {
  position: relative;
  outline: 1px dashed #0085ff88;
  cursor: grab;
  animation: widget-jiggle 0.24s ease-in-out infinite alternate;
  transition: transform .18s ease, outline-color .18s ease, opacity .18s ease;
}
.dashboard-layout.layout-editing .dashboard-widget:nth-child(even) { animation-delay: -.12s; }
.dashboard-layout.layout-editing .widget-drag-handle { display: grid; place-items: center; }
.dashboard-layout.layout-editing .dashboard-widget.widget-selected {
  outline: 3px solid #33c6fb;
  transform: scale(.985);
  animation: none;
}
.dashboard-layout.layout-editing .dashboard-widget.widget-drop-target {
  outline: 3px solid #0085ff;
  transform: scale(1.015);
  animation: none;
}
.dashboard-layout.layout-editing .dashboard-widget.widget-dragging {
  opacity: .48;
  animation: none;
}
@keyframes widget-jiggle {
  from { transform: rotate(-.16deg); }
  to { transform: rotate(.16deg); }
}
.widget-metrics, .widget-chart { grid-column: 1 / -1; }
.widget-pipeline { grid-column: span 2; }
.widget-profile { grid-column: span 1; }
.widget-chart { min-height: 360px; }
.widget-service-revenue, .widget-status-health, .widget-revenue-composition, .widget-cults-summary { grid-column: span 1; min-height: 350px; }
.widget-service-revenue .service-revenue-chart, .widget-status-health .status-chart { width: 92%; min-height: 260px; margin: auto; }
.widget-chart .bar-chart { height: 255px; justify-content: center; padding-inline: 36px; }
.widget-revenue-composition .donut-report-wrap { min-height: 265px; }
.widget-revenue-composition .report-donut { width: 172px; height: 172px; }
.dashboard-layout .metrics { margin: 0; }
.dashboard-widget.layout-hidden { display: none; }

.dashboard-layout.compact { gap: 8px; }
.dashboard-layout.compact .panel,
.dashboard-layout.compact .metric { padding: 12px; }
.dashboard-layout.compact .metric { min-height: 105px; }
.dashboard-layout.compact .metric strong { font-size: 24px; margin: 7px 0; }

.layout-button { white-space: nowrap; border-color: #1f5485; }
main { transition: margin-right .22s ease; }
main.layout-panel-open { margin-right: 360px; }
main.layout-panel-open #page-dashboard { padding-top: 0; }
.layout-drawer {
  position: fixed;
  z-index: 31;
  top: 92px;
  right: 18px;
  bottom: 18px;
  left: auto;
  transform: none;
  width: 330px;
  height: auto;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 16px 20px;
  background: #070b10;
  border: 1px solid #1e4568;
  border-radius: 14px;
  box-shadow: 0 -15px 60px #000c;
}

.drawer-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: none !important;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; }
.drawer-head h2 { margin: 0 0 5px; }
.drawer-head p, .layout-drawer small { color: var(--muted); }
.icon-button { border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }
.toggle-row { flex-direction: row; align-items: center; justify-content: space-between; margin: 12px 0; }
.toggle-row input { width: 20px; height: 20px; accent-color: #0085ff; }
.layout-widget-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
.layout-widget-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid #23384b;
  border-radius: 8px;
  background: #0c141d;
}
.layout-widget-row button { width: 32px; height: 32px; border: 1px solid #2a4861; border-radius: 5px; background: #101e2b; color: #fff; cursor: pointer; }
.layout-widget-row.is-hidden { opacity: .62; }.layout-widget-row .layout-toggle { width: auto; padding: 0 10px; color: #dcebf4; font-size: 11px; }
.layout-drawer > small { display: block; margin-top: 15px; text-align: center; }

.calculator-stage { display: grid; grid-template-columns: 1.45fr .95fr; gap: 20px; min-height: 520px; }
.calculator-content-head { margin-bottom: 16px; }
.calculator-card { margin-bottom: 20px; }
.calculator-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.calculator-settings-icon { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; font-size: 18px; }
.calculator-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 8px; font-size: 16px; vertical-align: middle; overflow: hidden; }
.calculator-icon img { display: block; width: 20px; height: 20px; object-fit: contain; }
.icon-print { color: #33c6fb; background: #062a49; }.icon-modeling { color: #b47aff; background: #281742; }.icon-scanning { color: #65f0bd; background: #0d362d; }.icon-project { color: #f6bd60; background: #3c2a11; }
.below-quote-tools .service-calculators { display: none; }
.advanced-details { display: none; position: fixed; z-index: 60; top: 50%; left: 50%; width: min(660px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; transform: translate(-50%, -50%); padding: 22px; background: #0d161e; border-color: #31536a; box-shadow: 0 30px 100px #000d; }
.advanced-details[open] { display: block; }
.advanced-details::backdrop { background: #000; }
.advanced-details summary { list-style: none; font-size: 19px; color: #fff; margin-bottom: 20px; }
.advanced-details summary::-webkit-details-marker { display: none; }
.service-calculator-card { min-height: 190px; }
.service-calculator-stage { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr); gap: 20px; align-items: stretch; }
.service-input-panel { display: grid; align-items: end; }
.service-calculator-fields { display: grid; grid-template-columns: minmax(150px, .9fr) 92px 92px minmax(180px, 1.4fr) auto; align-items: end; gap: 14px; width: 100%; }
.service-estimate-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 170px; max-width: 420px; width: 100%; justify-self: end; padding: 22px; border: 1px solid #0177e3; border-radius: 10px; background: linear-gradient(145deg,#052b55,#07141f); text-align: center; }
.service-estimate-card > span { color: #a9c6e5; font-size: 14px; }.service-estimate-card > strong { margin: 14px 0 22px; color: #33c6fb; font-size: clamp(30px, 3.5vw, 46px); }.service-estimate-card .service-create-order { width: 100%; }
.service-total { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }.service-total .service-create-order { width: auto; padding: 7px 10px; font-size: 12px; }
.service-order-tag { display: inline-block; margin-top: 5px; padding: 3px 7px; border: 1px solid #7252ad; border-radius: 999px; color: #d5bcff; background: #24163a; font-size: 10px; white-space: nowrap; }
.order-row.service-order-row { background: linear-gradient(90deg, rgba(139,44,255,.13), transparent 34%); }.order-row.service-order-row td:first-child { border-left-color: #a56bff; }.order-card.service-order-card { border-left-color: #a56bff; background: linear-gradient(145deg,#1c1530,#121923); }
.service-calculator-fields label { margin: 0; }
.calculator-modal { position: fixed; z-index: 61; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2, 7, 11, .82); backdrop-filter: blur(5px); }
.calculator-modal-card { width: min(580px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 20px; border: 1px solid #31536a; border-radius: 12px; background: #0d161e; box-shadow: 0 30px 100px #000; }
.calculator-modal-card header, .calculator-modal-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.calculator-modal-card header { padding-bottom: 14px; border-bottom: 1px solid #263d4d; }.calculator-modal-card footer { padding-top: 15px; margin-top: 15px; border-top: 1px solid #263d4d; justify-content: flex-end; }.calculator-modal-card h2 { margin: 0 0 4px; font-size: 18px; }.calculator-modal-card p { margin: 0; color: var(--muted); font-size: 12px; }
.calculator-modal-body { padding-top: 18px; }.calculator-modal-body .breakdown { margin: 18px 0; }
.calculator-layout-list { display: grid; gap: 8px; padding-top: 18px; }.calculator-layout-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; padding: 11px; border: 1px solid #23384b; border-radius: 8px; background: #0c141d; }.calculator-layout-row button { min-width: 34px; height: 32px; border: 1px solid #2a4861; border-radius: 5px; background: #101e2b; color: #fff; cursor: pointer; }.calculator-layout-row .calculator-toggle { padding: 0 10px; }.calculator-layout-row.is-hidden { opacity: .6; }
.quote-inputs, .customer-price { min-height: 520px; }
.quote-inputs { padding: 28px; }
.quote-inputs > label { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px; font-size: 14px; }
.quantity-input { display: grid; gap: 5px; min-width: 0; }
.quantity-input small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.time-inputs { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 8px; }
.quote-inputs .time-inputs { grid-template-columns: 115px auto 115px auto; justify-content: start; }
.time-inputs span { color: var(--muted); }
.customer-price { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 35px; }
.customer-price > span { color: #a9c6e5; font-size: 15px; }
.customer-price > strong { color: #33c6fb; font-size: clamp(38px, 5vw, 64px); margin: 25px 0 45px; }
.customer-price > strong.price-updated { animation: price-update .42s cubic-bezier(.2,.85,.25,1); }
@keyframes price-update { 0% { transform: scale(.84); opacity: .45; color: #fff; } 55% { transform: scale(1.1); color: #fff; } 100% { transform: scale(1); opacity: 1; color: #33c6fb; } }
.below-quote-tools { display: contents; }
.advanced-details summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.advanced-details[open] summary { color: #33c6fb; margin-bottom: 18px; }
.advanced-details > label { max-width: 280px; }
.service-total { align-self: end; padding: 12px; font-size: 18px; }
.service-total strong { color: #33c6fb; font-size: 24px; }
.project-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-card { min-height: 220px; }
.project-card .project-progress { height: 6px; border-radius: 8px; background: #16283a; overflow: hidden; margin: 14px 0; }
.project-card .project-progress span { display: block; height: 100%; background: #0085ff; }
.project-goal-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; }.project-goal-summary strong { color: #33c6fb; font-size: 18px; }.project-goal-summary span:last-child { margin-left: auto; }
.project-card .panel-head { align-items: flex-start; }.project-actions { display: flex; align-items: center; gap: 8px; }.project-actions .badge { margin: 0; }.delete-project { color: #ffb9b9; border-color: #6f3038; background: #231217; }.goal-list { display: grid; gap: 10px; margin: 14px 0; }.goal-group { border: 1px solid #21394d; border-radius: 10px; overflow: hidden; background: #081018; }.goal-main-label { display: block; padding: 7px 11px 0; color: #70c9ff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.goal-row { display: flex; align-items: center; gap: 9px; padding: 10px 11px; background: #0c151d; border-radius: 0; cursor: pointer; transition: background .16s ease; }.goal-row:hover { background: #142433; }.goal-row.complete span { color: #75dca3; text-decoration: line-through; }.goal-row small { margin-left: auto; color: var(--muted); font-size: 10px; }.subgoal-stack { border-top: 1px solid #1d3447; padding: 5px 0; }.subgoal-heading { display: block; padding: 2px 11px 4px 37px; color: var(--muted); font-size: 10px; }.goal-row.subgoal { padding: 8px 11px 8px 32px; background: #09131d; }.goal-empty { padding: 14px; border: 1px dashed #2b475e; border-radius: 8px; color: var(--muted); font-size: 12px; }
.goal-row input { width: 17px; height: 17px; accent-color: #0085ff; }
.goal-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.report-metrics { margin-bottom: 14px; }
.orders-table-wrap table { min-width: 1240px; }
.order-filter-row th { padding: 10px 12px 12px; background: #0b141d; }.order-filters { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)) auto; align-items: end; gap: 10px; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.order-filters label { margin: 0; }.order-filters input,.order-filters select { padding: 9px; }.order-filters button { height: 39px; white-space: nowrap; }
.order-sort { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }.order-sort:hover,.order-sort.active { color: #33c6fb; }
.order-row { transition: background .18s ease, box-shadow .18s ease; }
.order-row:hover { background:#16222a; }
.order-row td:first-child { border-left:4px solid transparent; }
.order-row.order-complete { background:linear-gradient(90deg,rgba(48,190,120,.10),transparent 30%); }
.order-row.order-complete td:first-child { border-left-color:#58d68d; }
.order-row.order-active { background:linear-gradient(90deg,rgba(48,155,255,.10),transparent 30%); }
.order-row.order-active td:first-child { border-left-color:#43a5ff; }
.order-row.order-pending { background:linear-gradient(90deg,rgba(246,189,96,.08),transparent 30%); }
.order-row.order-pending td:first-child { border-left-color:#f6bd60; }
.order-row.order-cancelled { background:linear-gradient(90deg,rgba(240,113,120,.09),transparent 30%); opacity:.72; }
.order-row.order-cancelled td:first-child { border-left-color:#f07178; }
.order-number { color:#86a9bb; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:12px; }
.customer-name { color:#f4f8f9; white-space:nowrap; }
.cash-gain { color:var(--teal2); font-weight:700; }
.status-select { min-width:145px; padding:8px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.status-select.status-new_quote,.status-select.status-approved { color:#ffd27d; border-color:#725b32; background:#241d12; }
.status-select.status-in_production { color:#7fc4ff; border-color:#285f8c; background:#102437; }
.status-select.status-shipped,.status-select.status-invoiced { color:#7ce2a7; border-color:#2c7950; background:#10291c; }
.status-select.status-cancelled { color:#ff9ca2; border-color:#793b40; background:#2b1518; }
.customer-form { grid-template-columns:repeat(3,minmax(180px,1fr)); align-items:end; }
.customer-form button { min-height:40px; }
.customer-table-wrap table { min-width:1080px; }
.final-price-input { width:118px; min-width:100px; padding:8px; color:#33c6fb; font-weight:800; }
.order-actions { position:relative; width:42px; padding-left:4px; padding-right:10px; }
.order-action-trigger { width:34px; height:34px; padding:0; border:1px solid #365064; border-radius:8px; background:#101c25; color:#dcebf4; font-size:19px; cursor:pointer; }
.order-action-trigger:hover,.order-actions.open .order-action-trigger { border-color:#30b8ff; background:#173044; }
.order-action-menu { position:absolute; z-index:12; top:42px; right:10px; width:205px; display:none; padding:6px; background:#0c151d; border:1px solid #315169; border-radius:9px; box-shadow:0 18px 45px #000b; }
.order-actions.open .order-action-menu { position:fixed; z-index:100; display:grid; }
.order-row:nth-last-child(-n+3) .order-action-menu { top:auto; bottom:42px; }
.order-action-menu button { border:0; border-radius:6px; background:transparent; color:#d9e8ef; padding:10px; text-align:left; cursor:pointer; font-size:12px; }
.order-action-menu button:hover { background:#183044; color:#48c9ff; }
.order-action-menu button.danger-action { color:#f6bd60; }
.invoice-state { display:inline-block; margin-top:4px; color:#7ea4b9; font-size:9px; text-transform:uppercase; letter-spacing:.5px; }
.invoice-card { position:relative; }.invoice-card-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }.invoice-card-actions button { flex:1; min-width:110px; }.invoice-more { position:absolute; top:12px; right:12px; }.invoice-more-trigger { width:30px; height:30px; padding:0; border:1px solid #3a5365; border-radius:7px; background:#101e29; color:#c9dbe5; cursor:pointer; font-size:19px; line-height:1; }.invoice-more-trigger:hover,.invoice-more.open .invoice-more-trigger { border-color:#48c9ff; color:#48c9ff; }.invoice-more-menu { position:absolute; top:36px; right:0; z-index:12; display:none; min-width:198px; padding:6px; border:1px solid #315169; border-radius:8px; background:#0c151d; box-shadow:0 18px 45px #000b; }.invoice-more.open .invoice-more-menu { display:block; }.invoice-more-menu button { width:100%; border:0; border-radius:6px; padding:10px; background:transparent; color:#fff; text-align:left; cursor:pointer; }.invoice-more-menu button:hover { background:#183044; color:#fff; }
.pdf-modal { position:fixed; z-index:40; inset:0; display:grid; place-items:center; padding:24px; background:rgba(2,7,11,.86); backdrop-filter:blur(6px); }
.pdf-modal-card { width:min(1050px,100%); height:min(900px,calc(100vh - 48px)); display:grid; grid-template-rows:auto 1fr auto; overflow:hidden; background:#0d161e; border:1px solid #31536a; border-radius:12px; box-shadow:0 30px 100px #000; }
.pdf-modal-card header,.pdf-modal-card footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 18px; }.pdf-modal-card header { border-bottom:1px solid #263d4d; }.pdf-modal-card footer { justify-content:flex-end; border-top:1px solid #263d4d; }.pdf-modal-card h2 { margin:0 0 3px; font-size:17px; }.pdf-modal-card p { margin:0; color:var(--muted); font-size:11px; }.pdf-modal-card .icon-button { color:#fff; }
.invoice-preview-scroll { overflow:auto; padding:28px; background:#dce3e7; }
.invoice-preview-paper { width:min(780px,100%); min-height:1050px; margin:auto; padding:48px; background:#fff; color:#12181d; box-shadow:0 8px 28px #24333c55; font-family:Arial,sans-serif; }
.invoice-preview-header { display:flex; justify-content:space-between; align-items:flex-start; gap:30px; margin-bottom:32px; }.invoice-preview-header img { width:145px; height:85px; object-fit:contain; }.invoice-preview-header h3 { margin:10px 0 5px; font-size:28px; text-align:right; }.invoice-preview-header span { display:block; color:#687780; text-align:right; font-size:11px; font-weight:700; }
.invoice-preview-parties { display:grid; grid-template-columns:1fr 1fr; border:1px solid #ccd9e0; margin-bottom:24px; }.invoice-preview-party { min-height:130px; padding:16px; }.invoice-preview-party+.invoice-preview-party { border-left:1px solid #ccd9e0; }.invoice-preview-party h4 { margin:-16px -16px 14px; padding:10px 16px; background:#edf6fc; color:#64747e; font-size:10px; }.invoice-preview-party p { color:#12181d; font-size:12px; line-height:1.5; }
.invoice-preview-meta { display:grid; grid-template-columns:repeat(4,1fr); margin-bottom:24px; border:1px solid #ccd9e0; }.invoice-preview-meta div { padding:11px; font-size:11px; }.invoice-preview-meta span { display:block; margin:-11px -11px 9px; padding:8px 11px; background:#111820; color:#b8c4ca; font-size:9px; }.invoice-preview-meta strong { font-size:11px; }
.invoice-preview-table { width:100%; min-width:0; margin-bottom:20px; }.invoice-preview-table th,.invoice-preview-table td { padding:11px 9px; color:#12181d; border:1px solid #ccd9e0; font-size:10px; }.invoice-preview-table th { background:#111820; color:#dce5e9; }.invoice-preview-table th:not(:first-child),.invoice-preview-table td:not(:first-child) { text-align:right; }
.invoice-preview-totals { width:310px; margin-left:auto; }.invoice-preview-totals div { display:flex; justify-content:space-between; gap:20px; padding:7px; font-size:12px; }.invoice-preview-totals .total { margin-top:4px; border-top:2px solid #111820; font-weight:800; font-size:16px; }.invoice-preview-totals .total strong { color:#118de8; }.invoice-preview-payment { margin-top:55px; color:#27343b; font-size:11px; line-height:1.5; }
.report-pad { padding: 18px 18px 0; }
.ledger-form { grid-template-columns: repeat(6, 1fr) auto; }
.report-chart-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:14px; margin:14px 0; }
.report-chart-card { min-height:310px; overflow:hidden; }
.grouped-bar-chart { height:190px; display:flex; align-items:flex-end; gap:18px; padding:14px 10px 0; border-bottom:1px solid var(--border); }
.year-column { flex:1; min-width:54px; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:8px; }
.year-bars { width:100%; height:155px; display:flex; align-items:flex-end; justify-content:center; gap:5px; }
.year-bars i { flex:none; width:min(22%,22px); min-height:3px; height:var(--height); border-radius:4px 4px 0 0; transition:height .25s ease; }
.year-bars .revenue { background:linear-gradient(#35c7ff,#087ac5); }
.year-bars .cost { background:linear-gradient(#f6bd60,#9d6418); }
.year-bars .gain { background:linear-gradient(#65f0bd,#159174); }
.year-column>span { color:var(--muted); font-size:11px; }
.chart-legend { display:flex; gap:16px; flex-wrap:wrap; margin-top:16px; color:var(--muted); font-size:11px; }
.chart-legend span { display:flex; align-items:center; gap:6px; }
.chart-legend i { width:9px; height:9px; border-radius:2px; }
.legend-revenue { background:#35c7ff; }.legend-cost { background:#f6bd60; }.legend-gain { background:#65f0bd; }
.donut-report-wrap { display:flex; align-items:center; justify-content:center; gap:22px; min-height:200px; }
.report-donut { width:142px; height:142px; flex:none; border-radius:50%; display:grid; place-items:center; position:relative; background:conic-gradient(#65f0bd var(--gain-rate,0%),#f6bd60 0); }
.report-donut::after { content:""; position:absolute; inset:18px; border-radius:50%; background:#101820; }
.report-donut>div { z-index:1; text-align:center; }.report-donut strong,.report-donut span { display:block; }.report-donut strong { font-size:22px; color:#65f0bd; }.report-donut span { font-size:10px; color:var(--muted); }
.value-legend { display:grid; gap:13px; font-size:11px; color:var(--muted); }.value-legend strong { display:block; color:var(--text); font-size:15px; margin-top:3px; }
.status-chart { display:grid; gap:10px; padding-top:5px; }.status-row { padding:10px 11px; border:1px solid #294353; border-radius:8px; background:#0c151d; }.status-row header { display:flex; justify-content:space-between; font-size:12px; margin-bottom:8px; }.status-row header strong { color:var(--text); }.status-track { height:8px; border:1px solid #294353; border-radius:999px; background:#081018; overflow:hidden; }.status-track span { display:block; height:100%; width:var(--width); border-radius:inherit; }.status-pending header span { color:#f6bd60; }.status-active header span { color:#35a7ff; }.status-ready header span { color:#b47aff; }.status-complete header span { color:#65f0bd; }.status-cancelled header span { color:#f07178; }.status-pending .status-track span { background:#f6bd60; }.status-active .status-track span { background:#35a7ff; }.status-ready .status-track span { background:#b47aff; }.status-complete .status-track span { background:#65f0bd; }.status-cancelled .status-track span { background:#f07178; }
.service-revenue-chart { min-height:190px; display:grid; align-content:center; gap:18px; padding:6px 0; }.service-revenue-row header { display:flex; align-items:baseline; justify-content:space-between; gap:12px; font-size:13px; }.service-revenue-row header strong { color:var(--text); font-size:15px; }.service-revenue-track { height:12px; margin:7px 0 5px; overflow:hidden; border-radius:999px; background:#071017; }.service-revenue-track span { display:block; height:100%; width:var(--width); border-radius:inherit; transition:width .25s ease; }.service-fdm .service-revenue-track span { background:linear-gradient(90deg,#28b7f5,#1683c6); }.service-resin .service-revenue-track span { background:linear-gradient(90deg,#ad6eff,#7828de); }.service-other .service-revenue-track span { background:linear-gradient(90deg,#65f0bd,#159174); }.service-revenue-row small,.chart-note { color:var(--muted); font-size:11px; }.chart-note { margin:14px 0 0; line-height:1.45; }.chart-note strong { color:#65f0bd; }
.widget-cults-summary { border-color: #573080; background: radial-gradient(circle at 88% 0, rgba(139,44,255,.25), transparent 36%), linear-gradient(145deg,#171321,#0d1118); }
.widget-cults-summary .panel-head img { width: 24px; height: 24px; object-fit: contain; }
.dashboard-cults-summary { min-height: 260px; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 10px; }
.dashboard-cults-summary > div { padding: 18px 14px; border: 1px solid #543074; border-radius: 9px; background: rgba(49,25,74,.55); }
.dashboard-cults-summary > div.featured { border-color: #bd7dff; background: linear-gradient(135deg,#7624df,#9d36ff); }
.dashboard-cults-summary span, .dashboard-cults-summary strong { display: block; }
.dashboard-cults-summary span { color: #c7acd9; font-size: 11px; }
.dashboard-cults-summary strong { margin-top: 8px; color: #fff; font-size: 21px; }
.report-actions { display:flex; align-items:center; gap:10px; }.cults-launcher { display:inline-flex; align-items:center; gap:7px; border:1px solid #7b39df; border-radius:8px; padding:9px 12px; color:#dfc7ff; background:linear-gradient(135deg,#25143d,#15101f); font-weight:800; cursor:pointer; transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }.cults-launcher img { width:18px; height:18px; object-fit:contain; }.cults-launcher:hover,.cults-launcher.active { border-color:#bf82ff; box-shadow:0 0 18px rgba(139,44,255,.35); }.cults-launcher:active { transform:scale(.94); box-shadow:0 0 28px rgba(180,122,255,.55); }.cults-dashboard.cults-opening { animation:cults-reveal .34s cubic-bezier(.2,.8,.2,1); }.has-panel-info { position:relative; }.panel-info-button { position:absolute; top:14px; right:14px; z-index:4; display:grid; place-items:center; width:22px; height:22px; padding:0; border:1px solid #496175; border-radius:50%; background:#11202b; color:#9fb7c7; font-family:Georgia,serif; font-weight:700; font-style:italic; cursor:pointer; }.panel-head { justify-content:flex-start; }.panel-head > div:first-child { margin-right:auto; }.panel-head .panel-info-button { position:static; flex:none; margin-left:8px; }.panel-info-button:hover,.has-panel-info.info-open .panel-info-button { border-color:#48c9ff; color:#48c9ff; }.panel-info-popover { position:absolute; z-index:8; top:43px; right:14px; display:none; width:min(290px,calc(100% - 28px)); padding:11px 12px; border:1px solid #315169; border-radius:8px; background:#0b141c; box-shadow:0 14px 34px #000b; color:#c8d7df; font-size:12px; line-height:1.45; }.has-panel-info.info-open .panel-info-popover { display:block; }@keyframes cults-reveal { from { opacity:0; transform:translateY(-12px) scale(.985); } to { opacity:1; transform:none; } }
.empty-chart::before { content:"No data yet"; color:var(--muted); font-size:12px; margin:auto; align-self:center; }
.cults-dashboard { --cults:#8b2cff; --cults-light:#b47aff; --cults-dark:#25143d; margin:14px 0; border-color:#573080; background:radial-gradient(circle at 88% 0,rgba(139,44,255,.2),transparent 32%),linear-gradient(145deg,#171321,#0d1118); }
.cults-head { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; padding-bottom:16px; border-bottom:1px solid #3e2757; }.cults-head h2 { font-size:22px; }.cults-eyebrow { color:var(--cults-light); font-size:10px; letter-spacing:1.4px; font-weight:800; }.cults-controls { display:flex; align-items:end; gap:9px; }.cults-controls label { margin:0; min-width:180px; }.cults-controls input:focus { border-color:var(--cults-light); box-shadow:0 0 0 3px rgba(139,44,255,.18); }.cults-button { border:1px solid #a260ef; color:#fff; background:linear-gradient(135deg,#7325e5,#9f46ff); border-radius:7px; padding:11px 16px; font-weight:700; cursor:pointer; white-space:nowrap; }
.cults-status { color:#bca8cf; font-size:12px; margin:12px 0; }
.cults-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:14px 0; }.cults-kpis>div { border:1px solid #543074; background:rgba(49,25,74,.55); border-radius:9px; padding:16px; }.cults-kpis>div.featured { background:linear-gradient(135deg,#7624df,#9d36ff); border-color:#bd7dff; }.cults-kpis span,.cults-kpis strong { display:block; }.cults-kpis span { color:#c7acd9; font-size:11px; }.cults-kpis strong { color:#fff; font-size:24px; margin-top:8px; }
.cults-chart-grid { display:grid; grid-template-columns:1fr 1.4fr 1.25fr; gap:12px; align-items:stretch; }.cults-chart-grid>section { min-width:0; min-height:250px; display:flex; flex-direction:column; background:#0c1119; border:1px solid #38244c; border-radius:8px; padding:14px; }.cults-chart-grid h3,.cults-creations h3 { font-size:13px; margin:0; color:#e8d9f4; }.cults-chart-title { min-height:47px; display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }.cults-year-picker { width:112px; margin:0; gap:3px; color:#a996b8; font-size:10px; text-align:right; }.cults-year-picker select { padding:6px 8px; font-size:12px; border-color:#573080; }.cults-chart-grid .purple-bar-chart,.cults-chart-grid .design-chart { flex:1; }
.purple-bar-chart { height:190px; display:flex; align-items:flex-end; gap:9px; border-bottom:1px solid #42275e; padding:10px 4px 0; }.purple-column { flex:1; min-width:25px; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:7px; }.purple-column i { display:block; flex:none; width:min(70%,34px); min-height:3px; height:var(--height); border-radius:4px 4px 0 0; background:linear-gradient(#b47aff,#7224df); box-shadow:0 0 15px rgba(139,44,255,.2); }.purple-column span { max-width:58px; overflow:hidden; text-overflow:ellipsis; color:#a996b8; font-size:9px; white-space:nowrap; }.purple-bar-chart.monthly { gap:4px; }.purple-bar-chart.monthly .purple-column i { width:min(78%,24px); }
.design-chart { min-height:190px; display:grid; align-content:center; gap:10px; }.design-row header { display:flex; gap:8px; justify-content:space-between; font-size:10px; color:#c9b8d8; }.design-row header span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.design-row header strong { flex:none; color:#fff; }.design-track { height:7px; border-radius:9px; background:#21162d; overflow:hidden; margin:4px 0; }.design-track span { display:block; height:100%; width:var(--width); background:linear-gradient(90deg,#6e22dd,#b47aff); }.design-row small { color:#887799; font-size:9px; }
.cults-creations { margin-top:14px; border-top:1px solid #3e2757; padding-top:14px; }.cults-creations .resource-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.cults-creations .resource { border-color:#39234d; background:#0c1119; }
.cults-design-table { margin-top:14px; max-height:420px; overflow:auto; border:1px solid #3e2757; border-radius:8px; background:#0c1119; }.cults-design-table h3 { padding:14px 14px 4px; color:#e8d9f4; }.cults-design-table thead { position:sticky; top:0; background:#25143d; }.cults-net { color:#b47aff; font-weight:800; }
.business-settings-form { margin-bottom:14px; }.business-settings-form .form-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.business-logo-preview { min-height:76px; display:flex; align-items:center; justify-content:center; border:1px dashed var(--border); border-radius:8px; background:#070c12; }.business-logo-preview img { max-width:220px; max-height:72px; object-fit:contain; }
.invoice-setup-card { width:min(680px,calc(100vw - 28px)); background:var(--panel); border:1px solid var(--border); border-radius:12px; box-shadow:0 24px 80px #000; padding:20px; }.invoice-setup-card header,.invoice-setup-card footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }.invoice-setup-card .form-grid { margin:20px 0; grid-template-columns:1fr 1fr; }.invoice-setup-card footer { justify-content:flex-end; }
.customer-name+small { display:block; color:var(--muted); margin-top:3px; white-space:nowrap; }
.report-transactions { margin-top:14px; }
.legal-note { color: var(--muted); font-size: 12px; border-left: 3px solid #f6bd60; padding-left: 10px; }

@media print {
  body * { visibility: hidden !important; }
  #customer-quote-card, #customer-quote-card * { visibility: visible !important; }
  #customer-quote-card { position: absolute; inset: 0; background: #090d12; padding: 18px; }
  #print-quote { display: none !important; }
}

@media (max-width: 1100px) {
  .dashboard-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widget-profile { grid-column: span 2; }
  .calculator-stage { grid-template-columns: 1fr; }
  .service-calculator-fields { grid-template-columns: 1fr 1fr; }
  .service-calculator-fields label:nth-child(4) { grid-column: 1 / -1; }
  .service-calculator-stage { grid-template-columns: 1fr; }
  .report-chart-grid { grid-template-columns:1fr 1fr; }.report-chart-wide { grid-column:span 2; }.cults-chart-grid { grid-template-columns:1fr; }.cults-controls { flex-wrap:wrap; }.cults-kpis { grid-template-columns:1fr 1fr; }
  .business-settings-form .form-grid { grid-template-columns:1fr 1fr; }
  .project-cards { grid-template-columns: 1fr 1fr; }
  .order-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-widget-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .report-actions { width:100%; justify-content:space-between; }
  .content-head:has(.report-actions) { align-items:flex-start; flex-wrap:wrap; }
  .brand-logo { height: 55px; margin: -4px -2px 18px; }
  .brand-logo img { width: 58px; height: 55px; transform: scale(1.05); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .widget-metrics, .widget-pipeline, .widget-profile, .widget-chart { grid-column: 1; }
  .layout-button { font-size: 0; padding: 9px; }
  .layout-button::first-letter { font-size: 15px; }
  main.layout-panel-open { margin-right: 0; padding-bottom: 330px; }
  main.layout-panel-open #page-dashboard { padding-top: 0; }
  .layout-drawer {
    top: auto;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: 42vh;
    overflow: auto;
    border-left: 0;
    border-top: 1px solid #1e4568;
  }
  .calculator-stage { grid-template-columns: 1fr; }
  .calculator-actions { justify-content: flex-start; }
  .service-calculator-fields { grid-template-columns: 1fr; }
  .service-calculator-fields label:nth-child(4) { grid-column: auto; }
  .quote-inputs > label { grid-template-columns: 1fr; }
  .quantity-input small { white-space: normal; }
  .quote-inputs .time-inputs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
  .project-cards { grid-template-columns: 1fr; }
  .order-filters { grid-template-columns: 1fr; }
  .layout-widget-list { grid-template-columns: 1fr; }
  .pdf-modal { padding:0; }.pdf-modal-card { width:100%; height:100vh; border-radius:0; }.pdf-modal-card footer { flex-wrap:wrap; }.pdf-modal-card footer button { flex:1; }.invoice-preview-scroll { padding:10px; }.invoice-preview-paper { min-height:850px; padding:24px; }.invoice-preview-header h3 { font-size:20px; }.invoice-preview-parties { grid-template-columns:1fr; }.invoice-preview-party+.invoice-preview-party { border-left:0; border-top:1px solid #ccd9e0; }.invoice-preview-meta { grid-template-columns:1fr 1fr; }.invoice-preview-totals { width:100%; }
  .report-chart-grid { grid-template-columns:1fr; }.report-chart-wide { grid-column:span 1; }.cults-head { flex-direction:column; }.cults-controls { width:100%; display:grid; grid-template-columns:1fr; }.cults-controls label { min-width:0; }.cults-kpis { grid-template-columns:1fr; }.cults-creations .resource-list { grid-template-columns:1fr; }
  .business-settings-form .form-grid,.invoice-setup-card .form-grid { grid-template-columns:1fr; }
}
