:root {
  color-scheme: dark;
}
.sales-nav {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
}
.sales-nav.active {
  background: #272218;
  border-left: 2px solid #d8ad68;
  color: #ead4af;
}
#view-threshold {
  --sales-accent: #d8ad68;
  --sales-muted: #aaa9a5;
  max-width: 1580px;
  margin: auto;
}
#view-threshold *,
.sales-dialog * {
  box-sizing: border-box;
}
.sales-eyebrow {
  color: #d8ad68;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sales-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 28px;
}
.sales-heading h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  letter-spacing: -1px;
  margin: 0 0 7px;
}
.sales-sub {
  color: #aaa9a5;
  font-size: 13px;
  line-height: 1.6;
}
.sales-btn {
  background: #d8ad68;
  color: #18140e;
  border: 1px solid #d8ad68;
  border-radius: 7px;
  padding: 10px 16px;
  font:
    600 12px "Inter",
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.sales-btn.secondary {
  background: transparent;
  color: #e4e1dc;
  border-color: #45443f;
}
.sales-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.sales-btn:focus-visible,
.sales-card:focus-visible {
  outline: 2px solid #f0d4a7;
  outline-offset: 4px;
}
.sales-stage-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(96px, 1fr));
  gap: 1px;
  background: #36332d;
  border: 1px solid #36332d;
  border-radius: 10px;
  overflow: auto;
  margin-bottom: 26px;
}
.sales-card {
  border: 0;
  border-top: 3px solid transparent;
  background: #181817;
  text-align: left;
  padding: 16px 13px;
  cursor: pointer;
  color: #aaa9a5;
  font:
    12px "Inter",
    sans-serif;
}
.sales-card strong {
  display: block;
  color: #eeeae2;
  font:
    500 25px "Space Grotesk",
    sans-serif;
  margin-bottom: 10px;
}
.sales-card.active {
  border-top-color: #d8ad68;
  background: #272218;
  color: #e9c994;
}
.sales-card:hover {
  background: #24221e;
}
.sales-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.sales-section-head h2 {
  font:
    500 17px "Space Grotesk",
    sans-serif;
}
.sales-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sales-input,
.sales-select,
.sales-textarea {
  background: #10100f;
  border: 1px solid #47443d;
  border-radius: 6px;
  padding: 10px 11px;
  color: #edeae4;
  font:
    13px "Inter",
    sans-serif;
  min-width: 0;
}
.sales-input:focus,
.sales-select:focus,
.sales-textarea:focus {
  outline: 2px solid #d8ad68;
  outline-offset: 1px;
}
.sales-table-wrap {
  overflow: auto;
  border: 1px solid #302e2a;
  border-radius: 9px;
}
.sales-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.sales-table th {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a4a19a;
  background: #191917;
  padding: 13px 16px;
  white-space: nowrap;
}
.sales-table td {
  border-top: 1px solid #292722;
  padding: 17px 16px;
  font-size: 12px;
  color: #ddd9d1;
  vertical-align: top;
  line-height: 1.5;
}
.sales-table td:first-child {
  min-width: 230px;
}
.sales-table .sales-open {
  border: 0;
  padding: 0;
  color: #f0e8db;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font:
    500 14px "Inter",
    sans-serif;
  line-height: 1.5;
}
.sales-table .sales-open:hover {
  color: #e4bb7c;
  text-decoration: underline;
}
.sales-small {
  display: block;
  color: #a7a39a;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.5;
}
.sales-pill {
  display: inline-block;
  color: #e1c49a;
  background: #282219;
  border: 1px solid #4a3e2b;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  white-space: nowrap;
}
.sales-overdue {
  color: #f2a39b;
}
.sales-empty {
  padding: 52px 24px;
  text-align: center;
  color: #a7a39a;
  line-height: 1.8;
}
.sales-empty strong {
  display: block;
  font-size: 18px;
  color: #e3dfd7;
  font-weight: 500;
  margin-bottom: 6px;
}
.sales-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
  color: #a7a39a;
  gap: 10px;
}
.sales-message {
  color: #f2b5a9;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 0;
  min-height: 22px;
}
.sales-dialog {
  position: fixed;
  margin: 0 0 0 auto;
  inset: 0;
  width: min(680px, 100%);
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  background: #181817;
  border: 0;
  border-left: 1px solid #494238;
  color: #eeebe5;
  padding: 0;
}
.sales-dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(2px);
}
.sales-dialog header {
  padding: 24px 28px;
  border-bottom: 1px solid #39352f;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.sales-dialog h2 {
  font:
    500 24px "Space Grotesk",
    sans-serif;
  margin-bottom: 7px;
}
.sales-dialog form {
  padding: 24px 28px;
}
.sales-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.sales-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #c7c2b9;
  font-size: 12px;
}
.sales-field.wide {
  grid-column: 1/-1;
}
.sales-field small {
  color: #aaa49a;
  font-size: 11px;
  line-height: 1.6;
}
.sales-field textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.6;
}
.sales-divider {
  grid-column: 1/-1;
  border: 0;
  border-top: 1px solid #36322c;
  margin: 7px 0;
}
.sales-grid h3 {
  grid-column: 1/-1;
  font:
    500 16px "Space Grotesk",
    sans-serif;
}
.sales-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.sales-company-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 190px;
  overflow: auto;
}
.sales-result {
  text-align: left;
  white-space: normal;
}
.sales-company-selected {
  padding: 13px;
  background: #252117;
  border: 1px solid #695332;
  border-radius: 7px;
  color: #ead4af;
}
.sales-history {
  padding: 0 28px 25px;
}
.sales-history h3 {
  font-size: 14px;
  margin-bottom: 12px;
}
.sales-history li {
  font-size: 12px;
  color: #b3ada3;
  line-height: 1.7;
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px solid #353129;
}
.sales-history strong {
  color: #e8dece;
  font-weight: 500;
}
.sales-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #2a2722;
  color: #a19a8d;
  font-size: 11px;
  line-height: 1.7;
}
@media (max-width: 800px) {
  .sales-heading {
    align-items: flex-start;
  }
  .sales-heading h1 {
    font-size: 25px;
  }
  .sales-grid {
    grid-template-columns: 1fr;
  }
  .sales-stage-strip {
    grid-template-columns: repeat(9, 125px);
  }
  #app:has(#view-threshold:not([style*="display: none"])) .sidebar {
    width: 172px;
  }
  #app:has(#view-threshold:not([style*="display: none"])) .main {
    margin-left: 172px;
    padding: 20px 16px;
  }
}
@media (max-width: 550px) {
  #app:has(#view-threshold:not([style*="display: none"])) .sidebar {
    position: relative;
    width: 100%;
    max-height: 160px;
  }
  #app:has(#view-threshold:not([style*="display: none"])) .main {
    margin-left: 0;
  }
  .sales-heading {
    flex-direction: column;
  }
  .sales-dialog form,
  .sales-dialog header {
    padding: 20px;
  }
  .sales-input {
    max-width: 100%;
  }
}
.sales-dialog [hidden] {
  display: none !important;
}
.calendar-status {
  margin: -12px 0 25px;
}
.calendar-panel {
  padding: 0 28px 28px;
  border-bottom: 1px solid #353129;
}
.calendar-panel h3 {
  font-size: 16px;
  margin-top: 0;
}
.calendar-meeting {
  border: 1px solid #47443d;
  border-radius: 8px;
  padding: 18px;
  margin: 16px 0;
}
.calendar-meeting p {
  font-size: 13px;
}
.calendar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.calendar-actions a {
  text-decoration: none;
}
.calendar-history {
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: #b3ada3;
}
.calendar-history li {
  margin-top: 12px;
}
.calendar-picker {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.calendar-picker label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.calendar-result {
  display: block;
  width: 100%;
  white-space: normal;
  text-align: left;
  margin-top: 8px;
}

.calendar-review-button {
  margin-left: 12px;
}
.calendar-review {
  padding: 24px;
  width: min(760px, calc(100vw - 32px));
}
.calendar-review label {
  display: block;
  margin: 12px 0;
}
.calendar-review .sales-input {
  width: 100%;
  margin-top: 6px;
}
.calendar-review .sales-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
