@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-600-greek.woff2') format('woff2');
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/manrope-800-greek.woff2') format('woff2');
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/manrope-800-latin.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --canvas: 255 255 255;
  --workspace: 255 255 255;
  --surface: 242 242 247;
  --elevated: 255 255 255;
  --inset: 242 242 247;
  --ink: 0 0 0;
  --secondary: 60 60 67;
  --tertiary: 142 142 147;
  --muted: 174 174 178;
  --line: 199 199 204;
  --line-soft: 229 229 234;
  --line-strong: 174 174 178;
  --contrast: 28 28 30;
  --contrast-ink: 255 255 255;
  --acid: 0 136 255;
  --acid-ink: 255 255 255;
  --info-soft: 230 239 251;
  --info-solid: 0 136 255;
  --info-ink: 36 75 132;
  --success-soft: 226 245 235;
  --success-solid: 52 199 89;
  --success-ink: 14 92 59;
  --warning-soft: 255 241 207;
  --warning-solid: 255 141 40;
  --warning-ink: 113 65 6;
  --danger-soft: 253 232 229;
  --danger-solid: 255 56 60;
  --danger-ink: 139 40 35;
  --r-control: 999px;
  --r-field: 14px;
  --r-card: 18px;
  --shadow-input: inset 0 0 0 1px rgb(24 24 27 / 0.035);
  --shadow-control: 0 1px 2px rgb(24 24 27 / 0.05);
  --shadow-card:
    0 1px 2px rgb(24 24 27 / 0.07), 0 10px 26px rgb(24 24 27 / 0.09),
    0 28px 56px rgb(24 24 27 / 0.045);
  --shadow-lift: 0 6px 16px rgb(24 24 27 / 0.09);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: #000;
  font:
    600 14px/1.5 Manrope,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 15px;
  font-weight: 800;
}
strong {
  font-weight: 800;
}
small,
.small {
  font-size: 11px;
}
p {
  line-height: 1.7;
}
.muted {
  color: #6c6c74;
}
.numeric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #0088ff;
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 12px;
  background: white;
  z-index: 1000;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  display: flex;
  min-height: 100dvh;
}
.side {
  position: sticky;
  top: 0;
  height: 100dvh;
  flex: 0 0 256px;
  width: 256px;
  background: #050505;
  color: #d0d0d4;
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
  overflow-x: hidden;
}
.brand {
  height: 90px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 27px;
  color: #fff;
}
.brand-mark {
  display: block;
  flex: none;
  width: 30px;
  height: 44px;
  object-fit: contain;
}
.brand-copy {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
}
.brand-copy > span {
  display: block;
  font-size: 8px;
  color: #929298;
  letter-spacing: 2.5px;
  margin-top: 3px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 19px 19px;
  border: 1px solid #29292b;
  border-radius: 9px;
  padding: 11px 10px;
  font-size: 10px;
  white-space: nowrap;
}
.workspace-label small {
  font-size: 7px;
  letter-spacing: 0.6px;
  border: 1px solid #434349;
  border-radius: 3px;
  padding: 2px 4px;
  margin-left: auto;
  color: #b9b9c1;
}
.workspace-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #0088ff;
}
.nav-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #76767f;
  margin: 20px 24px 10px;
  white-space: nowrap;
}
.nav-item {
  height: 42px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  white-space: nowrap;
  color: #b9b9c0;
  position: relative;
}
.nav-item:hover {
  background: #1c1c1e;
  color: white;
}
.nav-item.active {
  background: #fff;
  color: #050505;
  font-weight: 800;
}
.nav-item.active:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0088ff;
}
.nav-item .icon {
  width: 17px;
  height: 17px;
}
.nav-count {
  margin-left: auto;
  font-size: 9px;
  min-width: 20px;
  text-align: center;
  border-radius: 5px;
  background: #28282d;
  color: #fff;
  line-height: 20px;
}
.nav-item.active .nav-count {
  background: #e6effb;
  color: #244b84;
}
.side-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.collapse-sidebar {
  font-size: 10px;
  color: #888890;
}
.collapse-sidebar .icon {
  transform: rotate(180deg);
}
.user-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid #29292c;
  margin-top: 12px;
}
.user-panel > div {
  min-width: 0;
  flex: 1;
}
.user-panel strong {
  display: block;
  color: #fff;
  font-size: 11px;
}
.user-panel small {
  display: block;
  font-size: 9px;
  color: #8f8f97;
  margin-top: 3px;
}
.avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: #e6effb;
  color: #244b84;
}
.user-panel .avatar {
  background: #252529;
  color: #e3e3e8;
  border: 1px solid #424249;
}
.logout {
  border: 0;
  background: none;
  color: #9f9fa7;
  font-size: 21px;
  padding: 0 4px;
}
.workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 90px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #f0f0f3;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.topbar-left > h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e5e5ea;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 16px;
}
.circle:hover {
  background: #f2f2f7;
}
.global-search {
  width: 240px;
  height: 42px;
  border: 1px solid #e5e5ea;
  border-radius: 99px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  color: #787880;
  font-size: 10px;
}
.global-search kbd {
  margin-left: auto;
  border: 1px solid #dddde3;
  border-radius: 4px;
  width: 18px;
  font: 600 10px Manrope;
  text-align: center;
}
.global-search .icon {
  width: 15px;
  height: 15px;
}
.notification-button {
  position: relative;
}
.notification-button i {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0088ff;
  border: 1px solid white;
}
.user-avatar {
  background: #1c1c1e;
  color: white;
  width: 36px;
  height: 36px;
  /* Είναι <button>: μηδενίζουμε τα προεπιλεγμένα του browser. */
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.user-avatar:hover {
  transform: scale(1.06);
}
.user-avatar:focus-visible {
  outline: 2px solid #0088ff;
  outline-offset: 2px;
}
.mobile-menu,
.sidebar-scrim {
  display: none;
}
main#content {
  padding: 6px 28px 32px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  flex: 1;
  outline: none;
}
.page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.6px;
  font-weight: 800;
  line-height: 1.5;
  color: #77777f;
  margin-bottom: 10px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 9px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}
