.nav-item.nav-subitem {
  width: 100%;
  padding-left: 48px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  min-height: 38px;
}
.nav-item.nav-subitem.active {
  background: #edf2ff;
  color: #315db5;
}
.nav-subitem .nav-icon {
  width: 20px;
  display: inline-flex;
  align-items: center;
}
.cf-page {
  min-width: 0;
  color: #293946;
}
.cf-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.cf-header h2 {
  font-size: 20px;
  font-weight: 650;
  margin: 0;
}
.cf-views {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #e3e9ee;
  margin-bottom: 24px;
  overflow: auto;
}
.cf-views button {
  height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0;
  color: #75838e;
  white-space: nowrap;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.cf-views button.is-active {
  color: #216bb0;
  border-bottom-color: #216bb0;
  font-weight: 600;
}
.cf-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(125px, 1fr)) minmax(
      180px,
      1.6fr
    ) minmax(145px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding-bottom: 20px;
}
.cf-filters .cw-field {
  margin: 0;
}
.cf-filters .cw-field input,
.cf-filters .cw-field select {
  height: 36px;
  background: #fff;
}
.cf-reset {
  height: 36px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #7b8992;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.cf-reset:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cf-list-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: #87939c;
  margin: 0 0 14px;
}
.cf-list-meta strong {
  font-weight: 550;
  color: #4f6472;
}
.cf-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #e3e9ee;
  border-radius: 6px;
  background: #fff;
}
.cf-table {
  width: 100%;
  min-width: 1200px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.cf-table th {
  position: relative;
  padding: 12px 16px;
  text-align: left;
  background: #f5f8fa;
  font-size: 12px;
  color: #728491;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid #e3e9ee;
}
.cf-table td {
  padding: 16px;
  border-bottom: 1px solid #edf1f4;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.cf-table tr:last-child td {
  border-bottom: 0;
}
.cf-table tbody tr {
  transition: background 0.15s;
}
.cf-table tbody tr:hover {
  background: #fafcfd;
}
.cf-client-link {
  border: 0;
  background: transparent;
  color: #2a4151;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  padding: 0;
  overflow-wrap: anywhere;
}
.cf-client-link:hover {
  color: #216bb0;
}
.cf-client-link:disabled {
  opacity: 0.6;
}
.cf-secondary {
  display: block;
  color: #85929b;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.cf-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  background: #edf1f4;
  color: #6b7e8c;
  white-space: normal;
  text-align: left;
}
.cf-table button.cf-status {
  cursor: pointer;
}
.cf-status-active {
  background: #edf3fc;
  color: #326ca4;
}
.cf-status-waiting {
  background: #fff5dd;
  color: #8a6a23;
}
.cf-status-quote {
  background: #f2edf8;
  color: #74608f;
}
.cf-status-paused,
.cf-status-closed {
  background: #f0f1f2;
  color: #7d858b;
}
.cf-status-recovered {
  background: #eaf6f0;
  color: #24775d;
}
.cf-overdue {
  color: #b24750;
}
.cf-empty {
  padding: 50px 20px;
  text-align: center;
  color: #85939d;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cf-page > .list-pagination {
  margin-top: 14px;
}
.cf-plan-dialog {
  width: min(760px, 100%);
  height: min(820px, calc(100dvh - 48px));
}
.cf-plan-panel {
  min-width: 0;
}
.cf-plan-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.cf-plan-title h3 {
  font-size: 16px;
  margin: 0;
  overflow-wrap: anywhere;
}
.cf-plan-context {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #85929b;
  font-size: 12px;
  margin-bottom: 24px;
}
.cf-plan-warning {
  color: #9b762e;
  background: #fff9ec;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 20px;
}
.cf-plan-panel .cw-error,
.cf-plan-panel .cw-notice {
  margin: 12px 0;
}
.cf-plan-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.cf-page :focus-visible {
  outline: 2px solid #4386b2;
  outline-offset: 2px;
}
.cf-page * {
  letter-spacing: 0;
}
@media (max-width: 1300px) {
  .cf-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cf-search {
    grid-column: span 2;
  }
  .cf-reset {
    justify-self: end;
  }
}
@media (max-width: 760px) {
  .nav-item.nav-subitem { padding:10px 0;justify-content:center;font-size:0;min-height:40px; }
  .nav-subitem .nav-icon { margin:0;display:flex;justify-content:center; }
  .cf-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cf-search {
    grid-column: span 2;
  }
  .cf-header h2 {
    font-size: 18px;
  }
  .cf-views {
    gap: 20px;
    margin-bottom: 18px;
  }
  .cf-list-meta {
    gap: 8px;
  }
  .cf-plan-dialog {
    height: calc(100dvh - 20px);
  }
}
@media (max-width: 430px) {
  .cf-list-meta span {
    width: 100%;
  }
  .cf-plan-context {
    flex-direction: column;
    gap: 8px;
  }
  .cf-plan-title {
    flex-wrap: wrap;
  }
  .cf-plan-actions .cw-btn {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cf-table tbody tr {
    transition: none;
  }
}
