.followups-mode .menu-bar,
.followups-mode .toolbar {
  display: none;
}
.followups-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 10px;
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
  font-size: 11px;
  font-weight: 550;
  color: var(--green);
  background: var(--paper);
}
.followups-link .icon {
  width: 16px;
}
.followups-link > .icon:last-child {
  margin-left: auto;
  width: 12px;
}
.followups-link:hover,
.followups-link.active {
  background: var(--green-soft);
  border-color: #bdd3c0;
}
.followups-view {
  height: 100%;
  overflow: auto;
  padding: 32px 35px;
  background: var(--panel);
}
.f-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
}
.f-heading h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  font-weight: 550;
  margin: 12px 0 8px;
}
.f-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.f-heading-actions {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}
.f-heading-actions .button {
  font-size: 11px;
  padding: 10px 12px;
}
.f-heading-actions .icon {
  width: 15px;
}
.f-stats {
  margin-top: 24px;
}
.f-stats .stat-card {
  padding: 16px 18px;
}
.f-stats .stat-card strong {
  font-size: 27px;
}
.f-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-right: 16px;
}
.f-filter-bar .admin-tabs {
  border-bottom: 0;
  flex: 1;
}
.f-filters {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.f-filters .sidebar-search {
  flex: 1;
  min-width: 200px;
}
.f-filters select {
  font-size: 11px;
  padding: 8px 10px;
  max-width: 200px;
}
.f-list .table-wrap {
  max-height: none;
}
.f-list table {
  white-space: nowrap;
}
.f-list th {
  font-size: 8px;
  padding: 13px 16px;
}
.f-list td {
  padding: 16px;
}
.f-client-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.f-client-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
  color: var(--green);
}
.f-window {
  display: inline-flex;
  align-items: center;
  font-size: 8px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
  margin-top: 6px;
}
.f-window.inside {
  color: #477c4d;
  background: #edf5e8;
  border-color: #d6e5cd;
}
.f-window.stop,
.badge.red {
  color: #a35c4b;
  background: #fbefeb;
  border-color: #eed6ce;
}
.f-location-source {
  color: #a6af9b;
  font-size: 8px;
}
.f-overdue {
  color: #b27b42 !important;
}
.f-list-footnote {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  margin: 17px 0;
  line-height: 1.7;
}
.f-list-footnote .icon {
  width: 13px;
  height: 13px;
}
.f-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 55px 20px 65px;
}
.f-empty h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  font-weight: 500;
  margin: 22px 0 4px;
}
.f-empty p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 390px;
}
.f-empty .button {
  margin-top: 15px;
}
.f-empty .empty-symbol .icon {
  height: 30px;
  width: 30px;
}
.f-modal {
  width: 660px;
}
.f-modal #modal-body {
  max-height: 63dvh;
}
.f-modal label {
  margin-bottom: 16px;
}
.f-modal .form-grid label {
  margin-bottom: 0;
}
.f-modal textarea,
.f-activity-card textarea {
  width: 100%;
  display: block;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.7;
  font-size: 12px;
  outline: 0;
}
.f-modal textarea:focus,
.f-activity-card textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #26745612;
}
.f-phone-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--green-soft);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--green);
  font-size: 10px;
  line-height: 1.8;
  margin: 0 0 17px;
}
.f-phone-hint .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.f-form-section {
  background: var(--panel);
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 5px 0 20px;
}
.f-form-section .small-label {
  display: block;
  font-size: 8px;
  margin-bottom: 15px;
}
.f-form-section small {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
}
.f-days {
  display: flex;
  gap: 13px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.f-days label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 400;
  margin: 0;
}
.f-days input {
  display: inline-block;
  margin: 0;
}
.f-back {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  margin: 0 0 23px;
  padding: 0;
}
.f-back .icon {
  width: 13px;
}
.f-owner-caption {
  font-size: 11px;
}
.f-profile-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.f-client-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
  background: var(--paper);
}
.f-profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--green);
  font-size: 15px;
  font-weight: 500;
}
.f-client-card h2 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 15px 0 4px;
  overflow-wrap: anywhere;
}
.f-client-card > p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.8;
}
.f-client-card dl {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 5px;
}
.f-client-card dt {
  font-size: 9px;
  color: var(--muted);
  margin-top: 20px;
}
.f-client-card dd {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.6;
}
.f-client-card dd small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.f-client-card dd a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
}
.f-client-card dd .icon {
  width: 13px;
}
.f-profile-clock {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.f-extra-notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.f-client-card .f-location-note {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 9px;
  margin: 20px 0 0;
}
.f-location-note .icon {
  width: 12px;
  height: 12px;
  margin-right: 3px;
}
.f-profile-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.f-activity-card,
.f-timeline-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  overflow: hidden;
}
.f-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.f-card-heading h2 {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.25px;
  margin: 0;
}
.f-card-heading > span {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.f-card-heading .icon {
  height: 12px;
  width: 12px;
  margin-right: 4px;
}
.f-activity-card form {
  padding: 21px 22px;
}
.f-activity-card label {
  margin-bottom: 17px;
  font-size: 10px;
}
.f-activity-card .form-grid label {
  margin-bottom: 0;
}
.f-activity-card input,
.f-activity-card select {
  padding: 10px;
  font-size: 11px;
}
.f-activity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
.f-activity-footer span {
  color: var(--muted);
  font-size: 9px;
  max-width: 240px;
  line-height: 1.8;
}
.f-activity-footer .button {
  font-size: 11px;
  padding: 9px 11px;
}
.f-next-hint {
  font-size: 9px;
  color: var(--muted);
  margin: 0;
}
.f-timeline {
  padding: 23px 22px;
}
.f-timeline-item {
  display: flex;
  gap: 13px;
  position: relative;
  padding-bottom: 23px;
}
.f-timeline-item:last-child {
  padding-bottom: 0;
}
.f-timeline-item:before {
  content: "";
  position: absolute;
  width: 1px;
  background: var(--line);
  top: 31px;
  bottom: 0;
  left: 14px;
}
.f-timeline-item:last-child:before {
  display: none;
}
.f-event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #91a483;
  background: var(--panel);
  z-index: 1;
}
.f-event-icon.call {
  background: var(--green-soft);
  color: var(--green);
}
.f-event-icon .icon {
  width: 13px;
  height: 13px;
}
.f-timeline-item > div {
  flex: 1;
  min-width: 0;
}
.f-event-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
  flex-wrap: wrap;
}
.f-event-top strong {
  font-weight: 550;
  font-size: 11px;
}
.f-event-top time {
  font-size: 9px;
  color: var(--muted);
}
.f-timeline-item p {
  font-size: 11px;
  color: var(--ink);
  line-height: 1.8;
  margin: 8px 0 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.f-timeline-item small {
  font-size: 9px;
  color: var(--muted);
}
.dark .f-window.inside {
  background: #304735;
  color: #a3c893;
  border-color: #425a3e;
}
.dark .f-window.stop,
.dark .badge.red {
  background: #4a342d;
  color: #e5b5a5;
  border-color: #6f4d3e;
}
.dark .f-overdue {
  color: #dfb282 !important;
}
@media (max-width: 1180px) {
  .f-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .f-profile-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 15px;
  }
  .f-client-card {
    padding: 18px;
  }
  .f-card-heading {
    padding: 16px;
  }
  .f-activity-card form {
    padding: 17px;
  }
  .f-card-heading > span {
    display: none;
  }
  .f-activity-footer {
    align-items: flex-end;
  }
  .f-activity-footer span {
    max-width: 140px;
  }
  .followups-view {
    padding: 28px 24px;
  }
  .f-stats {
    gap: 10px;
  }
  .f-stats .stat-card {
    padding: 14px;
  }
  .f-stats .stat-card span {
    font-size: 9px;
  }
}
@media (max-width: 850px) {
  .f-profile-grid {
    grid-template-columns: 1fr;
  }
  .f-client-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 17px;
  }
  .f-client-card dt {
    grid-column: 1;
    margin: 15px 0 0;
  }
  .f-client-card dd {
    grid-column: 2;
    margin: 15px 0 0;
  }
  .f-client-card .f-location-note {
    display: none;
  }
  .f-profile-avatar {
    float: left;
    width: 40px;
    height: 40px;
    margin-right: 13px;
  }
  .f-client-card h2 {
    margin-top: 0;
  }
  .f-client-card > p {
    margin-bottom: 5px;
  }
  .f-heading h1 {
    font-size: 25px;
  }
  .f-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .followups-mode .sidebar {
    top: 55px;
  }
  .followups-view {
    padding: 23px 14px;
  }
  .f-heading h1 {
    font-size: 25px;
  }
  .f-heading p {
    font-size: 11px;
  }
  .f-heading-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .f-heading-actions .button {
    flex: 1;
    font-size: 10px;
    padding: 10px;
  }
  .f-filters {
    padding: 13px;
    gap: 8px;
  }
  .f-filters .sidebar-search {
    flex-basis: 100%;
  }
  .f-filters select {
    flex: 1;
    max-width: none;
    width: 45%;
    font-size: 10px;
  }
  .f-list .admin-tabs {
    padding: 0 13px;
    gap: 17px;
  }
  .f-list .admin-tabs button {
    font-size: 9px;
  }
  .f-filter-bar {
    padding-right: 8px;
  }
  .f-stats .stat-card {
    padding: 15px;
  }
  .f-stats .stat-card span {
    font-size: 10px;
  }
  .f-stats {
    gap: 10px;
    margin: 18px 0;
  }
  .f-empty {
    padding: 40px 15px;
  }
  .f-empty h2 {
    font-size: 19px;
  }
  .f-list-footnote {
    align-items: flex-start;
    font-size: 9px;
  }
  .f-profile-grid {
    gap: 16px;
  }
  .f-activity-card .form-grid,
  .f-modal .form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .f-activity-card .form-grid label {
    margin: 0;
  }
  .f-activity-footer > span {
    display: none;
  }
  .f-activity-footer .button {
    width: 100%;
  }
  .f-timeline {
    padding: 18px 15px;
  }
  .f-owner-caption {
    display: block;
    margin-top: 5px;
  }
  .f-phone-hint {
    font-size: 10px;
  }
  .f-days {
    gap: 12px;
  }
}

.f-client-cell{text-align:left;padding:0}.f-client-cell:hover strong{color:var(--green);text-decoration:underline}