.btn.primary {
  background: #0088ff;
  color: #fff;
}
.btn.primary:hover {
  background: #0077e5;
}
.btn.secondary {
  background: #1c1c1e;
  color: #fff;
}
.btn.secondary:hover {
  background: #000;
}
.btn.outline {
  border-color: #c7c7cc;
  background: #fff;
  color: #1c1c1e;
}
.btn.outline:hover {
  background: #f5f5f8;
}
.btn .icon {
  width: 15px;
  height: 15px;
}
.btn.small-btn {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 10px;
}
.full-width {
  width: 100%;
}
.summary-strip {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, 1fr);
  margin: 0 0 32px;
  border: 1px solid #e5e5ea;
  border-left: 0;
}
.summary-strip > a,
.summary-strip > div {
  position: relative;
  padding: 17px 20px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #e5e5ea;
  min-width: 0;
}
.summary-strip > :last-child {
  border-right: 0;
}
.summary-strip .summary-total {
  background: #1c1c1e;
  color: white;
}
.summary-strip span {
  font-size: 8px;
  letter-spacing: 0.6px;
  font-weight: 800;
  color: #72727b;
}
.summary-strip strong {
  font-size: 27px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
  margin: 4px 0;
}
.summary-strip small {
  font-size: 9px;
  color: #82828c;
}
.summary-total span,
.summary-total small {
  color: #b7b7bf;
}
.summary-strip a:not(.summary-total):hover {
  background: #fafafd;
}
.summary-strip .selected:after {
  position: absolute;
  content: '';
  height: 3px;
  background: #0088ff;
  bottom: 0;
  left: 0;
  right: 0;
}
.compact-summary {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.compact-summary strong {
  font-size: 25px;
}
.danger-text {
  color: #b53031 !important;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.section-heading p {
  font-size: 10px;
  color: #75757f;
  margin-top: 5px;
}
.section-heading .eyebrow {
  margin: 0;
}
.text-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 11px;
  color: #0074d9;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.text-link:hover {
  text-decoration: underline;
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  margin-left: 7px;
  padding: 0 5px;
  border-radius: 5px;
  background: #f2f2f7;
  color: #686872;
  font-size: 10px;
  font-weight: 800;
}
.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 26px;
}
.activity-list {
  border-top: 2px solid #1c1c1e;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 0;
  border-bottom: 1px solid #e5e5ea;
}
.complete-button {
  width: 19px;
  height: 19px;
  border: 1px solid #c7c7cc;
  background: #fff;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.complete-button:hover {
  border-color: #0088ff;
}
.complete-button.checked {
  background: #e2f5eb;
  border-color: #a4d7bd;
  color: #0e5c3b;
}
.complete-button .icon {
  width: 13px;
  height: 13px;
}
.activity-info {
  padding: 0;
  display: block;
  border: 0;
  background: none;
  text-align: left;
  flex: 1;
  min-width: 0;
}
.activity-info strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-info span {
  display: block;
  margin-top: 5px;
  color: #777780;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-info b {
  margin: 0 7px;
  color: #b9b9bf;
}
.activity-date {
  font-size: 10px;
  min-width: 57px;
  text-align: right;
  line-height: 1.8;
}
.activity-date span,
.activity-date time {
  display: block;
  color: #777780;
  font-size: 9px;
}
.small-avatar {
  width: 26px;
  height: 26px;
  font-size: 9px;
  background: #f1f1f5;
  color: #565661;
  border: 1px solid #e5e5ea;
}
.row-open {
  width: 26px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: #a3a3ac;
  padding: 0;
  flex: none;
}
.row-open:hover {
  color: #0088ff;
}
.row-open .icon {
  width: 14px;
  height: 14px;
}
.is-done .activity-info strong {
  text-decoration: line-through;
  color: #8a8a93;
}
.focus-card {
  padding: 21px;
  border-radius: 18px;
  border: 1px solid #e5e5ea;
  box-shadow:
    0 2px 4px rgb(0 0 0 / 0.03),
    0 10px 30px rgb(0 0 0 / 0.04);
}
.focus-card .section-heading .icon {
  color: #82828c;
  width: 16px;
  height: 16px;
}
.focus-time {
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: -2px;
  font-weight: 800;
  display: block;
  margin: 24px 0 19px;
  font-variant-numeric: tabular-nums;
}
.focus-time small {
  font-size: 10px;
  color: #73737b;
  display: inline-block;
  letter-spacing: 0;
  margin-left: 10px;
  font-weight: 600;
}
.focus-card h3 {
  font-size: 17px;
}
.focus-card p {
  font-size: 11px;
  color: #73737c;
  margin-top: 5px;
}
.focus-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #7a7a83;
  margin: 20px 0;
}
.focus-card .btn {
  font-size: 10px;
  justify-content: space-between;
}
.quiet-card {
  padding: 27px 20px;
  background: #f7f7f9;
  border: 1px solid #ededf1;
  border-radius: 18px;
  margin-top: 18px;
}
.quiet-card h3 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  margin: 13px 0;
}
.quiet-card p {
  font-size: 11px;
  color: #767680;
  margin-bottom: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f2f2f7;
  color: #60606a;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 800;
  white-space: nowrap;
}
.badge.blue {
  background: #e6effb;
  color: #244b84;
}
.badge.green {
  background: #e2f5eb;
  color: #0e5c3b;
}
.badge.amber {
  background: #fff1cf;
  color: #714106;
}
.badge.red {
  background: #fde8e8;
  color: #8f2424;
}
.badge.purple {
  background: #f0e9ff;
  color: #563293;
}
.badge.cyan {
  background: #e1f3f5;
  color: #175c64;
}
.badge.slate {
  background: #eceff3;
  color: #3d4958;
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.list-toolbar h2 {
  font-size: 15px;
}
.inline-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 290px;
}
.inline-search > .icon {
  position: absolute;
  left: 13px;
  color: #8e8e93;
  width: 15px;
  height: 15px;
}
.inline-search input:not([type='hidden']) {
  padding: 10px 30px 10px 37px;
  border: 1px solid #c7c7cc;
  border-radius: 12px;
  height: 40px;
  font-size: 10px;
  width: 100%;
  background: white;
}
.search-submit {
  position: absolute;
  right: 10px;
  background: none;
  border: 0;
  color: #8e8e93;
  padding: 4px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 2px solid #1c1c1e;
  border-bottom: 1px solid #1c1c1e;
}
.register {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
.register th {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.35px;
  color: #85858e;
  padding: 13px 14px;
  border-bottom: 1px solid #c7c7cc;
}
.register td {
  padding: 15px 14px;
  border-bottom: 1px solid #e5e5ea;
  font-size: 11px;
}
.register tbody tr:last-child td {
  border-bottom: 0;
}
.register tbody tr:hover {
  background: #fafafd;
}
.register td:first-child,
.register th:first-child {
  padding-left: 0;
}
.register td:last-child,
.register th:last-child {
  padding-right: 4px;
}
.register td small {
  display: block;
  color: #85858e;
  font-size: 9px;
  margin-top: 5px;
}
.record-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 12px;
}
.record-link:hover strong {
  color: #0074d9;
}
.record-link strong {
  font-size: 12px;
  display: block;
}
.document-icon {
  width: 33px;
  height: 33px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #f2f2f7;
  color: #54545e;
  border-radius: 9px;
  font-size: 9px;
  flex: none;
  border: 1px solid #e5e5ea;
}
.document-icon {
  background: white;
}
.document-icon .icon {
  width: 17px;
  height: 17px;
}
.contacts-register .record-link {
  min-height: 38px;
  min-width: 140px;
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.register-toolbar,
.column-settings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.column-count {
  font-variant-numeric: tabular-nums;
  color: #63636d;
}
.erp-table-wrap {
  max-height: min(65vh, 720px);
  overflow: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #aeaeb2 #f2f2f7;
  scrollbar-width: auto;
}
.erp-table-wrap:focus-visible {
  outline: 2px solid #0088ff;
  outline-offset: 3px;
}
.erp-table-wrap .contacts-register {
  min-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.erp-table-wrap .contacts-register th,
.erp-table-wrap .contacts-register td {
  padding: 8px 14px;
  height: 54px;
  border-right: 1px solid #e5e5ea;
  vertical-align: middle;
  background: #fff;
  font-variant-numeric: tabular-nums;
}
.erp-table-wrap .contacts-register th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 42px;
  background: #f8f8fa;
  color: #54545e;
}
.erp-table-wrap .contacts-register th:first-child,
.erp-table-wrap .contacts-register td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  border-right-color: #c7c7cc;
}
.erp-table-wrap .contacts-register th:first-child {
  z-index: 3;
}
.erp-table-wrap .contacts-register tr:hover td {
  background: #f7f9fc;
}
.erp-table-wrap .erp-cell-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: left;
}
.erp-cell-edit {
  border: 0;
  padding: 0;
  min-height: 34px;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
}
.erp-cell-edit:hover {
  color: #0088ff;
}
.column-options {
  margin-top: 24px;
  border-top: 1px solid #c7c7cc;
}
.column-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5e5ea;
  padding: 12px 0;
}
.column-option > label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}
.column-option input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: #0088ff;
}
.column-option label > span {
  margin: 0;
  overflow-wrap: anywhere;
}
.column-option strong,
.column-option small {
  display: block;
}
.column-option strong {
  font-size: 12px;
}
.column-option small {
  color: #63636d;
  font-size: 10px;
  margin-top: 4px;
}
.column-move-buttons {
  display: flex;
  gap: 8px;
  flex: none;
}
.column-move-buttons .btn {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 17px;
}
@media (max-width: 600px) {
  .erp-table-wrap .contacts-register th:first-child,
  .erp-table-wrap .contacts-register td:first-child {
    position: static;
    left: auto;
  }
  .erp-table-wrap .contacts-register th:first-child {
    position: sticky;
    top: 0;
  }
  .register-toolbar > span {
    max-width: 190px;
    line-height: 1.6;
  }
}
.owner-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.subtle-action {
  font-size: 10px;
  border: 0;
  background: none;
  color: #777780;
  padding: 0;
}
.subtle-action:hover {
  color: #0088ff;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  color: #878791;
  font-size: 10px;
}
.empty-state {
  text-align: center;
  padding: 52px 20px;
  border-top: 1px solid #e5e5ea;
}
.empty-state h3 {
  font-size: 15px;
  margin: 12px 0 8px;
}
.empty-state p {
  font-size: 12px;
  color: #777780;
  margin-bottom: 18px;
}
.empty-state > .icon {
  width: 24px;
  height: 24px;
  color: #0088ff;
}
.segmented {
  display: flex;
  align-items: center;
  border: 1px solid #e5e5ea;
  padding: 3px;
  border-radius: 99px;
  background: #fff;
  white-space: nowrap;
}
.segmented a {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
  padding: 7px 13px;
  color: #777780;
  font-size: 10px;
}
.segmented .active {
  background: #1c1c1e;
  color: white;
}
.segmented .icon {
  width: 14px;
  height: 14px;
}
.toolbar-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}
.toolbar-filters > .app-select {
  min-width: 160px;
  margin: 0;
}
.toolbar-filters .app-select-control {
  font-size: 10px !important;
  min-height: 38px !important;
  border-radius: 99px !important;
}
.kanban-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  width: 100%;
  padding-bottom: 15px;
}
.kanban {
  display: flex;
  gap: 14px;
  min-height: 480px;
  width: max-content;
  min-width: 100%;
}
.kanban-column {
  width: 242px;
  flex: 1 0 242px;
  background: #f7f7f9;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #eeeef2;
}
.kanban-column > header {
  padding: 1px 2px 17px;
}
.kanban-column h2 {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0;
}
.kanban-column header .count {
  font-size: 8px;
  min-width: 17px;
  height: 17px;
  margin-left: auto;
  background: #eaeaf0;
}
.kanban-column header > span {
  font-size: 10px;
  color: #85858f;
  display: block;
  margin: 8px 0 0 12px;
}
.stage-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9c9ca5;
  flex: none;
}
.stage-dot.discussion {
  background: #0088ff;
}
.stage-dot.proposal {
  background: #9a88cb;
}
.stage-dot.deposit {
  background: #ff8d28;
}
.stage-dot.won {
  background: #34c759;
}
.stage-dot.lost {
  background: #ff383c;
}
.kanban-column.drag-over {
  background: #e6effb;
  border-color: #0088ff;
}
.deal-card {
  padding: 14px;
  background: #fff;
  border: 1px solid #e1e1e8;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: grab;
}
.deal-card.dragging {
  opacity: 0.45;
}
.deal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.deal-card .badge {
  font-size: 8px;
  padding: 3px 7px;
  border-radius: 5px;
}
.card-menu {
  background: none;
  border: 0;
  font-size: 10px;
  color: #9d9da6;
  letter-spacing: 1px;
  padding: 4px 0 4px 10px;
}
.deal-card-title {
  background: none;
  border: 0;
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}
.deal-card-title strong {
  font-size: 12px;
  display: block;
}
.deal-card-title span {
  font-size: 9px;
  color: #8b8b95;
  display: block;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deal-value {
  margin: 19px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.deal-value strong {
  font-size: 19px;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}
.deal-value > span {
  font-size: 8px;
  color: #92929b;
}
.deal-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #eeeef3;
}
.next-action {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 9px;
  color: #666672;
}
.next-action .icon {
  width: 12px;
  height: 12px;
}
.next-action.missing {
  color: #a26714;
}
.add-card {
  width: 100%;
  padding: 10px;
  background: none;
  border: 1px dashed #d9d9e2;
  border-radius: 8px;
  color: #93939d;
  font-size: 9px;
}
.add-card:hover {
  border-color: #0088ff;
  color: #0088ff;
}
.board-help {
  font-size: 9px;
  margin-top: 7px;
}
.inline-notice {
  font-size: 11px;
  padding: 13px 16px;
  border: 1px solid #e5e5ea;
  background: #f7f7fa;
  border-radius: 10px;
  margin: 0 0 20px;
  line-height: 1.8;
  color: #62626c;
}
.inline-notice a {
  color: #0074d9;
  margin-left: 8px;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 22px;
}
.calendar-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-navigation h2 {
  margin: 0 10px;
  font-size: 19px;
  text-transform: capitalize;
}
.calendar-navigation .circle {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.calendar-legend {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 9px;
  margin-bottom: 17px;
}
.calendar-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.calendar-legend > .muted {
  margin-left: auto;
  font-size: 9px;
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0088ff;
}
.legend-dot.meeting {
  background: #1c1c1e;
}
.legend-dot.meet {
  background: #9678c5;
}
.calendar-scroll {
  width: 100%;
  overflow-x: auto;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 720px;
  border-top: 2px solid #1c1c1e;
  border-left: 1px solid #e5e5ea;
}
.weekday {
  padding: 14px 8px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.5px;
  color: #83838e;
  border-right: 1px solid #e5e5ea;
  border-bottom: 1px solid #c7c7cc;
}
.calendar-cell {
  min-height: 126px;
  border-right: 1px solid #e5e5ea;
  border-bottom: 1px solid #e5e5ea;
  padding: 6px;
  min-width: 0;
}
.calendar-cell.outside {
  background: #fafafd;
}
.outside .day-number {
  color: #c0c0c9;
}
.day-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  font-size: 10px;
  background: none;
  margin: 0 0 5px auto;
}
.day-number:hover {
  background: #e6effb;
}
.current-day .day-number {
  background: #0088ff;
  color: white;
}
.current-day {
  background: #fcfdff;
}
.calendar-event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
  padding: 5px 6px;
  border: 0;
  border-left: 2px solid #0088ff;
  border-radius: 4px;
  background: #eaf3ff;
  font-size: 8px;
  color: #244b84;
  text-align: left;
}
.calendar-event b {
  font-size: 8px;
}
.calendar-event > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.calendar-event small {
  display: none;
  width: 100%;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-event.meeting {
  border-color: #1c1c1e;
  background: #efeff3;
  color: #454550;
}
.calendar-event.meet {
  border-color: #9678c5;
  background: #f0ecf8;
  color: #695089;
}
.calendar-event.is-done {
  opacity: 0.55;
  text-decoration: line-through;
}
.week-grid .calendar-cell {
  min-height: 480px;
}
.week-grid .calendar-event {
  padding: 9px 6px;
  margin: 9px 0;
}
.week-grid .calendar-event small {
  display: block;
}
.more-events {
  font-size: 8px;
  color: #6b6b75;
  display: block;
  padding: 4px;
}
.day-agenda {
  max-width: 1000px;
  margin-top: 30px;
}
.notification-list {
  max-width: 1000px;
  border-top: 2px solid #1c1c1e;
}
.notice {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e5e5ea;
  background: white;
  text-align: left;
}
.notice:hover {
  background: #fafafd;
}
.notice > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.notice strong {
  display: block;
  font-size: 13px;
  margin: 5px 0;
}
.notice small {
  display: block;
  font-size: 10px;
  color: #777782;
}
.notice-eyebrow {
  font-size: 8px;
  letter-spacing: 0.8px;
  color: #0088ff;
}
.notice.read .notice-eyebrow {
  color: #92929c;
}
.notice-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e6effb;
  color: #244b84;
}
.notice.read .notice-icon {
  background: #f2f2f7;
  color: #777782;
}
.notice > .icon {
  color: #9d9da6;
  width: 14px;
  height: 14px;
}
.settings-section {
  margin-top: 40px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 28px 22px;
  font-size: 8px;
  color: #9b9ba5;
}
.workspace-footer b {
  margin: 0 5px;
}
.record-drawer {
  padding: 0;
  margin: 0 0 0 auto;
  inset: 0 0 0 auto;
  width: 65vw;
  max-width: none;
  min-width: 650px;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-left: 1px solid #e5e5ea;
  border-radius: 0;
  box-shadow: -15px 0 60px rgb(0 0 0 / 0.12);
  overflow: hidden;
  background: white;
  color: #000;
}
.record-drawer::backdrop {
  background: rgb(0 0 0 / 0.32);
}
#drawer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.drawer-header {
  padding: 24px 28px;
  min-height: 101px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e5e5ea;
  flex: none;
}
.drawer-header .eyebrow {
  font-size: 8px;
  margin-bottom: 8px;
}
.drawer-header h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.7px;
}
.drawer-header .circle {
  width: 34px;
  height: 34px;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 0 28px 32px;
  overscroll-behavior: contain;
}
.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.opportunity-state-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.drawer-actions > .opportunity-state-actions,
.proposal-actions .opportunity-state-actions {
  align-items: center;
}
.soft1-workspace.crm-erp .record-workspace .opportunity-state-actions .btn.waiting-action {
  color: #1c1c1e;
  background: #f2b705;
  border-color: #d69f00;
}
.soft1-workspace.crm-erp .record-workspace .opportunity-state-actions .btn.waiting-action:hover {
  background: #dda600;
  border-color: #bd8e00;
}
.soft1-workspace.crm-erp .record-workspace .opportunity-state-actions .btn.danger-action {
  color: #fff;
  background: #cf2e2e;
  border-color: #b82525;
}
.soft1-workspace.crm-erp .record-workspace .opportunity-state-actions .btn.danger-action:hover {
  background: #b82525;
  border-color: #991d1d;
}
.btn.state-current,
.btn.state-current:disabled {
  color: #1c1c1e;
  background: #e9e9ee;
  border-color: #8e8e93;
  opacity: 1;
  cursor: default;
  box-shadow: inset 0 0 0 1px #8e8e93;
}
.soft1-workspace.crm-erp .record-workspace .opportunity-state-actions .btn.waiting-action.state-current,
.soft1-workspace.crm-erp .record-workspace .opportunity-state-actions .btn.waiting-action.state-current:disabled {
  color: #171200;
  background: #d99f00;
  border-color: #6d5000;
  box-shadow: inset 0 0 0 2px #6d5000;
}
.soft1-workspace.crm-erp .record-workspace .opportunity-state-actions .btn.danger-action.state-current,
.soft1-workspace.crm-erp .record-workspace .opportunity-state-actions .btn.danger-action.state-current:disabled {
  color: #fff;
  background: #a91f23;
  border-color: #641114;
  box-shadow: inset 0 0 0 2px #641114;
}
.drawer-section {
  padding: 24px 0;
  border-bottom: 1px solid #e5e5ea;
}
.drawer-section:last-child {
  border-bottom: 0;
}
.drawer-section > h3 {
  margin-bottom: 18px;
  font-size: 14px;
}
.drawer-section .section-heading h3 {
  font-size: 14px;
}
.drawer-section .section-heading p {
  font-size: 10px;
}
.drawer-section > .muted {
  font-size: 11px;
  margin-bottom: 15px;
}
.drawer-footer {
  padding: 18px 28px;
  border-top: 1px solid #e5e5ea;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex: none;
  min-height: 76px;
}
.drawer-footer > .small {
  font-size: 9px;
  max-width: 240px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.span-2 {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}
.field {
  min-width: 0;
}
label > span:not(.sr-only):not(.app-select):not(.app-date-field):not(.app-time-field) {
  display: block;
  margin-bottom: 6px;
}
.field > small {
  display: block;
  font-size: 9px;
  color: #7f7f89;
  margin-top: 7px;
  font-weight: 600;
}
.required {
  color: #0079e6;
  font-weight: 600;
}
input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='file']),
textarea,
select {
  background: #fff;
  border: 1px solid #c7c7cc;
  border-radius: 13px;
  min-height: 46px;
  padding: 10px 13px;
  color: #000;
  outline: none;
  font-size: 12px;
  width: 100%;
  font-weight: 600;
  box-shadow: none;
}
input:hover,
textarea:hover,
select:hover {
  border-color: #9898a2;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #0088ff;
  box-shadow: 0 0 0 3px rgb(0 136 255 / 0.1);
}
input::placeholder,
textarea::placeholder {
  color: #a2a2ac;
}
textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.7;
}
input[readonly] {
  background: #f8f8fa !important;
  color: #777782 !important;
}
.drawer-body .app-select-control {
  border: 1px solid #c7c7cc;
  border-radius: 13px;
  background: white;
  min-height: 46px;
  font-size: 12px;
  box-shadow: none;
}
.drawer-body .app-select,
.drawer-body .app-date-field,
.drawer-body .app-time-field {
  margin-top: 0;
}
.drawer-body .app-date-input,
.drawer-body .app-time-input {
  border-radius: 13px 0 0 13px !important;
  min-height: 46px !important;
}
.drawer-body .app-date-toggle,
.drawer-body .app-time-toggle {
  border-radius: 0 13px 13px 0 !important;
  min-height: 46px !important;
}
.form-error {
  font-size: 12px;
  color: #8b2823;
  background: #fde8e5;
  border: 1px solid #f0c3bd;
  border-radius: 10px;
  padding: 12px 15px;
  margin: 16px 0;
  line-height: 1.7;
}
.deal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f7f7fa;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 18px 0;
  gap: 0;
}
.deal-summary > div {
  padding: 0 18px;
  border-right: 1px solid #e5e5ea;
}
.deal-summary > div:last-child {
  border: 0;
}
.deal-summary span {
  font-size: 9px;
  color: #83838e;
  display: block;
}
.deal-summary strong {
  font-size: 21px;
  display: block;
  margin-top: 5px;
  letter-spacing: -0.5px;
}
.stage-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 12px;
  align-items: end;
}
.stage-form .btn {
  margin-bottom: 4px;
}
.form-notice {
  font-size: 12px;
  color: #1c5b3a;
  background: #e6f6ed;
  border: 1px solid #b7e0c8;
  border-radius: 10px;
  padding: 12px 15px;
  margin: 16px 0;
  line-height: 1.7;
}
.login-form .form-links {
  margin-top: 14px;
  font-size: 12px;
}
.login-form .form-links a {
  color: inherit;
}
.stage-form .form-error {
  grid-column: 1/-1;
}
.line-labels,
.line-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 100px 90px 75px 30px;
  align-items: center;
  gap: 10px;
}
.line-labels {
  font-size: 9px;
  color: #85858f;
  margin-bottom: 7px;
}
.line-row {
  margin-bottom: 10px;
}
.line-row input {
  font-size: 11px !important;
  border-radius: 10px !important;
  padding: 10px !important;
  min-width: 0;
}
.line-row .circle {
  width: 27px;
  height: 27px;
  font-size: 18px;
}
.field-hint {
  font-size: 9px;
  color: #85858f;
  line-height: 1.8;
  margin-top: 12px;
}
.line-total {
  margin-top: 20px;
  padding: 16px 0 0;
  border-top: 1px solid #e5e5ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: #75757f;
}
.line-total strong {
  font-size: 23px;
  color: #000;
  white-space: nowrap;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}
