:root {
  --blue: #2865ed;
  --blue-soft: #edf3ff;
  --bg: #f5f7fb;
  --surface: #fff;
  --surface-alt: #f9fafc;
  --ink: #18233b;
  --muted: #7b8499;
  --line: #e7ebf2;
  --sidebar: #101b30;
  --green: #138c66;
  --red: #d44e5b;
  --shadow: 0 5px 24px #20345b06;
  color-scheme: light;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8dadff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--blue);
  color: #fff;
  padding: 14px;
  z-index: 99;
}
.skip-link:focus {
  top: 10px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 236px;
  background: var(--sidebar);
  color: #a1aec8;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 30;
  padding: 28px 16px 16px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 9px;
  color: #fff;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  font-size: 7.3px;
  letter-spacing: 1.15px;
  font-weight: 500;
  color: #8999b6;
  margin-top: 8px;
}
.brand-mark {
  background: var(--blue);
  color: white;
  width: 34px;
  height: 37px;
  border-radius: 10px;
  font-size: 30px;
  text-align: center;
  line-height: 39px;
  position: relative;
  font-weight: 700;
}
.brand-mark span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #b6ddff;
  border-radius: 50%;
  right: 7px;
  top: 6px;
}
.workspace-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 5px 28px;
  padding: 13px 10px;
  border: 1px solid #ffffff12;
  border-radius: 9px;
  background: #ffffff04;
  min-width: 0;
}
.company-avatar {
  background: #263c60;
  color: #bdd1ff;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  font-weight: 700;
}
.workspace-switch div {
  min-width: 0;
}
.workspace-switch strong {
  display: block;
  color: #e5edfc;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-switch small {
  font-size: 10px;
  color: #8291ac;
  display: block;
  margin-top: 5px;
}
.nav-section {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #62728e;
  padding: 7px 14px;
  margin-top: 12px;
  margin-bottom: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 8px;
  margin: 3px 0;
  color: #99aac7;
  font-size: 12px;
  font-weight: 550;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.nav-link:hover {
  background: #ffffff08;
  color: #fff;
}
.nav-link.active {
  background: #2765ed;
  color: #fff;
  box-shadow: 0 4px 14px #0002;
}
.nav-link svg {
  width: 17px;
  height: 17px;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  padding: 3px 6px;
  background: #ffffff12;
  border-radius: 5px;
}
#navigation {
  overflow-y: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.sidebar-note {
  font-size: 11px;
  border-top: 1px solid #ffffff0d;
  padding: 18px 10px;
}
.sidebar-note small {
  display: block;
  color: #5f7294;
  font-size: 10px;
  margin-top: 6px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #5bb79a;
  border-radius: 50%;
  margin-right: 5px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: #fff;
  width: 100%;
  padding: 8px;
  text-align: left;
}
.profile > span:nth-child(2) {
  min-width: 0;
}
.profile strong {
  font-size: 11px;
  display: block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  display: block;
  color: #7286a8;
  font-size: 10px;
  margin-top: 4px;
}
.avatar,
.top-avatar {
  width: 32px;
  height: 32px;
  background: #dce8ff;
  color: #2759ad;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 750;
  flex-shrink: 0;
}
.profile-more {
  margin-left: auto;
  color: #7d91b1;
}
.signout {
  border: 0;
  background: none;
  color: #6c80a0;
  font-size: 10px;
  margin: 4px 0 0 50px;
}
.workspace-main {
  margin-left: 236px;
  width: calc(100% - 236px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  gap: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.breadcrumb strong {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 550;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.search-launch {
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-launch span {
  font-size: 19px;
  line-height: 14px;
}
.search-launch kbd {
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 9px;
  padding: 2px 4px;
  margin-left: 12px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
}
.icon-button:hover {
  background: var(--blue-soft);
  color: var(--blue);
}
.mobile-menu {
  display: none;
}
main {
  padding: 32px 34px;
  min-height: calc(100vh - 119px);
  outline: none;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 34px;
  color: var(--muted);
  font-size: 9px;
  border-top: 1px solid var(--line);
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 27px;
}
.eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--blue);
  margin-bottom: 10px;
}
h1 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0 0 9px;
  font-weight: 720;
}
h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 14px;
  margin: 0;
}
p {
  line-height: 1.65;
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}
.page-heading p {
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 9px;
  padding-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  min-height: 36px;
}
.btn:hover {
  border-color: #b9cdfb;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 3px 8px #2865ed14;
}
.btn.primary:hover {
  background: #1c52d6;
}
.btn.danger {
  color: var(--red);
}
.btn svg {
  width: 14px;
  height: 14px;
}
.btn.small {
  padding: 6px 9px;
  font-size: 10px;
  min-height: 28px;
}
.btn.ghost {
  background: none;
  border-color: transparent;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 27px;
}
.metric {
  padding: 19px 21px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.metric.featured {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.metric.featured .metric-label {
  color: #d0defe;
}
.metric-label svg {
  width: 15px;
  height: 15px;
  opacity: 0.65;
}
.metric-value {
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.8px;
  margin: 13px 0 9px;
  overflow-wrap: anywhere;
}
.metric-detail {
  font-size: 9px;
  color: var(--muted);
}
.metric.featured .metric-detail {
  color: #bbd0ff;
}
.metric.featured:after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 25px solid #ffffff05;
  border-radius: 50%;
  right: -90px;
  bottom: -95px;
}
.section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.section-top small {
  font-size: 10px;
  color: var(--muted);
}
.section-top .title-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.count-pill {
  font-size: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 6px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.toolbar label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
.toolbar input {
  width: 230px;
}
.toolbar select {
  min-width: 140px;
}
input,
select,
textarea {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  font-size: 12px;
  max-width: 100%;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.view-toggle {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-left: auto;
}
.view-toggle button {
  border: 0;
  padding: 6px 10px;
  border-radius: 5px;
  background: transparent;
  font-size: 10px;
  color: var(--muted);
}
.view-toggle button.active {
  background: var(--surface);
  box-shadow: 0 1px 4px #0001;
  color: var(--ink);
}
.board-scroll {
  overflow-x: auto;
  padding: 0 20px 20px;
  scrollbar-width: thin;
}
.board {
  display: grid;
  grid-template-columns: repeat(6, minmax(235px, 1fr));
  gap: 14px;
  min-height: 325px;
}
.stage {
  padding: 12px;
  background: var(--surface-alt);
  border-radius: 8px;
  min-width: 0;
  border: 1px solid transparent;
}
.stage.drag-over {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.stage-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 8px;
}
.stage-header .count-pill {
  margin-left: auto;
  background: var(--surface);
}
.stage-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8699b9;
}
.stage[data-stage="Qualified"] .stage-dot {
  background: #6080d7;
}
.stage[data-stage="Proposal"] .stage-dot {
  background: #aa7bde;
}
.stage[data-stage="Negotiation"] .stage-dot {
  background: #e5b555;
}
.stage[data-stage="Won"] .stage-dot {
  background: #36a88c;
}
.stage[data-stage="Lost"] .stage-dot {
  background: #df8493;
}
.stage-value {
  font-size: 9px;
  color: var(--muted);
  margin: 0 0 14px 13px;
}
.deal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 14px;
  text-align: left;
  width: 100%;
  color: var(--ink);
  box-shadow: 0 2px 4px #00002;
  cursor: grab;
}
.deal-card:hover {
  border-color: #becffc;
  box-shadow: 0 4px 13px #2865ed0b;
}
.deal-card:active {
  cursor: grabbing;
}
.deal-tags {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 11px;
}
.tag {
  font-size: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-block;
  white-space: nowrap;
}
.tag.green {
  background: #e9f7f1;
  color: #138c66;
}
.tag.red {
  background: #fff0f2;
  color: #d14d63;
}
.tag.amber {
  background: #fff7e7;
  color: #a27723;
}
.tag.gray {
  background: var(--surface-alt);
  color: var(--muted);
}
.deal-card h3 {
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 6px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.deal-company {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 13px;
}
.deal-price {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.deal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  gap: 4px;
}
.deal-bottom .avatar {
  width: 23px;
  height: 23px;
  font-size: 8px;
}
.deal-owner {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
}
.deal-date {
  font-size: 8px;
  color: var(--muted);
}
.deal-date.overdue {
  color: var(--red);
}
.add-stage {
  width: 100%;
  background: none;
  border: 1px dashed var(--line);
  padding: 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
}
.add-stage:hover {
  color: var(--blue);
  border-color: var(--blue);
}
.stage-empty {
  padding: 22px 5px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 19px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-check {
  width: 17px;
  height: 17px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface);
  color: var(--green);
}
.task-row strong {
  font-size: 11px;
  font-weight: 550;
}
.task-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.task-row .tag {
  margin-left: auto;
}
.completed strong {
  text-decoration: line-through;
  color: var(--muted);
}
.progress-section {
  padding: 20px;
}
.progress-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0;
  font-size: 10px;
}
.progress-row strong {
  width: 82px;
  font-weight: 500;
}
.progress-track {
  flex: 1;
  background: var(--surface-alt);
  height: 6px;
  border-radius: 5px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 5px;
}
.progress-row span {
  width: 32px;
  text-align: right;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}
th {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 18px;
  font-weight: 550;
  white-space: nowrap;
}
td {
  padding: 17px 18px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
td strong {
  font-weight: 600;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  width: 30px;
  height: 30px;
  color: #adc0e0;
  margin-bottom: 10px;
}
.empty h3 {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty .btn {
  margin-top: 14px;
}
.onboarding {
  background: var(--blue-soft);
  padding: 17px 20px;
  border: 1px solid #d9e5ff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.onboarding strong {
  font-size: 12px;
}
.onboarding p {
  font-size: 10px;
  color: #738ab1;
  margin: 4px 0 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.card-body {
  padding: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  min-width: 0;
}
.field > span {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.field small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.form-error {
  padding: 12px;
  background: #fff0f2;
  color: #a43a49;
  font-size: 11px;
  border-radius: 6px;
  margin: 12px 0;
  line-height: 1.5;
}
.helper {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 13px;
  width: min(640px, calc(100% - 28px));
  max-height: 90vh;
  box-shadow: 0 25px 100px #101b3030;
}
dialog::backdrop {
  background: #0d172866;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.dialog-top .eyebrow {
  margin-bottom: 6px;
  font-size: 8px;
}
#dialogBody {
  padding: 23px 25px;
}
.dialog-wide {
  width: min(1080px, calc(100% - 28px));
}
.detail-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.detail-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.detail-metrics > div {
  background: var(--surface-alt);
  border-radius: 7px;
  padding: 14px;
}
.detail-metrics small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 6px;
}
.detail-metrics strong {
  font-size: 17px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.detail-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.invoice-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.invoice-controls {
  min-width: 0;
}
.invoice-preview {
  background: #f0f2f6;
  padding: 16px;
  border-radius: 8px;
  align-self: start;
  position: sticky;
  top: 0;
}
.invoice-sheet {
  background: #fff;
  color: #243247;
  padding: 28px;
  font-size: 10px;
  box-shadow: 0 5px 18px #00008;
  min-height: 540px;
  border-top: 5px solid #233d68;
}
.invoice-sheet[data-theme="modern"] {
  border-top: 7px solid #2865ed;
}
.invoice-sheet[data-theme="emerald"] {
  border-top: 7px solid #047857;
}
.invoice-sheet[data-theme="executive"] {
  border-top: 7px solid #44305b;
}
.invoice-sheet[data-theme="minimal"] {
  border: 0;
  box-shadow: none;
}
.invoice-brand {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.invoice-brand strong {
  font-size: 16px;
  letter-spacing: -0.5px;
}
.invoice-brand .inv-word {
  font-size: 20px;
  color: #233d68;
}
.invoice-sheet[data-theme="modern"] .inv-word {
  color: #2865ed;
}
.invoice-sheet[data-theme="emerald"] .inv-word {
  color: #047857;
}
.invoice-sheet[data-theme="executive"] .inv-word {
  color: #44305b;
}
.invoice-sheet p {
  color: #758095;
  font-size: 9px;
  line-height: 1.6;
}
.invoice-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0;
}
.invoice-sheet table {
  font-size: 9px;
}
.invoice-sheet th,
.invoice-sheet td {
  padding: 10px 3px;
  font-size: 8px;
  white-space: normal;
  background: none;
  border-color: #e8ecf1;
}
.invoice-sheet th {
  text-transform: none;
  color: #8190a5;
}
.inv-totals {
  margin: 16px 0 0 auto;
  width: 190px;
}
.inv-totals > div {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  margin: 10px 0;
}
.inv-totals .grand {
  font-size: 14px;
  font-weight: 700;
  border-top: 1px solid #e8ecf1;
  padding-top: 13px;
  color: #243c68;
}
.invoice-sheet[data-theme="modern"] .grand {
  color: #2865ed;
}
.invoice-sheet[data-theme="emerald"] .grand {
  color: #047857;
}
.invoice-sheet[data-theme="executive"] .grand {
  color: #44305b;
}
.invoice-sheet .payment-details {
  margin-top: 30px;
  border-top: 1px solid #e8ecf1;
  padding-top: 15px;
}
.line-item {
  display: grid;
  grid-template-columns: 1fr 60px 85px 25px;
  gap: 6px;
  margin-bottom: 9px;
}
.line-item input {
  width: 100%;
  padding: 8px;
  font-size: 10px;
}
.line-labels {
  display: grid;
  grid-template-columns: 1fr 60px 85px 25px;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
  margin: 5px 0 9px;
}
.theme-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.theme-option {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 9px;
  color: var(--muted);
}
.theme-option.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}
.theme-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 30px #0002;
  background: #13213c;
  color: #fff;
  font-size: 12px;
  z-index: 100;
  max-width: calc(100% - 30px);
  line-height: 1.5;
}
.toast.error {
  background: #a53e50;
}
.loading-state {
  padding: 100px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 9px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.search-results a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.search-results strong {
  font-size: 12px;
}
.search-results small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.filter-right {
  margin-left: auto;
}
.danger-zone {
  margin-top: 15px;
}
.email-message {
  padding: 16px;
  background: var(--surface-alt);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.file-label {
  font-size: 10px;
  color: var(--blue);
  margin: 12px 0;
}
.theme-dark {
  --bg: #111927;
  --surface: #182233;
  --surface-alt: #1e2b3e;
  --ink: #e2e9f7;
  --muted: #8191ac;
  --line: #2a374c;
  --blue-soft: #20365a;
  color-scheme: dark;
}
.theme-dark .invoice-preview {
  background: #243248;
}
.theme-dark .onboarding {
  border-color: #304a73;
}
.theme-dark .tag.green {
  background: #163c35;
}
.theme-dark .tag.red {
  background: #442a36;
}
.theme-dark .tag.amber {
  background: #413a2a;
}
@media (min-width: 1700px) {
  main {
    max-width: 1760px;
    width: 100%;
    margin: auto;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 214px;
  }
  .workspace-main {
    margin-left: 214px;
    width: calc(100% - 214px);
  }
  main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 17px;
  }
  .metric-value {
    font-size: 22px;
  }
  .search-launch kbd {
    display: none;
  }
  .invoice-editor {
    gap: 16px;
  }
  .invoice-sheet {
    padding: 22px;
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 200px;
  }
  .workspace-main {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
  .brand {
    font-size: 21px;
    padding: 0 4px;
  }
  .brand small {
    font-size: 6.5px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bottom-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .invoice-editor {
    grid-template-columns: 1fr;
  }
  .invoice-preview {
    position: static;
  }
  .search-launch {
    font-size: 0;
    padding: 8px;
  }
  .search-launch span {
    font-size: 19px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .heading-actions {
    padding-top: 0;
  }
  .breadcrumb > span {
    display: none;
  }
  .app-footer {
    font-size: 8px;
    padding: 12px 25px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 236px;
    box-shadow: 0 0 0 100vw #0d172866;
    visibility: hidden;
  }
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
  }
  .workspace-main {
    margin-left: 0;
    width: 100%;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 62px;
    padding: 0 16px;
  }
  .top-actions {
    gap: 9px;
  }
  .breadcrumb {
    margin-right: auto;
  }
  .breadcrumb strong {
    font-size: 11px;
  }
  main {
    padding: 24px 16px;
  }
  .page-heading {
    margin-bottom: 21px;
  }
  h1 {
    font-size: 25px;
  }
  .metrics {
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 22px;
  }
  .metric-detail {
    font-size: 8px;
  }
  .metric-label {
    font-size: 10px;
  }
  .toolbar {
    padding: 13px;
    gap: 8px;
  }
  .toolbar input {
    width: 100%;
  }
  .toolbar select {
    min-width: 100px;
    width: 145px;
  }
  .view-toggle {
    margin-left: 0;
  }
  .board-scroll {
    padding: 0 13px 13px;
  }
  .board {
    grid-template-columns: repeat(6, 240px);
  }
  .bottom-grid {
    margin-top: 17px;
  }
  .section-top {
    padding: 16px;
  }
  .app-footer {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .dialog-top {
    padding: 19px;
  }
  #dialogBody {
    padding: 19px;
  }
  .line-item {
    grid-template-columns: 1fr 50px 70px 22px;
  }
  .line-labels {
    grid-template-columns: 1fr 50px 70px 22px;
  }
  .onboarding {
    align-items: flex-start;
  }
  .settings-grid {
    gap: 16px;
  }
  .search-launch {
    display: none;
  }
  .top-avatar {
    width: 28px;
    height: 28px;
  }
  .section-top h3 {
    font-size: 12px;
  }
  .invoice-preview {
    padding: 10px;
  }
  .invoice-sheet {
    padding: 20px;
  }
  .dialog-wide {
    width: calc(100% - 16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.invoice-sheet[data-theme="classic"] .invoice-brand strong {
  font-family: Georgia, serif;
}
.invoice-sheet[data-theme="emerald"] .invoice-brand {
  border-bottom: 2px solid #047857;
  padding-bottom: 17px;
}
.invoice-sheet[data-theme="emerald"] .payment-details {
  border-top: 2px solid #047857;
}
.invoice-sheet[data-theme="executive"] {
  padding: 20px;
  min-height: 460px;
}
.invoice-sheet[data-theme="executive"] .invoice-meta {
  margin: 18px 0;
}
.invoice-sheet[data-theme="executive"] td {
  padding: 6px 3px;
}
.invoice-sheet[data-theme="minimal"] th,
.invoice-sheet[data-theme="minimal"] td {
  border: 0;
}
.invoice-sheet[data-theme="modern"] .invoice-brand {
  background: #2865ed;
  margin: -28px -28px 0;
  padding: 22px;
  color: #fff;
}
.invoice-sheet[data-theme="modern"] .invoice-brand p {
  color: #dce7ff;
}
.invoice-sheet[data-theme="modern"] .inv-word {
  color: #fff;
}

@media (max-width: 650px) {
  .metric-value {
    font-size: 20px;
  }
  .sidebar:not(.open) * {
    visibility: hidden !important;
  }
  .invoice-sheet[data-theme="modern"] .invoice-brand {
    margin: -20px -20px 0;
    padding: 18px;
  }
}


/* =========================================================
   CLASSY 3-COLOR LOGO SIDEBAR THEME
   - Primary Logo Blue: #1b43be
   - Accent Logo Orange: #ff9d00
   - Pure White / Canvas: #ffffff / #f8fafc
   ========================================================= */

.sidebar {
  width: 250px !important;
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  background-color: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 2px 0 12px rgba(27, 67, 190, 0.04) !important;
  padding: 28px 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 30 !important;
}

/* Floating Logo - NO BOX */
.sidebar .brand {
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 4px !important;
  margin-bottom: 28px !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
}

.sidebar .brand:hover {
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.92 !important;
}

.sidebar .brand img {
  height: 38px !important;
  width: auto !important;
  display: block !important;
}

/* Classy Workspace Switcher */
.sidebar .workspace-switch {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  margin: 0 0 24px 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: border-color 0.2s, background-color 0.2s !important;
}

.sidebar .workspace-switch:hover {
  border-color: #1b43be !important;
  background-color: #f0f5ff !important;
}

.sidebar .company-avatar {
  background: #1b43be !important;
  color: #ffffff !important;
  border-radius: 7px !important;
  border: none !important;
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  flex-shrink: 0 !important;
}

.sidebar .workspace-switch strong {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

.sidebar .workspace-switch small {
  color: #1b43be !important;
  font-weight: 600 !important;
  font-size: 10px !important;
}

/* Classy Nav Section Headers */
.sidebar .nav-section,
.sidebar .nav-label {
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  padding: 14px 10px 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.sidebar .nav-section::before,
.sidebar .nav-label::before {
  content: "" !important;
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  background-color: #ff9d00 !important;
  border-radius: 50% !important;
}

/* Classy Navigation Links */
.sidebar .nav-link,
.sidebar .nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-radius: 9px !important;
  margin: 3px 0 !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: all 0.15s ease-in-out !important;
  text-decoration: none !important;
  position: relative !important;
}

.sidebar .nav-link svg,
.sidebar .nav-item svg {
  stroke: #64748b !important;
  transition: stroke 0.15s !important;
}

/* Nav Link Hover State */
.sidebar .nav-link:hover,
.sidebar .nav-item:hover {
  background: #f0f5ff !important;
  color: #1b43be !important;
  border-color: #dbeafe !important;
  transform: none !important;
  box-shadow: none !important;
}

.sidebar .nav-link:hover svg,
.sidebar .nav-item:hover svg {
  stroke: #1b43be !important;
}

/* Active Nav Link - Elegant Blue Pill with Orange Accent Bar */
.sidebar .nav-link.active,
.sidebar .nav-item.active {
  background: #1b43be !important;
  color: #ffffff !important;
  border: 1px solid #1b43be !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(27, 67, 190, 0.25) !important;
  transform: none !important;
}

.sidebar .nav-link.active::before,
.sidebar .nav-item.active::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 6px !important;
  bottom: 6px !important;
  width: 4px !important;
  background-color: #ff9d00 !important;
  border-radius: 0 4px 4px 0 !important;
}

.sidebar .nav-link.active svg,
.sidebar .nav-item.active svg {
  stroke: #ffffff !important;
}

.sidebar .nav-count {
  background: #ff9d00 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  border-radius: 12px !important;
  padding: 2px 8px !important;
  box-shadow: none !important;
}

/* Classy Sidebar Bottom */
.sidebar .sidebar-bottom {
  margin-top: auto !important;
  padding-top: 16px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.sidebar .sidebar-note {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  padding: 12px !important;
  margin-bottom: 12px !important;
  box-shadow: none !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.sidebar .sidebar-note small {
  color: #64748b !important;
  font-weight: 500 !important;
}

.sidebar .live-dot,
.sidebar .local-dot {
  background-color: #ff9d00 !important;
  width: 7px !important;
  height: 7px !important;
  box-shadow: 0 0 0 2px #ffffff !important;
  display: inline-block !important;
  border-radius: 50% !important;
}

.sidebar .profile {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  padding: 8px 10px !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin-bottom: 8px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: border-color 0.2s, background-color 0.2s !important;
}

.sidebar .profile:hover {
  border-color: #1b43be !important;
  background-color: #f0f5ff !important;
}

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

.sidebar .profile small {
  color: #64748b !important;
  font-weight: 500 !important;
}

.sidebar .avatar {
  background: #1b43be !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  border: none !important;
  width: 30px !important;
  height: 30px !important;
  font-weight: 700 !important;
  display: grid !important;
  place-items: center !important;
}

.sidebar .signout {
  background: transparent !important;
  color: #dc2626 !important;
  border: 1px solid #fee2e2 !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  width: 100% !important;
  box-shadow: none !important;
  transition: all 0.15s !important;
  cursor: pointer !important;
}

.sidebar .signout:hover {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  transform: none !important;
}