.detail-grid dt {
  font-size: 10px;
  color: #8b8b94;
}
.detail-grid dd {
  font-size: 12px;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #ededf2;
  background: none;
  width: 100%;
  text-align: left;
}
.timeline-item > span:not(.timeline-dot):first-of-type,
.timeline-item > span:nth-child(2) {
  flex: 1;
}
.timeline-item strong {
  font-size: 11px;
  display: block;
}
.timeline-item small {
  font-size: 9px;
  color: #888892;
  display: block;
  margin-top: 4px;
}
.timeline-item > span:last-child {
  flex: 0 !important;
  color: #93939d;
  font-size: 12px;
}
.timeline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0088ff;
  flex: none;
}
.timeline-dot.done {
  background: #34c759;
}
.timeline-notes {
  margin-top: 24px;
}
.timeline-notes article {
  border-left: 1px solid #dedee6;
  padding: 2px 0 20px 16px;
}
.timeline-notes article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}
.timeline-notes small {
  color: #93939d;
  font-size: 9px;
}
.timeline-notes p {
  font-size: 11px;
  color: #696974;
  margin-top: 6px;
  white-space: pre-wrap;
}
.drawer-section form > label {
  margin-bottom: 15px;
}
.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid #e5e5ea;
  font-size: 11px;
}
.receipt-row small {
  display: block;
  font-size: 9px;
  color: #85858f;
  margin-top: 5px;
}
.receipt-row > span {
  color: #85858f;
  max-width: 60%;
}
.next-step-link {
  margin-top: 22px;
}
.preserve-lines {
  white-space: pre-wrap;
  font-size: 12px;
  color: #75757f;
  margin: 12px 0 16px;
}
.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: center;
}
.checkbox-label input {
  accent-color: #0088ff;
  width: 17px;
  height: 17px;
}
.checkbox-label > span {
  margin: 0;
}
.proposal-actions {
  padding: 17px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e5e5ea;
  flex: none;
}
.proposal-actions .btn {
  font-size: 9px;
  padding: 8px 12px;
  min-height: 34px;
}
.proposal-hint {
  font-size: 9px;
  padding: 10px 28px;
  background: #fafafd;
  color: #83838e;
  flex: none;
}
.proposal-frame-wrap {
  flex: 1;
  min-height: 0;
  background: #e8e8ed;
}
.proposal-frame-wrap iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
}
.import-steps {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 24px 0 0;
  color: #93939e;
  font-size: 10px;
}
.import-steps .active {
  color: #0074d9;
}
.file-drop {
  border: 1px dashed #b7b7c2;
  border-radius: 14px;
  padding: 30px 20px;
  margin: 23px 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
  background: #fafafd;
  text-align: center;
}
.file-drop > span {
  font-size: 10px;
  color: #9696a1;
}
.file-drop .icon {
  width: 30px;
  height: 30px;
  color: #777781;
}
.file-drop input {
  font-size: 11px;
  max-width: 100%;
  margin-top: 8px;
}
#import-mapping .field {
  margin-bottom: 18px;
}
#import-preview {
  margin: 20px 0;
}
.global-search-field {
  display: flex;
  align-items: center;
  position: relative;
  margin: 25px 0 15px;
}
.global-search-field > .icon {
  position: absolute;
  left: 14px;
  color: #85858f;
}
.global-search-field input {
  padding-left: 43px !important;
}
.search-results h3 {
  font-size: 10px;
  color: #85858f;
  margin: 25px 0 12px;
}
.search-result {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #e5e5ea;
  background: white;
  padding: 13px 0;
  width: 100%;
  text-align: left;
}
.search-result > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.search-result strong {
  display: block;
  font-size: 12px;
}
.search-result small {
  display: block;
  font-size: 10px;
  color: #85858f;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result > span:last-child {
  color: #94949e;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: #1c1c1e;
  color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  z-index: 100;
  font-size: 12px;
  max-width: 90vw;
  display: none;
}
.toast.visible {
  display: block;
}
.record-drawer .toast {
  left: 50%;
}
.drawer-loading {
  padding: 50px 28px;
  font-size: 13px;
  color: #888892;
}
.is-loading main {
  opacity: 0.5;
  pointer-events: none;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.login-brand {
  background: #050505;
  color: #fff;
  padding: 55px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 100dvh;
}
.login-brand .brand-mark {
  width: 48px;
  height: 70px;
}
.login-brand h1 {
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: -1.8px;
  margin: 18px 0 22px;
}
.login-brand p:not(.eyebrow) {
  font-size: 12px;
  color: #92929d;
}
.login-brand small {
  font-size: 9px;
  color: #7c7c85;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-form > div {
  max-width: 345px;
  width: 100%;
}
.login-form h2 {
  font-size: 28px;
  margin-top: 25px;
}
.login-form p {
  font-size: 11px;
  color: #85858f;
  margin: 10px 0 30px;
}
.login-form form > label {
  margin-bottom: 20px;
}
.login-form .btn {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  justify-content: space-between;
  padding: 12px 20px;
}
.login-form .small {
  font-size: 10px;
  margin-top: 25px;
}
.error-page {
  padding: 80px 30px;
  max-width: 850px;
  margin: auto;
}
.dark-mark {
  filter: brightness(0);
}
.error-page h1 {
  margin: 30px 0;
  font-size: 25px;
}
.sidebar-collapsed .side {
  width: 72px;
  flex-basis: 72px;
}
.sidebar-collapsed .brand {
  padding: 0 24px;
}
.sidebar-collapsed .brand-mark {
  width: 24px;
  height: 36px;
}
.sidebar-collapsed .brand-copy,
.sidebar-collapsed .workspace-label,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-item > span,
.sidebar-collapsed .nav-count,
.sidebar-collapsed .user-panel > div,
.sidebar-collapsed .user-panel form {
  display: none;
}
.sidebar-collapsed .side nav {
  padding-top: 18px;
}
.sidebar-collapsed .nav-item {
  padding: 0 27px;
  height: 46px;
}
.sidebar-collapsed .collapse-sidebar .icon {
  transform: none;
}
.sidebar-collapsed .user-panel {
  padding: 20px 19px;
}
.sidebar-collapsed .side-bottom {
  padding-top: 30px;
}
@media (min-width: 1600px) {
  .today-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 35px;
  }
  .activity-row {
    padding: 22px 0;
  }
  .focus-card {
    padding: 25px;
  }
  .kanban-column {
    width: 250px;
    flex-basis: 250px;
  }
}
@media (max-width: 1200px) {
  .today-grid {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 19px;
  }
  .summary-strip > a,
  .summary-strip > div {
    padding: 16px 13px;
  }
  .summary-strip small {
    font-size: 8px;
  }
  .summary-strip span {
    font-size: 7px;
  }
  .global-search {
    width: 210px;
  }
  .calendar-toolbar {
    flex-wrap: wrap;
  }
  .activity-row {
    gap: 9px;
  }
  .activity-row .small-avatar {
    display: none;
  }
  .record-drawer {
    width: 76vw;
  }
  .drawer-footer > .small {
    max-width: 180px;
  }
  .stage-form {
    grid-template-columns: 1fr 1fr;
  }
  .stage-form .btn {
    justify-self: start;
  }
}
@media (max-width: 1023px) {
  .side,
  .sidebar-collapsed .side {
    position: fixed;
    left: 0;
    width: 256px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }
  .sidebar-open .side {
    transform: translateX(0);
  }
  .sidebar-open .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgb(0 0 0 / 0.35);
    z-index: 35;
  }
  .sidebar-collapsed .brand-copy,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .nav-item > span,
  .sidebar-collapsed .user-panel > div,
  .sidebar-collapsed .user-panel form {
    display: block;
  }
  .sidebar-collapsed .workspace-label {
    display: flex;
  }
  .sidebar-collapsed .brand {
    padding: 0 27px;
  }
  .sidebar-collapsed .nav-item {
    padding: 0 24px;
  }
  .sidebar-collapsed .user-panel {
    padding: 20px;
  }
  .collapse-sidebar {
    display: none;
  }
  .mobile-menu {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .topbar-left > h1 {
    font-size: 16px;
  }
  .topbar-tools {
    gap: 10px;
  }
  main#content {
    padding: 6px 18px 28px;
  }
  .workspace-footer {
    padding: 15px 18px;
  }
  .record-drawer {
    width: 85vw;
    min-width: 0;
  }
  .page-actions {
    margin: 16px 0;
  }
  .today-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .calendar-legend > .muted {
    display: none;
  }
}
@media (max-width: 760px) {
  .today-grid {
    grid-template-columns: 1fr;
  }
  .today-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .quiet-card {
    margin: 0;
  }
  .global-search {
    width: 38px;
    height: 38px;
    border: 0;
    padding: 10px;
  }
  .global-search > span,
  .global-search kbd {
    display: none;
  }
  .global-search .icon {
    width: 18px;
    height: 18px;
  }
  .summary-strip {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(135px, 1fr));
    margin-bottom: 26px;
  }
  .compact-summary {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
  }
  .list-toolbar {
    flex-wrap: wrap;
  }
  .inline-search {
    width: 100%;
  }
  .toolbar-filters {
    flex-wrap: wrap;
  }
  .toolbar-filters > .app-select {
    min-width: 135px;
    max-width: 170px;
  }
  .summary-strip strong {
    font-size: 26px;
  }
  .summary-strip span {
    font-size: 8px;
  }
  .calendar-navigation h2 {
    font-size: 16px;
  }
  .calendar-toolbar {
    gap: 20px;
  }
  .workspace-footer > span:last-child {
    display: none;
  }
  .login-brand {
    display: none;
  }
  .login-layout {
    display: block;
  }
  .login-form {
    min-height: 100dvh;
    padding: 30px;
  }
  .login-form > div {
    max-width: 400px;
  }
  .drawer-header {
    padding: 22px 20px;
  }
  .drawer-body {
    padding: 0 20px 25px;
  }
  .drawer-footer {
    padding: 15px 20px;
  }
  .line-labels,
  .line-row {
    grid-template-columns: minmax(110px, 1fr) 85px 75px 60px 25px;
    gap: 6px;
  }
  .proposal-actions {
    padding: 15px 20px;
  }
  .proposal-hint {
    padding: 10px 20px;
  }
}
@media (max-width: 680px) {
  .record-drawer {
    width: 100vw;
  }
  .drawer-header h2 {
    font-size: 19px;
  }
  .drawer-footer > .small {
    display: none;
  }
  .drawer-footer {
    justify-content: flex-end;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .deal-summary {
    grid-template-columns: 1fr 1fr;
  }
  .deal-summary > div:last-child {
    margin-top: 15px;
    grid-column: 1/-1;
    border-top: 1px solid #e5e5ea;
    padding-top: 13px;
  }
  .deal-summary > div:nth-child(2) {
    border: 0;
  }
  .deal-summary strong {
    font-size: 19px;
  }
  .line-items {
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .line-labels,
  .line-row {
    min-width: 480px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .stage-form {
    grid-template-columns: 1fr;
  }
  .drawer-actions .btn {
    font-size: 10px;
    padding: 8px 12px;
  }
  .proposal-actions {
    align-items: flex-start;
  }
  .proposal-actions .actions {
    width: 100%;
  }
  .import-steps {
    font-size: 8px;
    gap: 14px;
  }
  .line-total {
    font-size: 9px;
  }
  .line-total strong {
    font-size: 20px;
  }
}
@media (max-width: 440px) {
  .topbar-left > h1 {
    font-size: 14px;
    letter-spacing: -0.3px;
  }
  .topbar-tools {
    gap: 5px;
  }
  .notification-button {
    width: 34px;
    height: 34px;
  }
  .user-avatar {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .topbar-left {
    gap: 6px;
  }
  .today-aside {
    grid-template-columns: 1fr;
  }
  .activity-row {
    padding: 17px 0;
  }
  .activity-info strong {
    font-size: 11px;
  }
  .activity-info span {
    font-size: 9px;
  }
  .activity-date {
    font-size: 9px;
    min-width: 50px;
  }
  .activity-row .row-open {
    width: 15px;
  }
  .section-heading .text-link {
    font-size: 9px;
  }
  .section-heading p {
    font-size: 9px;
  }
  .calendar-navigation h2 {
    font-size: 14px;
    margin: 0 4px;
  }
  .calendar-navigation {
    gap: 5px;
  }
  .calendar-legend {
    gap: 14px;
  }
  .btn {
    font-size: 10px;
  }
  .calendar-navigation .btn {
    padding: 5px 9px;
  }
  .calendar-toolbar > .actions {
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Keep the reference controls inside the drawer on narrow viewports. */
.contact-queues {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 8px 0 16px;
}
.contact-queues a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: rgb(var(--secondary));
  border: 1px solid rgb(var(--line-soft));
  border-radius: var(--r-control);
  padding: 8px 12px;
  font-size: 12px;
  text-decoration: none;
}
.contact-queues a.active {
  color: rgb(var(--info-ink));
  background: rgb(var(--info-soft));
  border-color: rgb(var(--acid));
}
.contact-queues a:focus-visible {
  outline: 2px solid rgb(var(--acid));
  outline-offset: 2px;
}
.contact-note {
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lead-lists {
  margin-bottom: 20px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.lead-lists .count {
  margin-left: 6px;
}
.lead-lists .active {
  background: #0088ff;
}
@media (max-width: 600px) {
  .lead-lists {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .lead-lists a {
    flex-shrink: 0;
  }
}
.import-duplicates {
  margin: 12px 0 20px;
}
.import-duplicates .register {
  min-width: 520px;
}
.proposal-share {
  padding: 16px 28px;
  border-bottom: 1px solid #e5e5ea;
}
.proposal-share .actions {
  margin-top: 12px;
  flex-wrap: wrap;
}
.call-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  padding: 0;
  margin-bottom: 16px;
}
[data-call-next] {
  margin-top: 16px;
}
.call-outcomes legend {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
.call-outcomes .choice-pill:has(input:checked) {
  border-color: #0088ff;
  background: #eff6ff;
}
.filter-panel {
  margin: 18px 0 24px;
  border-bottom: 1px solid #e5e5ea;
  padding-bottom: 16px;
}
.filter-primary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-primary > .inline-search {
  flex: 1;
  min-width: 200px;
  width: auto;
}
.filter-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 16px 0;
  align-items: end;
}
.filter-options[hidden] {
  display: none;
}
.filter-options .field {
  margin: 0;
  min-width: 0;
}
.filter-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.quick-filters .badge {
  padding: 8px 12px;
}
.choice-field {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}
.choice-field legend {
  float: none;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
}
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  cursor: pointer;
  font-size: 11px;
}
.choice-pill:has(input:checked) {
  background: #e6effb;
  border-color: #0088ff;
}
.choice-pill input[type='checkbox'],
.choice-pill input[type='radio'] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
  accent-color: #0088ff;
  flex: none;
}
.choice-pill[hidden] {
  display: none;
}
.goals-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  border: 1px solid #e5e5ea;
  padding: 20px;
  margin: 0 0 24px;
  border-radius: 14px;
}
.goals-strip h2 {
  font-size: 14px;
}
.goal-progress {
  min-width: 170px;
  flex: 1;
  max-width: 290px;
}
.goal-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 11px;
}
.goal-progress strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.goal-progress strong small {
  font-size: 11px;
  color: #6c6c74;
}
.goal-progress progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f7;
  accent-color: #0088ff;
}
.goal-progress progress::-webkit-progress-bar {
  background: #f2f2f7;
}
.goal-progress progress::-webkit-progress-value {
  background: #0088ff;
  border-radius: 10px;
}
.goal-settings {
  border-top: 1px solid #e5e5ea;
  padding: 20px 0;
}
.goal-settings h3 {
  margin-bottom: 14px;
}
.goal-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.goal-inputs .field {
  margin: 0;
}
.history-toolbar {
  margin: 24px 0;
}
.history-toolbar .inline-search {
  width: 100%;
}
.lead-history {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lead-history li {
  display: flex;
  position: relative;
  gap: 18px;
  padding: 0 0 26px;
}
.lead-history li[hidden] {
  display: none;
}
.lead-history li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: #e5e5ea;
}
.lead-history li:last-child::before {
  display: none;
}
.history-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0088ff;
  margin-top: 5px;
  flex: none;
}
.history-dot.done {
  background: #228447;
}
.lead-history article {
  flex: 1;
  min-width: 0;
}
.history-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
}
.history-meta time {
  font-size: 10px;
  color: #6c6c74;
}
.lead-history p {
  margin: 8px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.calendar-event.outreach {
  background: #e6effb;
  border-left: 3px solid #0088ff;
}
@media (max-width: 760px) {
  .goal-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .goals-strip {
    gap: 16px;
    padding: 16px;
  }
  .goals-strip > div:first-child {
    width: 100%;
  }
  .goal-progress {
    max-width: none;
  }
  .filter-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-secondary > .text-link {
    margin-left: auto;
  }
}
@media (max-width: 440px) {
  .filter-options {
    grid-template-columns: 1fr;
  }
  .drawer-footer .actions {
    justify-content: flex-end;
  }
}
:root {
  --orbital-black: 0 0 0;
  --raised-black: 28 28 30;
}
#record-drawer .app-calendar.is-floating {
  width: min(352px, calc(100vw - 16px)) !important;
}
#record-drawer .app-time-popover.is-floating {
  width: min(336px, calc(100vw - 16px)) !important;
}
.drawer-back {
  display: block;
  margin: 18px 0 0;
  font-size: 10px;
}
.side {
  overflow-y: hidden;
}
.side nav {
  min-height: 0;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #444 #050505;
}
.side-bottom {
  margin-top: 0;
  padding-top: 15px;
  flex: none;
}
.sidebar-collapsed .side-bottom {
  padding-top: 15px;
}
.app-native-control {
  min-height: 0 !important;
}
.action-list {
  border-top: 2px solid rgb(var(--contrast));
}
.action-dashboard-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.action-dashboard-head .goals-strip {
  flex: 1;
  margin: 0;
  padding: 16px;
}
.action-dashboard-head > .btn {
  flex: none;
}
.action-dashboard .summary-strip {
  margin-bottom: 16px;
}
.action-dashboard .filter-panel {
  margin-top: 8px;
  margin-bottom: 16px;
}
.action-overdue {
  background: rgb(var(--danger-soft));
  color: rgb(var(--danger-ink));
}
.action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 180px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgb(var(--line-soft));
}
.action-main {
  min-width: 0;
  overflow-wrap: anywhere;
}
.action-main .record-link {
  font-size: 13px;
}
.action-meta,
.action-note {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.7;
}
.action-meta {
  color: rgb(var(--secondary));
}
.action-note {
  white-space: pre-wrap;
}
.action-origin {
  margin-top: 8px;
  text-align: left;
  font-size: 11px;
}
.action-when,
.action-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.action-when time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.action-controls .btn {
  width: 100%;
}
@media (max-width: 760px) {
  .action-dashboard-head {
    flex-wrap: wrap;
  }
  .action-dashboard-head .goals-strip {
    flex-basis: 100%;
  }
  .action-row {
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 16px;
  }
  .action-controls {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .action-controls .btn {
    width: auto;
  }
}
@media (max-width: 440px) {
  .action-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .action-when {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .action-controls {
    flex-wrap: wrap;
  }
}

/* Compact contact register: page controls stay put; only the grid scrolls on desktop. */
body:has(main[data-page='contacts']) .workspace-footer {
  display: none;
}
body:has(main[data-page='contacts']) .topbar {
  height: 64px;
  padding-inline: 16px;
}
main#content[data-page='contacts'] {
  max-width: none;
  min-height: 0;
  padding: 10px 16px 12px;
}
.contacts-erp {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.erp-controls {
  flex: none;
}
.erp-commandbar,
.erp-record-actions,
.erp-search-controls,
.erp-view-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.erp-commandbar {
  flex-wrap: wrap;
  padding: 0 0 10px;
}
.erp-record-actions,
.erp-view-actions {
  flex: none;
}
.erp-record-actions {
  padding-right: 10px;
  border-right: 1px solid rgb(var(--line-soft));
}
.erp-search-controls {
  flex: 1 1 220px;
}
.contacts-erp .btn {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 11px;
  gap: 6px;
}
.contacts-erp .btn > .icon {
  width: 15px;
  height: 15px;
}
.erp-search-controls .inline-search {
  flex: 1;
  min-width: 120px;
  width: auto;
}
.contacts-erp .erp-search-controls .inline-search input[type='search'] {
  height: 34px;
  min-height: 34px;
  padding: 6px 10px 6px 32px;
  border-radius: 11px;
  font-size: 11px;
}
.erp-phase-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-block: 1px solid rgb(var(--line-soft));
  padding: 5px 0;
}
.erp-phase-tabs > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 10px;
  color: rgb(var(--secondary));
  font-size: 11px;
  white-space: nowrap;
}
.erp-phase-tabs > a:hover {
  background: rgb(var(--surface));
}
.erp-phase-tabs > a.active {
  background: rgb(var(--acid));
  color: #fff;
}
.erp-phase-tabs > a.active .count {
  background: rgb(255 255 255 / 0.2);
  color: #fff;
}
.erp-viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 5px 0;
}
.contacts-erp .contact-queues {
  gap: 4px;
  padding: 0;
  min-width: 0;
}
.contacts-erp .contact-queues a {
  padding: 5px 10px;
  min-height: 30px;
  font-size: 10px;
  border-radius: 8px;
  border-color: transparent;
  gap: 6px;
}
.contacts-erp .contact-queues a.active {
  border-color: rgb(var(--line-soft));
}
.contacts-erp .quick-filters {
  flex-wrap: nowrap;
  flex: none;
  gap: 4px;
  margin: 0;
}
.contacts-erp .quick-filters .badge,
.erp-applied-filters .badge {
  padding: 6px 8px;
  min-height: 28px;
  font-size: 10px;
  white-space: nowrap;
}
.erp-applied-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0 8px;
  font-size: 10px;
  max-height: 70px;
  overflow-y: auto;
}
.erp-applied-filters > .text-link {
  margin-left: auto;
}
.contacts-erp .filter-options {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 12px;
  padding: 10px 0 14px;
  border-top: 1px solid rgb(var(--line-soft));
}
.contacts-erp .filter-options .field > span {
  font-size: 10px;
  margin-bottom: 4px;
}
.contacts-erp .filter-options .app-select-control,
.contacts-erp .filter-options input:not([type='hidden']) {
  min-height: 36px;
  height: 36px;
  font-size: 11px;
  border-radius: 11px;
}
.contacts-erp .filter-options .app-date-toggle {
  height: 36px;
  min-height: 36px;
  width: 36px;
  border-radius: 0 11px 11px 0;
}
.contacts-erp .filter-options .field input.app-date-input {
  min-height: 36px;
  height: 36px;
  border-radius: 11px 0 0 11px;
  padding: 0 10px;
}
.contacts-erp .filter-options .app-date-field {
  grid-template-columns: minmax(0, 1fr) 36px;
}
.contacts-erp .filter-options .app-select,
.contacts-erp .filter-options .app-date-field {
  margin-top: 0;
}
.contacts-erp .contact-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(300px, 60dvh, 760px);
  min-height: 0;
  min-width: 0;
}
.contacts-erp .erp-table-wrap {
  flex: 1;
  max-height: none;
  min-height: 0;
  border: 1px solid rgb(var(--line));
  border-top: 2px solid rgb(var(--contrast));
}
.contacts-erp .contacts-register th {
  height: 34px;
  padding: 7px 12px;
}
.contacts-erp .contacts-register td {
  height: 44px;
  padding: 5px 12px;
}
.contacts-erp .contacts-register .record-link {
  min-height: 32px;
}
.contacts-erp .contacts-register .btn {
  min-height: 32px;
  padding: 5px 10px;
}
.contacts-erp .contacts-register tbody tr:nth-child(even) td {
  background: #fafafb;
}
.contacts-erp .contacts-register tbody tr:hover td {
  background: #eff6ff;
}
.contacts-erp .contact-grid > .empty-state {
  position: absolute;
  inset: 35px 1px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  background: #fff;
  padding: 20px;
}
.contacts-erp .empty-state p {
  margin: 0;
}
.contacts-erp .table-footer {
  flex: none;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 44px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgb(var(--line));
  border-top: 0;
  background: #f8f8fa;
  color: #54545e;
}
.contacts-erp .table-footer .actions {
  gap: 8px;
}
.contacts-erp .table-footer .btn {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 10px;
}
.contacts-erp .table-footer button:disabled {
  cursor: not-allowed;
}
.erp-page-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (min-width: 1024px) and (min-height: 680px) {
  body:has(main[data-page='contacts']) {
    overflow: hidden;
  }
  body:has(main[data-page='contacts']) .app-shell {
    height: 100dvh;
    min-height: 0;
  }
  main#content[data-page='contacts'] {
    display: flex;
    flex-direction: column;
  }
  .contacts-erp {
    flex: 1;
    min-height: 0;
  }
  .contacts-erp .contact-grid {
    flex: 1;
    height: auto;
    min-height: 100px;
  }
}
@media (max-width: 1250px) {
  .contacts-erp .erp-scroll-hint {
    display: none;
  }
}
/* Expanded filters on short/narrow desktops must not push the pager off-screen. */
@media (max-width: 1199px), (max-height: 700px) {
  body:has(.contacts-erp [data-filter-toggle][aria-expanded='true']) {
    overflow: auto;
  }
  body:has(.contacts-erp [data-filter-toggle][aria-expanded='true']) .app-shell {
    height: auto;
    min-height: 100dvh;
  }
  .contacts-erp:has([data-filter-toggle][aria-expanded='true']) .contact-grid {
    flex: none;
    height: clamp(300px, 55dvh, 600px);
  }
}
@media (max-width: 760px) {
  .erp-commandbar {
    gap: 8px;
  }
  .erp-record-actions {
    flex: 1;
    padding: 0;
    border: 0;
  }
  .erp-search-controls {
    order: 3;
    flex-basis: 100%;
  }
  .erp-viewbar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .contacts-erp .contact-queues {
    width: 100%;
  }
  .contacts-erp .table-footer {
    justify-content: center;
  }
  .contacts-erp .filter-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  main#content[data-page='contacts'] {
    padding-inline: 10px;
  }
  .contacts-erp .erp-commandbar .btn {
    padding-inline: 9px;
    font-size: 10px;
  }
  .erp-record-actions,
  .erp-view-actions {
    gap: 4px;
  }
}
