.sidebar {
  overflow-y: auto;
}

.microsoft-mail-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 0 0 17px;
  padding: 14px 16px;
  border: 1px solid #d8e3df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 57, 49, .05);
}

.microsoft-mail-card.connected {
  border-color: #b9ddd1;
  background: #f4fbf8;
}

.microsoft-mail-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f35325 0 48%, #81bc06 48% 52%, #05a6f0 52% 76%, #ffba08 76%);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.microsoft-mail-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.microsoft-mail-card small {
  color: #397264;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.microsoft-mail-card strong {
  color: var(--text);
  font-size: 14px;
}

.microsoft-mail-card > div > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
}

.microsoft-mail-card button {
  white-space: nowrap;
}

.microsoft-send-note {
  border-color: #c8e4da;
  background: #f3faf7;
}

.order-email-recipient-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 2px 0 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f4f7f6;
}

.order-email-recipient-list small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.order-email-recipient-list span {
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

.microsoft-order-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eaf5ff;
  color: #1e3a5f;
  font-size: 13px;
  line-height: 1.5;
}

.microsoft-order-note span {
  color: #48677f;
}

body.dark .microsoft-mail-card {
  border-color: #31554e;
  background: #17342e;
}

body.dark .microsoft-mail-card.connected {
  border-color: #356e5e;
  background: #153c33;
}

body.dark .order-email-recipient-list {
  background: #193a33;
}

body.dark .microsoft-order-note {
  background: #193749;
  color: #d9efff;
}

body.dark .microsoft-order-note span {
  color: #a9c9de;
}

@media (max-width: 700px) {
  .microsoft-mail-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 13px;
  }

  .microsoft-mail-card button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

nav {
  gap: 15px;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group-label {
  color: rgba(234, 244, 241, .48);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  padding: 0 13px 5px;
}

.welcome-strip {
  align-items: center;
  background: linear-gradient(120deg, #153e38, #267367);
  border-radius: 20px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 25px 27px;
  position: relative;
}

.welcome-strip::after {
  background: rgba(255, 255, 255, .06);
  border-radius: 50%;
  content: "";
  height: 210px;
  position: absolute;
  right: 100px;
  top: -130px;
  width: 210px;
}

.welcome-strip > * {
  position: relative;
  z-index: 1;
}

.welcome-strip span {
  color: #d5a84d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.welcome-strip h2 {
  font-size: 25px;
  margin: 7px 0 4px;
}

.welcome-strip p {
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  margin: 0;
}

.welcome-strip .primary {
  background: #d5a84d;
  color: #173f3a;
}

.partner-dashboard-grid {
  grid-template-columns: 1.15fr 1fr;
}

.attention-list {
  display: grid;
  gap: 8px;
}

.attention-partner {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  padding: 9px;
  text-align: left;
}

.attention-partner:hover {
  background: var(--surface2);
  border-color: var(--line);
}

.attention-partner strong,
.attention-partner small {
  display: block;
}

.attention-partner small {
  color: var(--muted);
  margin-top: 3px;
}

.attention-partner em {
  color: var(--danger);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.partner-overview {
  margin-top: 17px;
}

.partner-mini-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.partner-mini-card {
  background: var(--surface2);
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  padding: 14px;
  text-align: left;
  transition: transform .18s, border-color .18s;
}

.partner-mini-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.partner-mini-card > div:first-child,
.partner-mini-card > div:last-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.partner-mini-card > strong,
.partner-mini-card > small {
  display: block;
}

.partner-mini-card > strong {
  font-size: 14px;
  margin-top: 12px;
}

.partner-mini-card > small {
  color: var(--muted);
  margin: 3px 0 13px;
}

.partner-mini-card > div:last-child {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  padding-top: 10px;
}

.partner-toolbar > span {
  color: var(--muted);
  font-size: 12px;
}

.partner-card-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 232px;
  padding: 13px;
}

.partner-card-head {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto;
}

.partner-card-head > div {
  min-width: 0;
}

.partner-card-head .avatar {
  height: 33px;
  width: 33px;
}

.partner-card-head strong,
.partner-card-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-card-head small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.partner-card-head .tag {
  font-size: 9px;
  padding: 4px 7px;
}

.partner-key-account {
  align-items: center;
  background: #e9f4fb;
  border: 1px solid #cde3f1;
  border-radius: 9px;
  color: #315e7d;
  display: flex;
  gap: 7px;
  justify-content: space-between;
  margin-top: 10px;
  padding: 7px 9px;
}

.partner-key-account small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.partner-key-account strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-key-account.unassigned {
  background: #f4f6f8;
  border-color: #e0e5e9;
  color: #7c8a94;
}

.partner-card-info {
  color: var(--muted);
  display: grid;
  font-size: 10.5px;
  gap: 5px 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  line-height: 1.35;
  margin: 11px 0;
}

.partner-card-info span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-card-metrics {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 9px;
  padding: 8px 0;
}

.partner-card-metrics span {
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.partner-card-metrics strong {
  color: var(--text);
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.partner-card-metrics .has-due strong {
  color: var(--danger);
}

.partner-card .view-partner {
  margin-top: auto;
  padding: 8px 10px;
  width: 100%;
}

.partner-empty {
  grid-column: 1 / -1;
}

.contact-page-actions {
  align-items: center;
  display: flex;
  justify-content: center;
  gap: 14px;
  min-height: 24px;
  padding: 18px 0 4px;
}

.contact-page-actions span {
  color: var(--muted);
  font-size: 12px;
}

.contact-page-actions button {
  min-width: 210px;
}

.partner-profile {
  max-width: 1500px;
}

.profile-back {
  background: transparent;
  border: 0;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
  margin: 0 0 12px;
  padding: 0;
}

.profile-hero {
  align-items: center;
  background: linear-gradient(125deg, #153e38, #24685e);
  border-radius: 20px 20px 0 0;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 25px;
}

.profile-identity {
  align-items: center;
  display: flex;
  gap: 16px;
}

.profile-avatar {
  align-items: center;
  background: #d5a84d;
  border: 4px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  color: #173f3a;
  display: flex;
  font-size: 23px;
  font-weight: 850;
  height: 68px;
  justify-content: center;
  width: 68px;
}

.profile-name-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.profile-name-row h2 {
  font-size: 25px;
  margin: 0;
}

.profile-identity p {
  color: rgba(255, 255, 255, .8);
  margin: 5px 0;
}

.profile-identity > div > span:last-child {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.profile-actions {
  display: flex;
  gap: 8px;
}

.profile-hero .secondary {
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

.profile-hero .primary {
  background: #d5a84d;
  color: #173f3a;
}

.profile-contact-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 17px;
}

.profile-contact-strip > * {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--text);
  padding: 14px 18px;
  text-decoration: none;
}

.profile-contact-strip > *:nth-child(-n+3) {
  border-top: 0;
}

.profile-contact-strip > *:nth-child(3n+1) {
  border-left: 0;
}

.profile-contact-strip small,
.profile-contact-strip strong {
  display: block;
}

.profile-contact-strip small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
  margin-bottom: 5px;
}

.profile-contact-strip strong {
  font-size: 12px;
  word-break: break-word;
}

.profile-kpis {
  margin-bottom: 17px;
}

.profile-tabs {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  display: flex;
  gap: 6px;
  padding: 11px 17px;
}

.profile-tabs button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  gap: 8px;
  padding: 9px 13px;
}

.profile-tabs button:hover {
  background: var(--surface2);
  color: var(--text);
}

.profile-tabs button.active {
  background: var(--primary2);
  border-color: rgba(31, 102, 90, .18);
  color: var(--primary);
}

.profile-tabs button span {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 9px;
  height: 21px;
  justify-content: center;
  min-width: 21px;
  padding: 0 6px;
}

.profile-tab-panel.hidden {
  display: none;
}

.partner-orders-tab {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.partner-orders-tab-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 15px;
}

.partner-orders-tab-head small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.partner-orders-tab-head h2 {
  font-size: 18px;
  margin: 4px 0;
}

.partner-orders-tab-head p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

.partner-orders-tab-head a {
  color: var(--primary);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.partner-order-tab-list {
  grid-template-columns: 1fr;
}

.partner-order-list-row {
  align-items: start;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 13px;
  display: grid;
  gap: 16px;
  grid-template-columns: 135px minmax(0, 1fr) auto;
  padding: 14px;
}

.partner-order-when {
  border-right: 1px solid var(--line);
  min-height: 100%;
  padding-right: 14px;
}

.partner-order-when small,
.partner-order-what > small {
  color: var(--muted);
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.partner-order-when strong,
.partner-order-when span {
  display: block;
}

.partner-order-when strong {
  font-size: 14px;
  margin: 7px 0 4px;
}

.partner-order-when span {
  color: var(--muted);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-order-what ul {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
}

.partner-order-what li {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 10px;
}

.partner-order-what li strong,
.partner-order-what li small {
  display: block;
}

.partner-order-what li strong {
  font-size: 11px;
}

.partner-order-what li small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

.partner-order-what li em {
  color: var(--primary);
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.partner-order-what > p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.partner-order-list-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-order-list-actions .tag {
  white-space: nowrap;
}

.profile-grid {
  display: grid;
  gap: 17px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.profile-contact-strip.partner-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding: 12px;
}

.partner-detail-item {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  padding: 11px 12px;
}

.profile-contact-strip.partner-detail-grid > .partner-detail-item {
  border: 1px solid var(--line);
}

.partner-detail-item small,
.partner-detail-item strong {
  display: block;
}

.partner-detail-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.partner-detail-item strong {
  overflow-wrap: anywhere;
}

.inline-add {
  background: transparent;
  border: 0;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.partner-notes {
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
  min-height: 95px;
  white-space: pre-line;
}

.partner-reminder {
  align-items: center;
  background: var(--surface2);
  border-radius: 10px;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 11px;
}

.partner-reminder span {
  color: var(--muted);
}

.profile-list {
  display: grid;
  gap: 8px;
}

.profile-list > div,
.profile-list > button {
  align-items: center;
  background: var(--surface2);
  border: 0;
  border-radius: 10px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  text-align: left;
  width: 100%;
}

.profile-list strong,
.profile-list small {
  display: block;
}

.profile-list small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}

.profile-list em {
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  text-align: right;
}

.profile-list em small {
  color: var(--danger);
}

.profile-list .amount-due {
  color: var(--danger);
}

.partner-order-history {
  display: grid;
  gap: 10px;
}

.partner-order-card {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.partner-order-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.partner-order-card-head strong,
.partner-order-card-head small,
.partner-order-detail > small {
  display: block;
}

.partner-order-card-head small,
.partner-order-detail > small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}

.partner-order-detail {
  display: grid;
  gap: 5px;
}

.partner-order-flyers {
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
}

.partner-order-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

.partner-order-card p strong {
  color: var(--text);
}

body.dark .profile-hero,
body.dark .welcome-strip {
  background: linear-gradient(125deg, #0d2925, #1b5149);
}

.viber-button,
.viber-primary {
  align-items: center;
  background: #7360f2;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  padding: 10px 15px;
}

.viber-button:hover,
.viber-primary:hover {
  background: #6452dd;
}

.viber-button-mark,
.viber-mark {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: #7360f2;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
}

.viber-button-mark {
  height: 20px;
  width: 20px;
}

.viber-modal-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.viber-modal-heading > div > span {
  color: #7360f2;
  display: block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  margin-bottom: 3px;
}

.viber-modal-heading h2 {
  margin: 0;
}

.viber-mark {
  background: #7360f2;
  color: #fff;
  flex: 0 0 46px;
  font-size: 22px;
  height: 46px;
}

.viber-recipient {
  background: rgba(115, 96, 242, .08);
  background: color-mix(in srgb, #7360f2 8%, var(--surface));
  border: 1px solid rgba(115, 96, 242, .25);
  border-color: color-mix(in srgb, #7360f2 25%, var(--line));
  border-radius: 12px;
  display: grid;
  margin-bottom: 15px;
  padding: 12px 14px;
}

.viber-recipient span,
.viber-recipient small {
  color: var(--muted);
  font-size: 10px;
}

.viber-recipient strong {
  margin: 3px 0;
}

.viber-message-field {
  margin-top: 13px;
}

.viber-message-field textarea {
  min-height: 125px;
}

.viber-message-meta {
  color: var(--muted);
  display: flex;
  font-size: 10px;
  gap: 12px;
  justify-content: space-between;
}

.viber-message-meta strong {
  color: #7360f2;
  white-space: nowrap;
}

.viber-help {
  background: var(--surface2);
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  margin-top: 14px;
  padding: 11px 12px;
}

@media (max-width: 1250px) {
  .partner-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .partner-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .profile-contact-strip.partner-detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-page-actions {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .sidebar {
    overflow-y: auto;
  }

  .welcome-strip,
  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .welcome-strip .primary,
  .profile-actions,
  .profile-actions button {
    width: 100%;
  }

  .profile-actions {
    display: grid;
  }

  .profile-identity {
    align-items: flex-start;
  }

  .profile-name-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-contact-strip,
  .partner-card-grid,
  .partner-mini-grid,
  .profile-grid,
  .partner-order-tab-list {
    grid-template-columns: 1fr;
  }

  .profile-tabs {
    align-items: stretch;
    overflow-x: auto;
  }

  .profile-tabs button {
    justify-content: center;
    white-space: nowrap;
  }

  .partner-order-list-row {
    grid-template-columns: 1fr;
  }

  .partner-order-when {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 0 0 11px;
  }

  .partner-order-list-actions {
    align-items: stretch;
  }

  .partner-order-list-actions .tag {
    align-self: flex-start;
  }

  .partner-orders-tab-head {
    flex-direction: column;
  }

  .profile-contact-strip > *:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .profile-contact-strip > *:first-child {
    border-top: 0;
  }

  .profile-contact-strip.partner-detail-grid > .partner-detail-item,
  .profile-contact-strip.partner-detail-grid > .partner-detail-item:first-child {
    border: 1px solid var(--line);
  }

  .partner-card-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .attention-partner {
    grid-template-columns: auto 1fr;
  }

  .attention-partner em {
    grid-column: 2;
  }
}

.import-excel-card > p,
.billing-connect > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.import-field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 17px 0;
}

.import-field-chips span {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 10px;
  padding: 6px 9px;
}

.import-actions {
  display: flex;
  gap: 8px;
}

.import-privacy {
  color: var(--muted);
  display: block;
  line-height: 1.5;
  margin-top: 13px;
}

.import-result {
  margin: 18px 0;
}

@media (max-width: 760px) {
  .import-actions {
    display: grid;
  }
}

/* v21 — πιθανοί συνεργάτες και φόρμες παραγγελιών */
.modal.wide-modal {
  width: min(980px, 96vw);
}

.modal-intro,
.prospect-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.prospect-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -10px 0 17px;
}

.prospect-summary span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 11px;
}

.prospect-summary strong {
  color: var(--primary);
  margin-right: 3px;
}

.prospect-card {
  cursor: grab;
}

.prospect-card .deal-value {
  align-items: flex-end;
  gap: 8px;
}

.prospect-card .deal-value span:first-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.prospect-card .deal-value span:last-child {
  color: var(--primary);
  font-size: 11px;
  text-align: right;
}

.section-actions,
.order-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 17px;
}

@media (max-width: 1450px) {
  .order-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .order-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .order-kpis {
    grid-template-columns: 1fr;
  }
}

.order-type-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 17px;
}

.order-type-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  min-height: 116px;
  padding: 17px;
  text-align: left;
}

.order-type-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.order-type-card span {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.order-type-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.order-type-card small {
  color: var(--muted);
  display: block;
  line-height: 1.45;
  margin-top: 6px;
}

.order-table table {
  min-width: 1120px;
}

.order-form-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-form-grid .field.full {
  grid-column: 1 / -1;
}

.order-type-field {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 12px;
}

.order-type-field select {
  width: 100%;
}

.excel-order-records {
  display: grid;
  gap: 8px;
  margin-top: 15px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.excel-order-record {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  padding: 11px 12px;
}

.excel-order-record:hover {
  border-color: var(--primary);
}

.excel-order-record input {
  accent-color: var(--primary);
  margin-top: 3px;
}

.excel-order-record strong,
.excel-order-record small {
  display: block;
}

.excel-order-record small {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 3px;
}

.excel-order-record em {
  color: var(--primary);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .order-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section-actions,
  .section-actions button,
  .order-toolbar,
  .order-toolbar button,
  .order-toolbar select {
    width: 100%;
  }

  .order-type-cards,
  .order-form-grid {
    grid-template-columns: 1fr;
  }

  .order-form-grid .field.full {
    grid-column: auto;
  }

  .excel-order-record {
    grid-template-columns: auto 1fr;
  }

  .excel-order-record em {
    grid-column: 2;
  }
}

/* v22 — ενιαία παραγγελία και ημερολόγιο */
.orders-layout {
  display: grid;
  gap: 17px;
  grid-template-columns: minmax(0, 1fr);
}

.order-calendar-panel,
.order-month-list {
  margin: 0;
  min-width: 0;
}

.calendar-head {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  margin-bottom: 18px;
  text-align: center;
}

.calendar-head small,
.order-month-list .panel-head small,
.single-order-heading small {
  color: var(--primary);
  display: block;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  margin-bottom: 4px;
}

.calendar-head h2,
.order-month-list .panel-head h2 {
  font-size: 17px;
  margin: 0;
  text-transform: capitalize;
}

.calendar-head button {
  font-size: 18px;
  padding: 8px 12px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
}

.calendar-day {
  align-items: flex-start;
  aspect-ratio: auto;
  background: var(--surface2);
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  min-height: 48px;
  padding: 7px;
  position: relative;
}

.calendar-day:hover {
  border-color: var(--primary);
}

.calendar-day.calendar-empty {
  background: transparent;
  cursor: default;
}

.calendar-day.has-orders {
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--primary) 25%, var(--line));
  font-weight: 800;
}

.calendar-day strong {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 9px;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.calendar-day.selected {
  background: var(--primary);
  color: #fff;
}

.calendar-day.selected strong {
  background: #fff;
  color: var(--primary);
}

.calendar-foot {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 10px;
  gap: 10px;
  justify-content: space-between;
  line-height: 1.45;
  margin-top: 14px;
}

.calendar-foot button {
  flex: none;
  font-size: 10px;
  padding: 7px 9px;
}

.order-table-simple table {
  min-width: 1180px;
}

.order-month-head-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.order-month-download {
  align-items: center;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
}

.order-month-download:disabled {
  cursor: default;
  opacity: .5;
}

.order-selected-month-download {
  background: #fff;
  color: var(--primary);
}

.order-through-today-download {
  box-shadow: 0 8px 18px rgba(60, 117, 157, .18);
}

.order-execution-cell {
  min-width: 220px;
}

.order-execution-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--primary);
  border-radius: 9px;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 11px;
  white-space: nowrap;
}

.order-execution-button span {
  font-size: 16px;
  line-height: 1;
}

.order-execution-status {
  align-items: center;
  background: #e9f8ed;
  border: 1px solid #c9ebd2;
  border-radius: 10px;
  color: #19733a;
  display: grid;
  gap: 9px;
  grid-template-columns: auto 1fr auto;
  padding: 9px 10px;
}

.order-execution-status > span {
  align-items: center;
  background: #24924b;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 11px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.order-execution-status strong,
.order-execution-status small {
  display: block;
  line-height: 1.35;
}

.order-execution-status strong { font-size: 11px; }
.order-execution-status small { font-size: 10px; margin-top: 2px; }

.order-execution-status button {
  background: transparent;
  border: 0;
  color: #19733a;
  cursor: pointer;
  font-size: 17px;
  min-height: 32px;
  min-width: 32px;
}

.order-shipment-cell {
  min-width: 210px;
}

.order-shipment-button {
  align-items: center;
  background: #fff;
  border: 1px solid #8fb5d0;
  border-radius: 9px;
  color: #3f789d;
  cursor: pointer;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 11px;
  white-space: nowrap;
}

.order-shipment-status {
  align-items: center;
  background: #eef7ff;
  border: 1px solid #c9e0ef;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.order-shipment-status:hover {
  border-color: #8fbad7;
  box-shadow: 0 6px 16px rgba(63, 120, 157, .12);
}

.order-shipment-status > a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
}

.order-shipment-status small {
  color: #6b8799;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1.25;
}

.order-shipment-status strong {
  color: #285f83;
  font-size: 12px;
  line-height: 1.3;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.order-shipment-status span {
  color: #4f86aa;
  font-size: 9px;
  font-weight: 800;
  margin-top: 2px;
}

.order-shipment-status button {
  background: transparent;
  border: 0;
  color: #3f789d;
  cursor: pointer;
  font-size: 17px;
  min-height: 32px;
  min-width: 32px;
}

.order-page-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 14px;
  justify-content: center;
  padding: 16px 20px;
}

.order-page-actions button {
  min-width: 180px;
}

@media (max-width: 760px) {
  .order-month-list .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .order-month-head-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: space-between;
    width: 100%;
  }

  .order-month-download {
    min-height: 44px;
    width: 100%;
  }

  .order-month-head-actions .tag {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .calendar-day {
    min-height: 44px;
    padding: 6px;
  }
}

.order-row-actions {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  white-space: nowrap;
}

.order-send-button {
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  padding: 7px 9px;
}

.order-partner-vat {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}

.order-comment-content {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.order-comment-text {
  line-height: 1.45;
}

.order-addon-chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-addon-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}

.order-addon-chip > span {
  font-size: 12px;
}

.order-addon-flyers {
  background: #e2f3ff;
  color: #2981bd;
}

.order-addon-leonidas {
  background: #ebeaff;
  color: #594fc6;
}

.test-pill {
  background: var(--primary2);
  border-radius: 20px;
  color: var(--primary);
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  padding: 6px 9px;
  white-space: nowrap;
}

.test-pill-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.test-choice-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.test-choice {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
  padding: 10px 12px;
  transition: .18s ease;
}

.test-choice:hover {
  border-color: #a7c5b4;
}

.test-choice:has(input[name="testTypes"]:checked) {
  background: var(--primary2);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.test-choice-main {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 9px;
}

.test-choice-main > input {
  accent-color: var(--primary);
  flex: 0 0 auto;
  height: 17px;
  margin: 0;
  width: 17px;
}

.test-order-values {
  border-top: 1px solid rgba(31, 102, 90, .14);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 8px;
}

.test-order-value {
  display: grid;
  gap: 4px;
}

.test-order-value-code {
  grid-column: 1 / -1;
}

.test-order-value label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.test-order-value input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  text-align: center;
  width: 100%;
}

.test-order-value input:disabled {
  opacity: .42;
}

.order-delivery-heading {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.order-delivery-heading strong,
.order-delivery-heading small {
  display: block;
}

.order-delivery-heading strong {
  color: var(--ink);
  font-size: 13px;
}

.order-delivery-heading small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.test-choice span,
.partner-suggestion {
  min-width: 0;
}

.test-choice strong,
.test-choice small {
  display: block;
}

.test-choice strong {
  color: var(--ink);
  font-size: 12px;
}

.test-choice small,
.field-help {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.field-help {
  display: block;
  margin-top: 6px;
}

.order-addon {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #f0c96a;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 11px;
  margin: 0;
  padding: 12px 14px;
}

.order-addon > input {
  accent-color: var(--primary);
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  width: 18px;
}

.order-addon span,
.order-addon strong,
.order-addon small {
  display: block;
}

.order-addon strong {
  color: var(--ink);
  font-size: 13px;
}

.order-addon small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  margin-top: 2px;
}

.partner-search-box {
  position: relative;
}

.partner-search-box > input:not([type="hidden"]) {
  width: 100%;
}

.partner-suggestions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(27, 48, 39, .16);
  left: 0;
  max-height: 280px;
  overflow: auto;
  padding: 5px;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 20;
}

.partner-suggestions.hidden {
  display: none;
}

.badge.hidden {
  display: none;
}

.order-notification-button {
  cursor: pointer;
  font-size: 16px;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.order-notification-button:hover {
  transform: translateY(-1px);
}

.order-notification-button.is-active {
  color: #3274a5;
  border-color: #9dc4df;
  background: #edf7fd;
}

.partner-suggestion {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  display: block;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.partner-suggestion:hover,
.partner-suggestion:focus {
  background: var(--primary2);
  outline: none;
}

.partner-suggestion strong,
.partner-suggestion small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-suggestion strong {
  font-size: 12px;
}

.partner-suggestion small,
.partner-no-result {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.partner-no-result {
  padding: 12px 10px;
}

.order-email-note {
  align-items: center;
  background: #f2f7ff;
  border: 1px solid #d8e6fb;
  border-radius: 12px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
}

.order-email-note > span {
  align-items: center;
  background: #fff;
  border-radius: 9px;
  color: #2d67a7;
  display: flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
}

.order-email-note strong,
.order-email-note small {
  display: block;
}

.order-email-note strong {
  font-size: 12px;
}

.order-email-note small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  margin-top: 2px;
}

.single-order-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.single-order-heading > span {
  align-items: center;
  background: var(--primary2);
  border-radius: 12px;
  color: var(--primary);
  display: flex;
  flex: 0 0 46px;
  font-size: 21px;
  height: 46px;
  justify-content: center;
}

.single-order-heading h2 {
  margin: 0;
}

.single-order-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.communication-layout {
  display: grid;
  gap: 17px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.communication-layout.communication-calendar-layout {
  align-items: start;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.38fr);
}

.communication-calendar-layout .communication-history {
  grid-column: 1 / -1;
}

.communication-calendar-panel {
  margin: 0;
  min-width: 0;
}

.communication-composer form {
  display: grid;
  gap: 14px;
}

.communication-composer .field input,
.communication-composer .field select,
.communication-composer .field textarea {
  width: 100%;
}

.communication-composer .field textarea {
  line-height: 1.55;
  min-height: 220px;
}

.communication-recipient {
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  gap: 12px;
  padding: 11px 13px;
}

.communication-recipient > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.communication-recipient div {
  min-width: 0;
}

.communication-recipient strong,
.communication-recipient small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.communication-recipient strong {
  font-size: 12px;
}

.communication-recipient small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.communication-recipient.ready {
  background: var(--primary2);
  border-color: rgba(31, 102, 90, .22);
}

.communication-send-note {
  align-items: flex-start;
  background: #f2f7ff;
  border: 1px solid #d8e6fb;
  border-radius: 11px;
  display: flex;
  gap: 9px;
  padding: 10px 12px;
}

.communication-send-note > span {
  color: #2d67a7;
}

.communication-send-note p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin: 0;
}

.communication-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}

.communication-history-list {
  display: grid;
  gap: 10px;
  max-height: 690px;
  overflow: auto;
}

.communication-history-more {
  justify-self: center;
  margin: 6px 0 2px;
  width: min(100%, 320px);
}

.communication-history-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.communication-history-card > div {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.communication-history-card > div > span:last-child {
  min-width: 0;
}

.communication-history-icon {
  align-items: center;
  background: var(--primary2);
  border-radius: 9px;
  color: var(--primary);
  display: flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
}

.communication-history-card strong,
.communication-history-card small {
  display: block;
}

.communication-history-card small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.communication-history-card h3 {
  font-size: 12px;
  margin: 0;
}

.communication-history-card p {
  color: var(--muted);
  display: -webkit-box;
  font-size: 10px;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.communication-history-card .inline-add {
  justify-self: start;
  padding: 0;
}

.communication-history-head-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.communication-history-head-actions > span {
  color: var(--muted);
  font-size: 12px;
}

.communication-history-dedupe,
.communication-history-clear,
.communication-history-delete {
  border: 1px solid #efc9c9;
  border-radius: 8px;
  background: #fff6f6;
  color: #a33d3d;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 9px;
}

.communication-history-dedupe {
  border-color: #b8d5e8;
  background: #eff8fd;
  color: #21658b;
}

.communication-history-dedupe:hover:not(:disabled) {
  border-color: #78afd0;
  background: #deeff9;
}

.communication-history-dedupe:disabled {
  cursor: default;
  opacity: .55;
}

.communication-history-clear:hover,
.communication-history-delete:hover {
  border-color: #d99b9b;
  background: #fce8e8;
}

.communication-history-card-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.communication-history-card-actions .communication-history-delete {
  margin-left: auto;
}

body.dark .communication-history-dedupe,
body.dark .communication-history-clear,
body.dark .communication-history-delete {
  border-color: #704343;
  background: #3a2424;
  color: #f3b3b3;
}

body.dark .communication-send-note {
  background: #17263a;
  border-color: #29405f;
}

.communication-tabs {
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 13px;
  display: inline-flex;
  gap: 5px;
  margin-bottom: 17px;
  padding: 5px;
}

.communication-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 7px;
  padding: 9px 15px;
}

.communication-tabs button.active {
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(18, 38, 34, .08);
  color: var(--text);
}

.viber-tab-mark {
  align-items: center;
  background: #7360f2;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.viber-count-tag {
  background: rgba(115, 96, 242, .12);
  color: #5b48d8;
}

.viber-composer .viber-message-field textarea {
  min-height: 170px;
}

.viber-resume-field {
  padding: 16px;
  border: 1px solid #bfd7ea;
  border-radius: 16px;
  background: #f4f9fd;
}

.viber-resume-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.viber-resume-controls input {
  min-width: 0;
}

@media (max-width: 720px) {
  .viber-resume-controls {
    grid-template-columns: 1fr;
  }
}

.viber-recipient-picker {
  display: grid;
  gap: 9px;
}

.viber-recipient-filter-groups {
  display: grid;
  gap: 10px;
}

.viber-recipient-filter {
  display: grid;
  gap: 6px;
}

.viber-recipient-filter > small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
}

.viber-group-select button {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.viber-group-select button span {
  align-items: center;
  background: rgba(115, 96, 242, .1);
  border-radius: 999px;
  display: inline-flex;
  font-size: 9px;
  justify-content: center;
  min-width: 23px;
  padding: 3px 6px;
}

.communication-group-select {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
}

.communication-group-select button {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  padding: 9px 10px;
}

.communication-group-select button:hover,
.communication-group-select button.active {
  background: rgba(25, 107, 89, .1);
  border-color: rgba(25, 107, 89, .35);
  color: var(--primary);
}

.viber-group-select button:hover,
.viber-group-select button.active {
  background: rgba(115, 96, 242, .11);
  border-color: rgba(115, 96, 242, .32);
  color: #5b48d8;
}

.communication-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 170px;
  overflow-y: auto;
}

.communication-selected-chip {
  align-items: center;
  background: rgba(25, 107, 89, .08);
  border: 1px solid rgba(25, 107, 89, .2);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  max-width: 270px;
  padding: 7px 8px 7px 10px;
}

.communication-selected-chip > span {
  min-width: 0;
}

.communication-selected-chip strong,
.communication-selected-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.communication-selected-chip strong {
  font-size: 10px;
}

.communication-selected-chip small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 2px;
}

.communication-selected-chip button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  flex: 0 0 20px;
  font-size: 16px;
  height: 20px;
  justify-content: center;
  padding: 0;
}

.viber-recipient-search {
  position: relative;
}

.viber-recipient-search > input {
  padding-left: 13px;
}

.viber-recipient-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(18, 38, 34, .1);
  margin-top: 6px;
  overflow: hidden;
  position: static;
}

.viber-recipient-menu-head {
  align-items: center;
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
}

.viber-recipient-menu-head strong {
  font-size: 10px;
}

.viber-recipient-menu-head button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--primary);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  padding: 6px 8px;
}

.viber-recipient-menu-list {
  max-height: 190px;
  overflow-y: auto;
  padding: 6px;
}

.viber-recipient-option {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 9px 10px;
}

.viber-recipient-option:hover {
  background: var(--surface2);
}

.viber-recipient-option input {
  accent-color: #7360f2;
  flex: 0 0 auto;
  height: 16px;
  width: 16px !important;
}

.viber-recipient-option span,
.viber-recipient-option strong,
.viber-recipient-option small {
  display: block;
  min-width: 0;
}

.viber-recipient-option strong {
  font-size: 11px;
}

.viber-recipient-option small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

.viber-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 170px;
  overflow-y: auto;
}

.viber-selected-chip {
  align-items: center;
  background: rgba(115, 96, 242, .1);
  border: 1px solid rgba(115, 96, 242, .2);
  border-radius: 10px;
  color: var(--text);
  display: flex;
  gap: 8px;
  max-width: 260px;
  padding: 7px 8px 7px 10px;
}

.viber-selected-chip > span {
  min-width: 0;
}

.viber-selected-chip strong,
.viber-selected-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viber-selected-chip strong {
  font-size: 10px;
}

.viber-selected-chip small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 2px;
}

.viber-selected-chip button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #5b48d8;
  cursor: pointer;
  display: flex;
  flex: 0 0 20px;
  font-size: 16px;
  height: 20px;
  justify-content: center;
  padding: 0;
}

.viber-no-selection {
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  flex: 1;
  font-size: 10px;
  padding: 11px 12px;
}

.viber-recipient-foot {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.viber-recipient-foot small {
  color: var(--muted);
  font-size: 9px;
}

.viber-send-note {
  background: rgba(115, 96, 242, .08);
  border-color: rgba(115, 96, 242, .2);
}

.viber-windows-helper {
  align-items: center;
  background: linear-gradient(135deg, rgba(115, 96, 242, .1), rgba(25, 107, 89, .08));
  border: 1px solid rgba(115, 96, 242, .24);
  border-radius: 12px;
  display: grid;
  gap: 11px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 11px 12px;
}

.viber-windows-helper.compact {
  margin-bottom: 10px;
}

.viber-windows-helper-icon {
  align-items: center;
  background: #7360f2;
  border-radius: 9px;
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
}

.viber-windows-helper strong,
.viber-windows-helper p {
  display: block;
  margin: 0;
}

.viber-windows-helper strong {
  font-size: 11px;
}

.viber-windows-helper p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  margin-top: 3px;
}

.viber-windows-helper a.secondary {
  font-size: 9px;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.viber-personal-connector {
  align-items: center;
  background: linear-gradient(135deg, rgba(115, 96, 242, .12), rgba(73, 142, 180, .12));
  border: 1px solid rgba(115, 96, 242, .25);
  border-radius: 12px;
  display: grid;
  gap: 11px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 13px;
}

.viber-personal-connector-icon {
  align-items: center;
  background: #7360f2;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 16px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.viber-personal-connector small,
.viber-personal-connector strong,
.viber-personal-connector p {
  display: block;
  margin: 0;
}

.viber-personal-connector small {
  color: #5b48d8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
}

.viber-personal-connector strong {
  font-size: 12px;
  margin-top: 3px;
}

.viber-personal-connector p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  margin-top: 4px;
}

.viber-connector-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.viber-connector-actions .secondary {
  font-size: 9px;
  justify-content: center;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
}

body.dark .viber-send-note {
  background: rgba(115, 96, 242, .12);
  border-color: rgba(157, 143, 255, .3);
}

body.dark .viber-windows-helper {
  background: linear-gradient(135deg, rgba(115, 96, 242, .16), rgba(25, 107, 89, .12));
  border-color: rgba(157, 143, 255, .3);
}

.viber-history-icon {
  background: #7360f2;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.viber-history-status {
  color: #5b48d8;
  font-size: 9px;
  font-weight: 800;
}

.communication-image-field > label span {
  color: var(--muted);
  font-weight: 500;
}

.communication-image-input {
  display: none !important;
}

.communication-image-picker {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
}

.communication-image-picker > button {
  align-self: center;
}

.communication-image-preview-wrap {
  min-width: 0;
}

.communication-image-empty {
  align-items: center;
  background: var(--surface2);
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  font-size: 10px;
  min-height: 62px;
  padding: 10px 12px;
}

.communication-image-preview {
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  padding: 7px;
}

.communication-image-preview img {
  border-radius: 8px;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.communication-image-preview strong,
.communication-image-preview small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.communication-image-preview strong {
  font-size: 10px;
}

.communication-image-preview small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}

.communication-image-preview button {
  background: transparent;
  border: 0;
  color: #bd4a4a;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.communication-attachment-label {
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-size: 9px;
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  padding: 5px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viber-batch-image {
  align-items: center;
  background: rgba(115, 96, 242, .06);
  border: 1px solid rgba(115, 96, 242, .18);
  border-radius: 11px;
  display: grid;
  gap: 12px;
  grid-template-columns: 82px minmax(0, 1fr);
  margin-bottom: 10px;
  padding: 9px;
}

.viber-batch-image img {
  border-radius: 9px;
  height: 82px;
  object-fit: cover;
  width: 82px;
}

.viber-batch-image strong,
.viber-batch-image span {
  display: block;
}

.viber-batch-image strong {
  font-size: 11px;
}

.viber-batch-image span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  margin: 4px 0 8px;
}

.viber-batch-image a.secondary {
  display: inline-flex;
  font-size: 9px;
  padding: 7px 9px;
  text-decoration: none;
}

.viber-batch-summary {
  background: rgba(115, 96, 242, .08);
  border: 1px solid rgba(115, 96, 242, .18);
  border-radius: 12px;
  margin: 14px 0 10px;
  padding: 12px 14px;
}

.viber-batch-summary strong {
  font-size: 12px;
}

.viber-batch-summary p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.viber-sequence-progress {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 14px 0 10px;
}

.viber-sequence-progress > div {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 11px;
  min-width: 0;
  padding: 10px;
}

.viber-sequence-progress span,
.viber-sequence-current > span,
.viber-sequence-cooldown > span {
  color: var(--muted);
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.viber-sequence-progress strong {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.viber-sequence-progress .attention {
  background: rgba(207, 70, 70, .08);
  border-color: rgba(207, 70, 70, .22);
  color: var(--danger);
}

.viber-sequence-cooldown,
.viber-sequence-current {
  background: rgba(115, 96, 242, .08);
  border: 1px solid rgba(115, 96, 242, .2);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
}

.viber-sequence-cooldown strong {
  color: #6652df;
  display: block;
  font-size: 28px;
  letter-spacing: .04em;
  margin: 4px 0;
}

.viber-sequence-cooldown small,
.viber-sequence-current small {
  color: var(--muted);
  display: block;
  font-size: 9px;
  line-height: 1.45;
}

.viber-sequence-current strong {
  display: block;
  font-size: 12px;
  margin: 5px 0 3px;
}

.viber-sequence-list-row,
.viber-sequence-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.viber-sequence-item {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.viber-sequence-list-row strong,
.viber-sequence-list-row small,
.viber-sequence-item strong,
.viber-sequence-item small,
.viber-sequence-item span {
  display: block;
}

.viber-sequence-list-row small,
.viber-sequence-item small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}

.viber-sequence-item > div > span {
  color: #6652df;
  font-size: 9px;
  font-weight: 800;
  margin-top: 5px;
}

.viber-sequence-item.status-sent {
  background: rgba(53, 144, 103, .08);
  border-color: rgba(53, 144, 103, .24);
}

.viber-sequence-item.status-sent > div > span {
  color: var(--primary);
}

.viber-sequence-item.status-failed,
.viber-sequence-item.status-uncertain {
  background: rgba(207, 70, 70, .06);
  border-color: rgba(207, 70, 70, .22);
}

.viber-sequence-error {
  color: var(--danger) !important;
  white-space: normal !important;
}

.viber-sequence-confirm {
  background: transparent;
  border: 0;
  color: var(--text);
  max-width: min(460px, calc(100vw - 32px));
  padding: 0;
  width: 100%;
}

.viber-sequence-confirm::backdrop {
  background: rgba(26, 39, 53, .58);
  backdrop-filter: blur(3px);
}

.viber-sequence-confirm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(28, 53, 78, .24);
  padding: 24px;
}

.viber-sequence-confirm-card > span {
  color: #6652df;
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}

.viber-sequence-confirm-card h3 {
  font-size: 18px;
  margin: 7px 0 9px;
}

.viber-sequence-confirm-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.viber-sequence-confirm-card .modal-actions {
  margin-top: 20px;
}

.viber-sequence-item details {
  margin-top: 7px;
}

.viber-sequence-item details summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
}

.viber-sequence-item details p {
  font-size: 9px;
  line-height: 1.45;
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.viber-batch-message {
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 10px;
  padding: 11px 13px;
}

.viber-batch-message small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.viber-batch-message p {
  font-size: 10px;
  line-height: 1.5;
  margin: 6px 0 0;
  max-height: 92px;
  overflow: auto;
  white-space: pre-wrap;
}

.viber-batch-launch {
  align-items: center;
  background: rgba(115, 96, 242, .09);
  border: 1px solid rgba(115, 96, 242, .22);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 11px 13px;
}

.viber-batch-launch .primary {
  background: #7360f2;
  flex: 0 0 auto;
}

.viber-batch-launch span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.viber-queue {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  max-height: 330px;
  overflow: auto;
}

.viber-queue-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  padding: 9px 10px;
}

.viber-queue-item.opened {
  background: rgba(53, 144, 103, .08);
  border-color: rgba(53, 144, 103, .25);
}

.viber-queue-number {
  align-items: center;
  background: var(--surface2);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 9px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
}

.viber-queue-item strong,
.viber-queue-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viber-queue-item strong {
  font-size: 11px;
}

.viber-queue-item small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}

.viber-queue-status {
  background: rgba(115, 96, 242, .10);
  border-radius: 999px;
  color: #6652df;
  font-size: 9px;
  font-weight: 800;
  padding: 7px 10px;
}

.viber-queue-item.opened .viber-queue-status {
  background: rgba(53, 144, 103, .12);
  color: var(--primary);
}

.viber-queue-open {
  background: #7360f2;
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  padding: 9px 11px;
}

.viber-queue-item.opened .viber-queue-open {
  background: var(--primary);
}

.modal-close {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .12);
  display: grid;
  float: none;
  height: 36px;
  justify-content: center;
  margin: -13px -13px -23px auto;
  position: sticky;
  right: auto;
  top: -13px;
  width: 36px;
  z-index: 20;
}

.modal h2 {
  padding-right: 42px;
}

.statistics-page {
  display: grid;
  gap: 16px;
}

.statistics-title {
  margin-bottom: 0;
}

.statistics-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.statistics-mode-tabs {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 11px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.statistics-mode-tabs button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  padding: 9px 14px;
}

.statistics-mode-tabs button.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(18, 86, 75, .2);
}

.statistics-period-nav {
  align-items: center;
  display: flex;
  gap: 12px;
}

.statistics-period-nav strong {
  color: var(--ink);
  font-size: 14px;
  min-width: 150px;
  text-align: center;
  text-transform: capitalize;
}

.statistics-kpis {
  margin-bottom: 0;
}

.statistics-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.statistics-chart-panel,
.statistics-breakdown-panel,
.statistics-ranking-panel {
  min-width: 0;
}

.statistics-revenue-panel {
  grid-column: 1 / -1;
}

.statistics-chart-scroll {
  overflow-x: auto;
  padding: 10px 0 2px;
}

.statistics-bars {
  align-items: end;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(var(--statistics-columns), minmax(24px, 1fr));
  height: 230px;
}

.statistics-bar-item {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-rows: 18px minmax(0, 1fr) 18px;
  height: 100%;
  min-width: 0;
  text-align: center;
}

.statistics-bar-item > strong {
  color: var(--ink);
  font-size: 10px;
}

.statistics-bar-item > span {
  color: var(--muted);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.statistics-bar-track {
  align-items: end;
  background: linear-gradient(180deg, rgba(23, 105, 91, .02), rgba(23, 105, 91, .08));
  border-bottom: 1px solid var(--line);
  border-radius: 7px 7px 2px 2px;
  display: flex;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.statistics-bar-track i {
  background: linear-gradient(180deg, #46a98f, var(--primary));
  border-radius: 6px 6px 2px 2px;
  display: block;
  min-width: 9px;
  transition: height .2s ease;
  width: 58%;
}

.statistics-bar-track i.empty {
  background: var(--line);
}

.statistics-donut-wrap {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 240px;
}

.statistics-donut {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 180px;
  justify-content: center;
  margin: auto;
  position: relative;
  width: 180px;
}

.statistics-donut::after {
  background: var(--surface);
  border-radius: 50%;
  content: "";
  height: 112px;
  position: absolute;
  width: 112px;
}

.statistics-donut.empty {
  background: var(--surface2);
}

.statistics-donut > span {
  display: grid;
  gap: 2px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.statistics-donut strong {
  color: var(--ink);
  font-size: 25px;
}

.statistics-donut small {
  color: var(--muted);
  font-size: 10px;
}

.statistics-legend {
  display: grid;
  gap: 12px;
}

.statistics-legend > div:not(.empty) {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 10px minmax(0, 1fr);
}

.statistics-legend i {
  border-radius: 50%;
  display: block;
  height: 10px;
  width: 10px;
}

.statistics-legend strong,
.statistics-legend small {
  display: block;
}

.statistics-legend strong {
  color: var(--ink);
  font-size: 11px;
}

.statistics-legend small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

.statistics-ranking {
  display: grid;
  gap: 7px;
}

.statistics-rank-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 10px;
}

.statistics-rank-row > em {
  align-items: center;
  background: var(--primary2);
  border-radius: 8px;
  color: var(--primary);
  display: flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  height: 28px;
  justify-content: center;
}

.statistics-rank-row strong,
.statistics-rank-row small {
  display: block;
}

.statistics-rank-row strong {
  color: var(--ink);
  font-size: 11px;
}

.statistics-rank-row small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

.statistics-rank-row span > i {
  background: var(--surface2);
  border-radius: 5px;
  display: block;
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
}

.statistics-rank-row span > i b {
  background: linear-gradient(90deg, var(--primary), #54b798);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.statistics-turnover-note {
  align-items: center;
  background: linear-gradient(135deg, #123f37, #17695b);
  border-radius: 15px;
  color: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 18px 20px;
}

.statistics-turnover-note > span {
  align-items: center;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  display: flex;
  font-size: 21px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
}

.statistics-turnover-note strong {
  display: block;
  font-size: 13px;
}

.statistics-turnover-note p {
  color: rgba(255, 255, 255, .75);
  font-size: 10px;
  line-height: 1.5;
  margin: 4px 0 0;
}

@media (max-width: 1080px) {
  .orders-layout,
  .communication-layout,
  .statistics-grid {
    grid-template-columns: 1fr;
  }

  .statistics-revenue-panel {
    grid-column: auto;
  }

  .communication-calendar-layout .communication-history {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .statistics-title,
  .statistics-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .statistics-title {
    gap: 10px;
  }

  .statistics-mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .statistics-mode-tabs button {
    padding-inline: 7px;
  }

  .statistics-period-nav {
    justify-content: space-between;
  }

  .statistics-period-nav strong {
    min-width: 0;
  }

  .statistics-donut-wrap {
    grid-template-columns: 1fr;
  }

  .single-order-form {
    grid-template-columns: 1fr;
  }

  .test-choice-grid {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    aspect-ratio: auto;
    min-height: 42px;
    padding: 5px;
  }

  .calendar-day strong {
    font-size: 8px;
    height: 17px;
    width: 17px;
  }

  .calendar-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .communication-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .communication-image-picker {
    grid-template-columns: 1fr;
  }

  .communication-image-picker > button {
    justify-self: start;
  }

  .communication-tabs {
    display: flex;
  }

  .communication-tabs button {
    flex: 1;
    justify-content: center;
  }

  .viber-recipient-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .viber-windows-helper {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .viber-windows-helper a.secondary {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .viber-personal-connector {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .viber-connector-actions {
    grid-column: 1 / -1;
  }

  .viber-queue-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .viber-queue-open {
    grid-column: 1 / -1;
  }

  .viber-batch-launch {
    align-items: stretch;
    flex-direction: column;
  }

  .viber-queue-status {
    grid-column: 1 / -1;
    text-align: center;
  }
}
.import-skip-summary{
  margin:14px 0;
  padding:14px 16px;
  border:1px solid #f0d9a6;
  border-radius:12px;
  background:#fff9eb;
  color:#6f5315;
}
.import-skip-summary strong,
.import-skip-summary p,
.import-skip-summary small{display:block}
.import-skip-summary p{margin:5px 0}
.import-skip-summary small{line-height:1.5;color:#806b3b}

/* Graphite dashboard and monochrome visual language — v76 */
.executive-dashboard {
  display: grid;
  gap: 18px;
}

.dashboard-hero {
  align-items: stretch;
  background:
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.13), transparent 22%),
    linear-gradient(130deg, #222429 0%, #3b3e44 58%, #555960 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  box-shadow: 0 22px 46px rgba(22,24,28,.18);
  color: #fff;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0,1.5fr) minmax(310px,.8fr);
  min-height: 230px;
  overflow: hidden;
  padding: 30px 32px;
  position: relative;
}

.dashboard-hero::before {
  animation: dashboardHeroGlow 8s ease-in-out infinite alternate;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: "";
  height: 280px;
  position: absolute;
  right: 18%;
  top: -210px;
  width: 280px;
}

.dashboard-hero::after {
  background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg,transparent 10%,#000 100%);
  pointer-events: none;
  position: absolute;
}

@keyframes dashboardHeroGlow {
  from { transform: translate3d(-15px,0,0) scale(.92); }
  to { transform: translate3d(35px,38px,0) scale(1.08); }
}

.dashboard-hero-copy,
.dashboard-today {
  position: relative;
  z-index: 1;
}

.dashboard-eyebrow,
.dashboard-panel-head small {
  color: #c9cbd0;
  display: block;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.dashboard-hero h2 {
  font-size: clamp(28px,3vw,38px);
  letter-spacing: -.035em;
  margin: 10px 0 7px;
}

.dashboard-hero p {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.dashboard-hero-actions button,
.dashboard-panel-head button,
.dashboard-chart-foot button,
.dashboard-all-actions {
  border: 0;
  cursor: pointer;
  font: 750 11px inherit;
}

.dashboard-hero-primary,
.dashboard-hero-secondary {
  border-radius: 10px !important;
  padding: 11px 15px;
}

.dashboard-hero-primary {
  background: #f1f1ef;
  color: #292b30;
}

.dashboard-hero-secondary {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.dashboard-today {
  align-content: center;
  background: rgba(15,16,18,.2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(3,1fr);
  padding: 20px;
}

.dashboard-today > small {
  color: rgba(255,255,255,.55);
  font-size: 9px;
  font-weight: 800;
  grid-column: 1 / -1;
  letter-spacing: .14em;
}

.dashboard-today > div {
  border-left: 1px solid rgba(255,255,255,.13);
  display: grid;
  gap: 4px;
  padding-left: 12px;
}

.dashboard-today > div:first-of-type { border-left: 0; padding-left: 0; }
.dashboard-today strong { font-size: 22px; letter-spacing: -.04em; }
.dashboard-today span { color: rgba(255,255,255,.58); font-size: 9px; }

.dashboard-metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.dashboard-metric {
  animation: dashboardCardIn .55s both;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.dashboard-metric:nth-child(2) { animation-delay: 70ms; }
.dashboard-metric:nth-child(3) { animation-delay: 140ms; }
.dashboard-metric:nth-child(4) { animation-delay: 210ms; }

@keyframes dashboardCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.dashboard-metric-head {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
}

.dashboard-metric-head i {
  align-items: center;
  background: var(--surface2);
  border-radius: 9px;
  color: var(--primary);
  display: flex;
  font-size: 14px;
  font-style: normal;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.dashboard-metric > strong {
  display: block;
  font-size: 25px;
  letter-spacing: -.04em;
  margin: 14px 0 5px;
}

.dashboard-metric > small { color: var(--muted); font-size: 9px; }

.dashboard-main-grid,
.dashboard-lower-grid {
  display: grid;
  gap: 16px;
}

.dashboard-main-grid { grid-template-columns: minmax(0,1.7fr) minmax(320px,.8fr); }
.dashboard-lower-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.dashboard-lower-grid.logistics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dashboard-main-grid .panel,
.dashboard-lower-grid .panel { min-width: 0; }

.dashboard-panel-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-panel-head small { color: var(--muted); }
.dashboard-panel-head h2 { font-size: 15px; margin: 4px 0 0; }
.dashboard-panel-head > span { color: var(--primary); font-size: 10px; font-weight: 800; }
.dashboard-panel-head > span.attention { color: var(--danger); }
.dashboard-panel-head button { background: transparent; color: var(--primary); padding: 2px 0; }

.dashboard-sales-chart {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6,1fr);
  height: 220px;
  padding-top: 12px;
}

.dashboard-sales-column {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-rows: 20px minmax(0,1fr) 18px;
  height: 100%;
  text-align: center;
}

.dashboard-sales-column > strong { color: var(--text); font-size: 9px; }
.dashboard-sales-column > span { color: var(--muted); font-size: 9px; text-transform: capitalize; }
.dashboard-sales-column > div {
  align-items: end;
  background: linear-gradient(180deg,rgba(61,63,68,.015),rgba(61,63,68,.07));
  border-bottom: 1px solid var(--line);
  border-radius: 7px 7px 2px 2px;
  display: flex;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.dashboard-sales-column i {
  animation: dashboardBarRise .8s cubic-bezier(.2,.75,.25,1) var(--bar-delay) both;
  background: linear-gradient(180deg,#92959b,#45484e);
  border-radius: 7px 7px 2px 2px;
  display: block;
  height: var(--bar-height);
  min-height: 3px;
  width: min(38px,58%);
}

@keyframes dashboardBarRise {
  from { height: 0; opacity: .25; }
  to { height: var(--bar-height); opacity: 1; }
}

.dashboard-chart-foot {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
}

.dashboard-chart-foot span { color: var(--muted); font-size: 9px; }
.dashboard-chart-foot span i { background: #55585e; border-radius: 50%; display: inline-block; height: 7px; margin-right: 6px; width: 7px; }
.dashboard-chart-foot button { background: transparent; color: var(--primary); }

.dashboard-mix {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 150px minmax(0,1fr);
  min-height: 220px;
}

.dashboard-donut {
  align-items: center;
  animation: dashboardDonutIn .8s cubic-bezier(.2,.75,.25,1) both;
  border-radius: 50%;
  display: flex;
  height: 142px;
  justify-content: center;
  position: relative;
  width: 142px;
}

.dashboard-donut::after { background: var(--surface); border-radius: 50%; content: ""; height: 88px; position: absolute; width: 88px; }
.dashboard-donut.empty { background: var(--surface2); }
.dashboard-donut span { display: grid; position: relative; text-align: center; z-index: 1; }
.dashboard-donut strong { font-size: 22px; }
.dashboard-donut small { color: var(--muted); font-size: 9px; }

@keyframes dashboardDonutIn {
  from { opacity: 0; transform: rotate(-25deg) scale(.72); }
  to { opacity: 1; transform: none; }
}

.dashboard-mix-legend { display: grid; gap: 12px; }
.dashboard-mix-legend > div:not(.empty) { align-items: center; display: grid; gap: 9px; grid-template-columns: 8px minmax(0,1fr); }

/* Instagram connection and publishing */
.instagram-page { display: grid; gap: 20px; }
.instagram-hero { align-items: center; background: linear-gradient(125deg,#eaf4ff 0%,#f7f9fc 48%,#edf1f6 100%); border: 1px solid #d9e4ef; border-radius: 28px; display: grid; grid-template-columns: minmax(0,1fr) 240px; min-height: 320px; overflow: hidden; padding: 34px 42px; position: relative; }
.instagram-hero::before { background: radial-gradient(circle at center,rgba(98,166,234,.3),rgba(98,166,234,0) 70%); border-radius: 50%; content: ''; height: 430px; position: absolute; right: -95px; top: -135px; width: 430px; }
.instagram-hero-copy { max-width: 720px; position: relative; z-index: 1; }
.instagram-kicker { color: #4f7fa8; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.instagram-hero h2 { color: #172d40; font-size: clamp(30px,3.4vw,50px); letter-spacing: -.045em; line-height: 1.02; margin: 12px 0 14px; max-width: 710px; }
.instagram-hero p { color: #5f7080; font-size: 15px; line-height: 1.7; margin: 0 0 22px; max-width: 640px; }
.instagram-status { align-items: center; background: rgba(255,255,255,.78); border: 1px solid rgba(138,159,179,.32); border-radius: 99px; color: #465b6d; display: inline-flex; font-size: 12px; font-weight: 750; gap: 8px; padding: 9px 14px; }
.instagram-status i { background: #8ea2b5; border-radius: 50%; box-shadow: 0 0 0 4px rgba(142,162,181,.15); height: 7px; width: 7px; }
.instagram-status.connected i { background: #2a9b73; box-shadow: 0 0 0 4px rgba(42,155,115,.14); }
.instagram-status.ready i { background: #4f91cf; box-shadow: 0 0 0 4px rgba(79,145,207,.14); }
.instagram-phone { background: #fff; border: 7px solid #1e2e3b; border-radius: 30px; box-shadow: 0 24px 60px rgba(38,74,106,.2); height: 270px; justify-self: center; overflow: hidden; position: relative; transform: rotate(3deg); width: 154px; z-index: 1; }
.instagram-phone-top { align-items: center; color: #203548; display: flex; font-size: 8px; justify-content: space-between; padding: 8px 9px 7px; }
.instagram-phone-top span { background: linear-gradient(135deg,#73a9dc,#a4c8e8); border-radius: 50%; height: 15px; width: 15px; }
.instagram-phone-top b { font-family: Georgia,serif; font-size: 10px; }
.instagram-phone-top em { font-style: normal; letter-spacing: -1px; }
.instagram-phone-visual { background: linear-gradient(145deg,#d8e9f8,#f7fafc 55%,#dfe8ef); color: #18344b; height: 145px; padding: 24px 12px 12px; position: relative; }
.instagram-phone-visual::after { border: 1px solid rgba(57,115,167,.22); border-radius: 50%; content: ''; height: 88px; position: absolute; right: -34px; top: -12px; width: 88px; }
.instagram-phone-visual .instagram-dna { color: #6098c8; display: block; font-size: 7px; font-weight: 900; letter-spacing: .16em; margin-bottom: 9px; }
.instagram-phone-visual strong { display: block; font-size: 16px; letter-spacing: -.04em; line-height: 1.04; }
.instagram-phone-visual small { bottom: 10px; color: #6f8294; font-size: 6px; font-weight: 800; left: 12px; letter-spacing: .08em; position: absolute; }
.instagram-phone-actions { color: #233d52; font-size: 12px; padding: 8px 9px 3px; }
.instagram-phone-lines { display: grid; gap: 4px; padding: 2px 9px; }
.instagram-phone-lines i { background: #dce4ea; border-radius: 5px; display: block; height: 4px; }
.instagram-phone-lines i:nth-child(2) { width: 82%; }
.instagram-phone-lines i:nth-child(3) { width: 55%; }
.instagram-layout { display: grid; gap: 20px; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
.instagram-connect-panel,.instagram-compose-panel,.instagram-history-panel { border-color: #dbe5ee; }
.instagram-profile-mark,.instagram-compose-icon { align-items: center; background: linear-gradient(145deg,#edf5fc,#dceaf6); border-radius: 14px; color: #4d84b5; display: flex; font-size: 22px; height: 45px; justify-content: center; width: 45px; }
.instagram-avatar { border: 3px solid #e1edf7; border-radius: 50%; height: 48px; object-fit: cover; width: 48px; }
.instagram-steps { display: grid; gap: 0; list-style: none; margin: 14px 0 20px; padding: 0; }
.instagram-steps li { display: grid; gap: 13px; grid-template-columns: 32px minmax(0,1fr); padding: 13px 0; position: relative; }
.instagram-steps li:not(:last-child)::after { background: #dce5ec; content: ''; height: calc(100% - 34px); left: 15px; position: absolute; top: 38px; width: 2px; }
.instagram-steps li > span { align-items: center; background: #eef3f7; border: 1px solid #d6e0e8; border-radius: 50%; color: #688097; display: flex; font-size: 12px; font-weight: 800; height: 32px; justify-content: center; position: relative; z-index: 1; }
.instagram-steps li.done > span { background: #e3f4ed; border-color: #bfdfd2; color: #257c5e; }
.instagram-steps strong { color: #24394b; display: block; font-size: 14px; margin: 2px 0 4px; }
.instagram-steps p { color: #718291; font-size: 12px; line-height: 1.5; margin: 0; }
.instagram-setup-box { background: #f4f7fa; border: 1px solid #dde5ec; border-radius: 15px; margin: 0 0 14px; padding: 14px 15px; }
.instagram-setup-box strong { color: #30475a; display: block; font-size: 13px; }
.instagram-setup-box p { color: #708090; font-size: 12px; line-height: 1.5; margin: 5px 0; }
.instagram-setup-box small { color: #8a6e39; display: block; font-size: 10px; margin-top: 7px; }
.instagram-setup-box code { background: #e7edf2; border-radius: 8px; color: #5d7182; display: block; font-family: inherit; font-size: 9px; margin-top: 9px; overflow-wrap: anywhere; padding: 8px; }
.instagram-connect-button,.instagram-publish-button { justify-content: center; width: 100%; }
.instagram-account-card { background: linear-gradient(145deg,#f4f8fb,#edf4fa); border: 1px solid #d9e5ef; border-radius: 17px; margin-top: 14px; padding: 17px; }
.instagram-account-card > div strong,.instagram-account-card > div span { display: block; }
.instagram-account-card > div strong { color: #21394d; font-size: 17px; }
.instagram-account-card > div span { color: #6c8193; font-size: 12px; margin-top: 3px; }
.instagram-account-card dl { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 17px 0 0; }
.instagram-account-card dl div { background: rgba(255,255,255,.72); border-radius: 11px; padding: 10px; }
.instagram-account-card dt { color: #8594a1; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.instagram-account-card dd { color: #334d61; font-size: 11px; margin: 5px 0 0; overflow-wrap: anywhere; }
.instagram-safe-note { align-items: flex-start; background: #edf8f4; border: 1px solid #d3eae1; border-radius: 14px; display: flex; gap: 10px; margin-top: 14px; padding: 13px; }
.instagram-safe-note > span { align-items: center; background: #40a27e; border-radius: 50%; color: #fff; display: flex; flex: 0 0 auto; font-size: 10px; height: 21px; justify-content: center; width: 21px; }
.instagram-safe-note p { color: #617d72; font-size: 11px; line-height: 1.45; margin: 0; }
.instagram-safe-note strong { color: #2f6552; display: block; font-size: 12px; margin-bottom: 2px; }
.instagram-compose-panel form { display: grid; gap: 15px; margin-top: 12px; }
.instagram-compose-panel input,.instagram-compose-panel textarea { background: #fbfcfd; }
.instagram-image-preview { align-items: center; background: linear-gradient(145deg,#f4f7fa,#eef3f7); border: 1px dashed #c8d6e1; border-radius: 17px; color: #8093a4; display: flex; flex-direction: column; height: 190px; justify-content: center; overflow: hidden; position: relative; text-align: center; }
.instagram-image-preview > span:first-child { font-size: 28px; }
.instagram-image-preview p { font-size: 11px; margin: 8px 0 0; }
.instagram-image-preview img { display: none; height: 100%; object-fit: cover; width: 100%; }
.instagram-image-preview.has-image img { display: block; }
.instagram-image-preview.has-image > span,.instagram-image-preview.has-image > p { display: none; }
.instagram-preview-error { display: none; font-size: 11px; padding: 15px; }
.instagram-image-preview.image-error img { display: none; }
.instagram-image-preview.image-error .instagram-preview-error { display: block; }
.instagram-caption-meta { color: #8493a0; display: flex; font-size: 10px; justify-content: space-between; margin-top: 6px; }
.instagram-caption-meta b { color: #64819a; }
.instagram-history-panel { overflow: hidden; }
.instagram-history-list { display: grid; gap: 12px; margin-top: 14px; }
.instagram-history-card { align-items: center; background: #f8fafb; border: 1px solid #e2e8ed; border-radius: 16px; display: grid; gap: 14px; grid-template-columns: 74px minmax(0,1fr); padding: 10px; }
.instagram-history-card.failed { background: #fff7f6; border-color: #f0d9d5; }
.instagram-history-media { align-items: center; background: #e9eff4; border-radius: 11px; display: flex; height: 70px; justify-content: center; overflow: hidden; }
.instagram-history-media img { height: 100%; object-fit: cover; width: 100%; }
.instagram-history-card header { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.instagram-history-card header strong { color: #2b465b; font-size: 12px; }
.instagram-history-card header span { color: #82919d; font-size: 10px; }
.instagram-history-card p { color: #607383; display: -webkit-box; font-size: 11px; line-height: 1.45; margin: 7px 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.instagram-history-card small { color: #aa5f54; display: block; font-size: 10px; margin-top: 5px; }
.instagram-empty,.instagram-loading,.instagram-error { align-items: center; color: #748796; display: flex; flex-direction: column; justify-content: center; min-height: 230px; text-align: center; }
.instagram-empty > span,.instagram-error > span { align-items: center; background: #edf3f8; border-radius: 50%; color: #5d8fb9; display: flex; font-size: 24px; height: 58px; justify-content: center; margin-bottom: 12px; width: 58px; }
.instagram-empty strong,.instagram-loading h2,.instagram-error h2 { color: #30495d; font-size: 15px; }
.instagram-empty p,.instagram-loading p,.instagram-error p { font-size: 12px; margin: 6px 0 0; }
.instagram-loading > span { animation: instagramPulse 1.2s ease-in-out infinite; background: linear-gradient(135deg,#77a9d4,#c4dbed); border-radius: 50%; height: 42px; margin-bottom: 14px; width: 42px; }
.instagram-error button { margin-top: 16px; }
@keyframes instagramPulse { 50% { box-shadow: 0 0 0 12px rgba(93,145,190,.1); transform: scale(.9); } }
@media (max-width:980px) { .instagram-layout { grid-template-columns: 1fr; } .instagram-hero { grid-template-columns: minmax(0,1fr) 180px; padding: 30px; } }
@media (max-width:680px) { .instagram-hero { display: block; min-height: 0; padding: 27px 22px; } .instagram-phone { display: none; } .instagram-hero h2 { font-size: 34px; } .instagram-account-card dl { grid-template-columns: 1fr; } .instagram-history-card { grid-template-columns: 58px minmax(0,1fr); } .instagram-history-media { height: 56px; } }
.dashboard-mix-legend i { border-radius: 50%; height: 8px; width: 8px; }
.dashboard-mix-legend strong,
.dashboard-mix-legend small { display: block; }
.dashboard-mix-legend strong { font-size: 10px; }
.dashboard-mix-legend small { color: var(--muted); font-size: 8px; margin-top: 2px; }

.dashboard-pipeline { display: grid; gap: 13px; }
.dashboard-pipeline > div > span { align-items: center; display: flex; justify-content: space-between; }
.dashboard-pipeline strong { font-size: 10px; }
.dashboard-pipeline small { color: var(--muted); font-size: 9px; }
.dashboard-pipeline > div > i { background: var(--surface2); border-radius: 5px; display: block; height: 7px; margin-top: 7px; overflow: hidden; }
.dashboard-pipeline b {
  animation: dashboardPipelineGrow .8s cubic-bezier(.2,.75,.25,1) var(--pipeline-delay) both;
  background: linear-gradient(90deg,#404349,#9c9fa5);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--pipeline-width);
}

@keyframes dashboardPipelineGrow { from { width: 0; } to { width: var(--pipeline-width); } }

.dashboard-ranking { display: grid; gap: 7px; }
.dashboard-rank { align-items: center; display: grid; gap: 9px; grid-template-columns: 25px minmax(0,1fr); }
.dashboard-rank > em { align-items: center; background: var(--surface2); border-radius: 7px; color: var(--primary); display: flex; font-size: 9px; font-style: normal; font-weight: 850; height: 25px; justify-content: center; }
.dashboard-rank strong,
.dashboard-rank small { display: block; }
.dashboard-rank strong { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-rank small { color: var(--muted); font-size: 8px; margin-top: 2px; }
.dashboard-rank span > i { background: var(--surface2); border-radius: 4px; display: block; height: 4px; margin-top: 6px; overflow: hidden; }
.dashboard-rank b { animation: dashboardRankGrow .8s cubic-bezier(.2,.75,.25,1) both; background: #676a70; border-radius: inherit; display: block; height: 100%; width: var(--rank-width); }
@keyframes dashboardRankGrow { from { width: 0; } to { width: var(--rank-width); } }

.dashboard-tasks .task { padding: 9px; }
.dashboard-tasks .task strong { font-size: 10px; }
.dashboard-tasks .task p,
.dashboard-tasks .due { font-size: 8px; }
.dashboard-all-actions { background: transparent; color: var(--primary); margin-top: 15px; padding: 0; }

/* Keep the entire CRM in the same graphite family. */
.profile-hero,
.workspace-card,
.statistics-turnover-note {
  background: linear-gradient(130deg,#27292e,#555960) !important;
}

.statistics-bar-track { background: linear-gradient(180deg,rgba(70,72,77,.02),rgba(70,72,77,.08)); }
.statistics-bar-track i { background: linear-gradient(180deg,#9b9ea4,var(--primary)); }
.statistics-rank-row span > i b { background: linear-gradient(90deg,var(--primary),#a8aab0); }
.communication-tabs button.active,
.viber-primary,
.viber-button-mark,
.viber-tab-mark { background: #62656b !important; color: #fff !important; }
.profile-avatar,
.profile-hero .primary { background: #d1d2d5 !important; color: #282a2e !important; }
.viber-button,
.viber-mark,
.viber-windows-helper-icon,
.viber-history-icon,
.viber-batch-launch .primary,
.viber-queue-open { background: #62656b !important; color: #fff !important; }
.viber-modal-heading > div > span,
.viber-message-meta strong,
.viber-count-tag,
.viber-history-status { color: #5f6268 !important; }
.viber-recipient {
  background: color-mix(in srgb,#73767c 8%,var(--surface)) !important;
  border-color: color-mix(in srgb,#73767c 25%,var(--line)) !important;
}
.viber-recipient-option input { accent-color: #62656b !important; }

body.dark .dashboard-hero { background: linear-gradient(130deg,#18191c,#34373c); }
body.dark .dashboard-donut::after { background: var(--surface); }

@media (max-width: 1200px) {
  .dashboard-lower-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-actions-panel { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .dashboard-hero { grid-template-columns: 1fr; }
  .dashboard-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .dashboard-hero { padding: 23px 20px; }
  .dashboard-today { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 15px; }
  .dashboard-today strong { font-size: 17px; }
  .dashboard-metric-grid,
  .dashboard-lower-grid { grid-template-columns: 1fr; }
  .dashboard-lower-grid.logistics { grid-template-columns: 1fr; }
  .dashboard-actions-panel { grid-column: auto; }
  .dashboard-main-grid { gap: 13px; }
  .dashboard-sales-chart { gap: 6px; height: 190px; }
  .dashboard-sales-column > strong { font-size: 7px; }
  .dashboard-chart-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .dashboard-mix { grid-template-columns: 125px minmax(0,1fr); }
  .dashboard-donut { height: 120px; width: 120px; }
  .dashboard-donut::after { height: 74px; width: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-hero::before,
  .dashboard-metric,
  .dashboard-sales-column i,
  .dashboard-donut,
  .dashboard-pipeline b,
  .dashboard-rank b { animation: none !important; }
}
.section-title-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}

/* v122 — repeat sample communications */
.repeat-tab-mark{display:inline-grid;width:20px;height:20px;place-items:center;border-radius:7px;background:#dcecf7;color:#477a9a;font-size:13px;font-weight:900}
.communication-tabs button.active .repeat-tab-mark{background:#4d87aa;color:#fff}
.repeat-sampling-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.65fr);gap:17px;align-items:start}
.repeat-sampling-import textarea{width:100%;min-height:158px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.55}
.repeat-import-actions{display:flex;gap:9px;align-items:center;margin-top:11px}
.repeat-message-editor{margin-top:14px;padding:13px;border:1px solid #cfe0ea;border-radius:14px;background:linear-gradient(145deg,#f8fbfd,#f1f7fb)}
.repeat-message-editor-head,.repeat-message-editor-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.repeat-message-editor-head>div{display:flex;flex-direction:column;gap:2px}.repeat-message-editor-head small{color:#718b9b;font-size:8px;font-weight:900;letter-spacing:.07em}.repeat-message-editor-head strong{color:#31566d;font-size:12px}.repeat-message-editor-head>span{padding:6px 9px;border-radius:9px;background:#e3f0f7;color:#467795;font-size:8px;font-weight:850;white-space:nowrap}
.repeat-message-editor textarea{min-height:132px;margin-top:10px;font-family:inherit;font-size:12px;line-height:1.55;background:#fff}.repeat-message-editor-foot{margin-top:9px}.repeat-message-editor-foot small{max-width:520px;color:#6f8592;font-size:9px;line-height:1.45}.repeat-message-editor-foot b{color:#3f718e}.repeat-message-editor-foot button{flex:0 0 auto;white-space:nowrap}
.repeat-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 10px}
.repeat-summary>span{display:flex;min-height:54px;flex-direction:column;justify-content:center;padding:9px 12px;border:1px solid #d8e5ee;border-radius:12px;background:#f4f9fc;color:#708591;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.repeat-summary strong{color:#315b73;font-size:17px;line-height:1.1}
.repeat-summary .attention{border-color:#efd6ab;background:#fff9ec;color:#8f6b28}.repeat-summary .attention strong{color:#a16e16}
.repeat-row-list{display:grid;gap:7px;max-height:480px;overflow:auto;padding:2px 3px 2px 0}
.repeat-row{display:grid;grid-template-columns:34px minmax(160px,.85fr) minmax(220px,1.2fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid #dbe5eb;border-radius:13px;background:#fff}
.repeat-row.unmatched{border-color:#edd7b3;background:#fffbf2}
.repeat-row-check{display:grid;place-items:center;position:relative}.repeat-row-check input{position:absolute;opacity:0;pointer-events:none}.repeat-row-check span{display:grid;width:28px;height:28px;place-items:center;border:1px solid #cfdee7;border-radius:9px;background:#f2f7fa;color:#768b98;font-size:9px;font-weight:900}.repeat-row-check input:checked+span{border-color:#5f96b7;background:#5f96b7;color:#fff}
.repeat-sample-data{display:flex;min-width:0;flex-direction:column;gap:2px}.repeat-sample-data strong{color:#294c61;font-size:11px}.repeat-sample-data span,.repeat-sample-data small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repeat-sample-data span{color:#425c6b;font-size:9px;font-weight:750}.repeat-sample-data small{color:#87949c;font-size:8px}
.repeat-partner-select{display:flex;min-width:0;flex-direction:column;gap:4px}.repeat-partner-select>span{color:#7590a0;font-size:7px;font-weight:900;letter-spacing:.06em}.repeat-partner-select input{width:100%;height:36px;border:1px solid #d4e1e9;border-radius:9px;background:#f9fbfc;color:#3d5665;font-size:9px}.repeat-partner-select input:focus{border-color:#6a9fbe;box-shadow:0 0 0 3px rgba(106,159,190,.14);outline:0}
.repeat-row-status{display:flex;max-width:115px;flex-wrap:wrap;gap:4px;justify-content:flex-end}.repeat-row-status span{padding:5px 7px;border-radius:7px;font-size:7px;font-weight:900;white-space:nowrap}.repeat-row-status .ready,.repeat-row-status .sent{background:#e5f3eb;color:#367252}.repeat-row-status .needs-match{background:#fff0d9;color:#95651a}
.repeat-send-bar{position:sticky;z-index:7;bottom:12px;display:flex;gap:8px;align-items:center;margin-top:13px;padding:11px 12px;border:1px solid #b8d3e3;border-radius:14px;background:rgba(244,250,253,.97);box-shadow:0 13px 28px rgba(50,83,104,.12);backdrop-filter:blur(12px)}
.repeat-send-bar>div{display:flex;min-width:180px;flex:1;flex-direction:column}.repeat-send-bar strong{color:#315b73;font-size:10px}.repeat-send-bar span{margin-top:2px;color:#788b96;font-size:8px}.repeat-send-bar button{white-space:nowrap}
.repeat-empty{display:grid;min-height:210px;place-items:center;align-content:center;color:#7b8e99;text-align:center}.repeat-empty>span{display:grid;width:48px;height:48px;place-items:center;border-radius:15px;background:#e5f2f9;color:#4a86aa;font-size:24px}.repeat-empty strong{margin-top:10px;color:#38566a;font-size:12px}.repeat-empty p{margin:4px 0 0;font-size:9px}
.repeat-sampling-preview{min-width:0}.repeat-preview-list{display:grid;gap:8px;max-height:680px;overflow:auto}.repeat-preview-card{border:1px solid #dce6ec;border-radius:13px;background:#fbfdfe;overflow:hidden}.repeat-preview-card header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid #e3eaee;background:#f4f8fa}.repeat-preview-card header>div{display:flex;min-width:0;flex-direction:column}.repeat-preview-card strong{overflow:hidden;color:#315267;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.repeat-preview-card small{margin-top:2px;color:#81919a;font-size:8px}.repeat-preview-card p{margin:0;padding:11px 12px;color:#526873;font-size:9px;line-height:1.55;white-space:pre-wrap}
.repeat-channel-state{display:flex;gap:4px}.repeat-channel-state i{display:grid;width:24px;height:24px;place-items:center;border-radius:8px;background:#edf1f3;color:#9da8ae;font-size:8px;font-style:normal;font-weight:900}.repeat-channel-state i.ready{background:#deedf7;color:#467d9e}
.repeat-helper-update{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;margin:11px 0;padding:11px 12px;border:1px solid #d6e6ef;border-radius:13px;background:#f1f8fc}.repeat-helper-update>span{display:grid;width:32px;height:32px;place-items:center;border-radius:10px;background:#4f89ad;color:#fff;font-weight:900}.repeat-helper-update strong{display:block;color:#345a70;font-size:10px}.repeat-helper-update p{margin:3px 0 0;color:#748995;font-size:8px;line-height:1.4}.repeat-viber-queue .viber-queue-item{align-items:start}.repeat-viber-queue .viber-queue-item p{grid-column:1/-1;max-height:72px;overflow:auto;margin:7px 0 0;padding:8px;border-radius:8px;background:#f5f8fa;color:#667a85;font-size:8px;line-height:1.45;white-space:pre-wrap}
@media(max-width:1120px){.repeat-sampling-layout{grid-template-columns:1fr}.repeat-sampling-preview{order:2}.repeat-row{grid-template-columns:34px minmax(150px,.8fr) minmax(210px,1.2fr) auto}}
@media(max-width:760px){.communication-tabs{width:100%;overflow:auto}.communication-tabs button{flex:0 0 auto}.repeat-message-editor-head,.repeat-message-editor-foot{align-items:stretch;flex-direction:column}.repeat-message-editor-head>span{align-self:flex-start}.repeat-message-editor-foot button{width:100%}.repeat-summary{grid-template-columns:1fr}.repeat-row{grid-template-columns:32px minmax(0,1fr)}.repeat-partner-select,.repeat-row-status{grid-column:2}.repeat-row-status{max-width:none;justify-content:flex-start}.repeat-send-bar{align-items:stretch;flex-direction:column}.repeat-send-bar button{width:100%}.repeat-helper-update{grid-template-columns:34px minmax(0,1fr)}.repeat-helper-update a{grid-column:1/-1;justify-content:center}}

/* v149 — local personal Viber inbox */
.viber-live-inbox{margin-bottom:18px;padding:0;overflow:hidden;border-color:#d9e2eb;background:#f8fafc;box-shadow:0 18px 44px rgba(31,47,66,.1)}
.viber-live-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #dce5ed;background:linear-gradient(135deg,#f9fbfd,#eef5fb)}
.viber-live-title{display:flex;align-items:center;min-width:0;gap:13px}.viber-live-mark{display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;border-radius:14px;background:linear-gradient(145deg,#665cac,#8173cf);box-shadow:0 8px 18px rgba(102,92,172,.24);color:#fff;font-size:18px;font-weight:900}
.viber-live-title small{display:block;color:#607b91;font-size:11px;font-weight:850;letter-spacing:.08em}.viber-live-title h2{margin:3px 0 2px;color:#24394b;font-size:19px}.viber-live-title p{margin:0;color:#718393;font-size:13px}
.viber-live-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.viber-live-actions a,.viber-live-actions button{min-height:38px;white-space:nowrap}
.viber-live-status{display:grid;grid-template-columns:10px auto 1fr;align-items:center;gap:8px;padding:10px 20px;border-bottom:1px solid #e1e8ee;background:#fff;color:#596d7c}.viber-live-status>span{width:9px;height:9px;border-radius:50%;background:#9ba9b4;box-shadow:0 0 0 4px rgba(155,169,180,.14)}.viber-live-status strong{font-size:13px}.viber-live-status small{color:#82919d;font-size:12px}.viber-live-status[data-state="connecting"]>span{background:#5f8fb0;animation:viberLivePulse 1.2s ease-in-out infinite}.viber-live-status[data-state="connected"]>span{background:#50a570;box-shadow:0 0 0 4px rgba(80,165,112,.15)}.viber-live-status[data-state="warning"]>span{background:#d98a48;box-shadow:0 0 0 4px rgba(217,138,72,.15)}
@keyframes viberLivePulse{50%{opacity:.42;transform:scale(.78)}}
.viber-live-stage{position:relative;display:grid;min-height:420px;place-items:center;background:#11151a;overflow:hidden}.viber-live-stage img{display:block;width:100%;max-height:720px;object-fit:contain;background:#0b0d10}.viber-live-stage img[hidden]{display:none}
.viber-live-stage img:not([hidden]){cursor:crosshair;user-select:none;-webkit-user-drag:none}
.viber-live-empty{display:grid;max-width:510px;place-items:center;padding:50px 24px;color:#b9c3cc;text-align:center}.viber-live-empty[hidden]{display:none}.viber-live-empty>span{display:grid;width:66px;height:66px;place-items:center;border:1px solid rgba(255,255,255,.12);border-radius:21px;background:linear-gradient(145deg,#5d55a0,#7569bd);box-shadow:0 16px 36px rgba(0,0,0,.32);color:#fff;font-size:25px;font-weight:900}.viber-live-empty strong{margin-top:17px;color:#f4f7fa;font-size:17px}.viber-live-empty p{margin:7px 0 0;font-size:13px;line-height:1.55}
.viber-live-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 14px;padding:15px 18px;border-top:1px solid #dce4ea;background:#fff}.viber-live-compose label{grid-column:1/-1;color:#526b7c;font-size:12px;font-weight:800}.viber-live-compose textarea{min-height:76px;width:100%;resize:vertical;border:1px solid #cfdce6;border-radius:12px;padding:11px 12px;background:#fbfdff;color:#24394b;font:inherit;line-height:1.45;outline:none}.viber-live-compose textarea:focus{border-color:#769fbb;box-shadow:0 0 0 3px rgba(95,143,176,.14)}.viber-live-compose-actions{display:grid;grid-template-columns:repeat(3,max-content);gap:8px}.viber-live-compose-actions button{min-height:42px;white-space:nowrap}.viber-live-compose>small{grid-column:1/-1;color:#7b8c99;font-size:11px;line-height:1.45}
.viber-live-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 18px;border-top:1px solid #dce4ea;background:#fff;color:#647887;font-size:12px}.viber-live-foot>div{display:flex;gap:12px}.viber-live-foot .inline-add{font-size:12px}
body.dark .viber-live-inbox{border-color:#3a4650;background:#20262c}body.dark .viber-live-head{border-color:#3a4650;background:linear-gradient(135deg,#262d33,#303b45)}body.dark .viber-live-title h2{color:#edf4f8}body.dark .viber-live-title p,body.dark .viber-live-title small{color:#a8bac7}body.dark .viber-live-status,body.dark .viber-live-compose,body.dark .viber-live-foot{border-color:#39434b;background:#242b31;color:#ccd5dc}body.dark .viber-live-status small,body.dark .viber-live-compose>small{color:#9fadb7}body.dark .viber-live-compose label{color:#c8d5de}body.dark .viber-live-compose textarea{border-color:#45525c;background:#1c2227;color:#edf4f8}
@media(max-width:900px){.viber-live-head{align-items:flex-start;flex-direction:column}.viber-live-actions{justify-content:flex-start}.viber-live-status{grid-template-columns:10px 1fr}.viber-live-status small{grid-column:2}.viber-live-stage{min-height:300px}.viber-live-compose{grid-template-columns:1fr}.viber-live-compose-actions{grid-template-columns:repeat(3,1fr)}.viber-live-compose-actions button{width:100%}}
@media(max-width:620px){.viber-live-actions{display:grid;width:100%;grid-template-columns:1fr}.viber-live-actions>*{justify-content:center}.viber-live-stage{min-height:230px}.viber-live-compose-actions{grid-template-columns:1fr}.viber-live-foot{align-items:flex-start;flex-direction:column}.viber-live-foot>div{width:100%;flex-wrap:wrap;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.viber-live-status[data-state="connecting"]>span{animation:none}}

/* v152 — responsive CRM for phones and narrow split panes */
@media (max-width: 1080px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  main,
  #app,
  .content,
  .content > *,
  .panel,
  .orders-layout,
  .orders-layout > *,
  .communication-page,
  .communication-layout,
  .communication-layout > *,
  .viber-live-inbox,
  .viber-live-head,
  .viber-live-title,
  .viber-live-status,
  .viber-live-stage,
  .viber-composer,
  .communication-history {
    max-width: 100%;
    min-width: 0;
  }

  .communication-layout,
  .communication-layout.communication-calendar-layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .communication-calendar-layout .communication-composer {
    order: 1;
  }

  .communication-calendar-layout .communication-calendar-panel {
    order: 2;
  }

  .communication-calendar-layout .communication-history {
    order: 3;
  }

  .table-wrap {
    max-width: 100%;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) {
  header {
    gap: 8px;
    min-height: 82px;
  }

  header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  header h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  header p {
    display: -webkit-box;
    line-height: 1.25;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 7px;
  }

  .content,
  .content.communication-page {
    padding: 14px 12px 34px;
  }

  .section-title {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 15px;
  }

  .section-title-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .section-title-actions button {
    min-height: 44px;
    width: 100%;
  }

  .panel {
    border-radius: 14px;
    padding: 15px;
  }

  .communication-tabs {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    width: 100%;
  }

  .communication-tabs button {
    flex: initial;
    font-size: 11px;
    justify-content: center;
    min-height: 44px;
    min-width: 0;
    padding: 8px 5px;
    text-align: center;
    white-space: normal;
  }

  .communication-layout {
    gap: 12px;
  }

  .communication-composer .field input,
  .communication-composer .field select,
  .communication-composer .field textarea,
  .viber-recipient-search > input {
    font-size: 16px;
    width: 100%;
  }

  .communication-group-select {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .communication-group-select button,
  .communication-actions button,
  .viber-resume-controls button,
  .viber-recipient-foot button {
    min-height: 44px;
  }

  .communication-selected-chip,
  .viber-selected-chip {
    max-width: 100%;
    width: 100%;
  }

  .viber-live-inbox {
    border-radius: 14px;
    margin-bottom: 12px;
  }

  .viber-live-head {
    gap: 13px;
    padding: 15px;
  }

  .viber-live-title {
    align-items: flex-start;
  }

  .viber-live-title h2 {
    font-size: 17px;
  }

  .viber-live-title p {
    font-size: 12px;
    line-height: 1.45;
  }

  .viber-live-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .viber-live-actions > * {
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }

  .viber-live-status {
    grid-template-columns: 10px minmax(0, 1fr);
    padding: 10px 15px;
  }

  .viber-live-status small {
    grid-column: 2;
    line-height: 1.4;
  }

  .viber-live-stage {
    min-height: 240px;
    max-height: 62svh;
  }

  .viber-live-stage img {
    height: auto;
    max-height: 62svh;
  }

  .viber-live-foot {
    align-items: flex-start;
    flex-direction: column;
    padding: 11px 15px;
  }

  .viber-live-foot > div {
    justify-content: space-between;
    width: 100%;
  }

  .orders-layout,
  .orders-layout > *,
  .calendar-grid,
  .calendar-weekdays {
    min-width: 0;
  }

  .calendar-head {
    gap: 7px;
  }

  .calendar-head button {
    min-height: 44px;
    min-width: 44px;
    padding: 8px;
  }
}

@media (max-width: 430px) {
  header {
    padding-inline: 10px;
  }

  header p {
    display: none;
  }

  .communication-tabs {
    grid-template-columns: 1fr;
  }

  .communication-group-select,
  .section-title-actions {
    grid-template-columns: 1fr;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 3px;
  }

  .calendar-day {
    min-height: 40px;
  }
}

/* Επαναληπτικά — κοινό μητρώο δειγμάτων */
.repeat-tracking-page {
  display: grid;
  gap: 18px;
}

.repeat-tracking-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 25px 28px;
  color: #fff;
  border-radius: 20px;
  background: linear-gradient(125deg, #183552 0%, #285d87 60%, #4b82ab 100%);
  box-shadow: 0 14px 32px rgba(35, 79, 116, .16);
}

.repeat-tracking-hero > div:first-child {
  max-width: 680px;
}

.repeat-tracking-hero > div > span,
.repeat-list-head span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .09em;
}

.repeat-tracking-hero h2,
.repeat-list-head h2 {
  margin: 0;
}

.repeat-tracking-hero h2 {
  font-size: 28px;
}

.repeat-tracking-hero p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.55;
}

.repeat-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 9px;
  min-width: min(100%, 455px);
}

.repeat-summary > div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(8px);
}

.repeat-summary strong,
.repeat-summary span {
  display: block;
}

.repeat-summary strong {
  margin-bottom: 5px;
  font-size: 26px;
}

.repeat-summary span {
  color: rgba(255,255,255,.8);
  font-size: 12px;
  line-height: 1.35;
}

.repeat-entry-panel {
  padding: 20px;
}

.repeat-entry-form {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.3fr 1fr;
  gap: 13px;
  align-items: end;
}

.repeat-entry-form label,
.repeat-entry-form label > span {
  display: block;
}

.repeat-entry-form label > span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.repeat-entry-form input,
.repeat-entry-form select,
.repeat-entry-form textarea {
  width: 100%;
}

.repeat-entry-notes {
  grid-column: 1 / -2;
}

.repeat-entry-form button {
  min-height: 48px;
}

.repeat-list-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.repeat-list-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
}

.repeat-list-head span {
  color: #5782a3;
}

.repeat-list-head em {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  color: #285d87;
  border-radius: 18px;
  background: #e6f1f8;
  font-style: normal;
  font-weight: 850;
}

.repeat-case-row {
  display: grid;
  grid-template-columns: 42px minmax(195px, 1.15fr) minmax(150px, .82fr) minmax(165px, .9fr) minmax(190px, .9fr) minmax(132px, .55fr);
  gap: 15px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.repeat-case-row:last-child {
  border-bottom: 0;
}

.repeat-case-row.is-complete {
  background: #fbfdfb;
}
.repeat-ready .repeat-list-head { background: #eaf3f9; }
.repeat-case-row.is-ready { background: #f8fbfe; }

.repeat-execution-panel { padding: 24px; margin: 24px 0; }
.repeat-execution-panel .repeat-list-head { padding: 0; gap: 16px; }
.repeat-execution-panel p { color: var(--muted); line-height: 1.65; }
.repeat-request-recipients { font-size: 12px; overflow-wrap: anywhere; }
.repeat-request-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 14px; }
.repeat-execution-panel label { display: block; font-weight: 700; margin-bottom: 8px; }
.repeat-execution-panel textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid var(--line); border-radius: 12px; resize: vertical; font: inherit; }
.repeat-execution-panel > .primary { margin: 14px 0 10px; }
.repeat-execution-panel > small { display: block; color: var(--muted); line-height: 1.6; }
.repeat-case-note > small { display: block; line-height: 1.5; margin-top: 6px; }
.repeat-request-status { color: #497995; font-weight: 700; }
.repeat-request-status.is-rejected, .repeat-request-status.is-unknown, .repeat-request-error { color: #a74732; }
.repeat-request-comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.repeat-request-preview { padding: 16px; }
.repeat-request-preview > p { line-height: 1.6; overflow-wrap: anywhere; }
.repeat-request-table { overflow: auto; max-height: 45vh; margin: 18px 0; }
.repeat-request-table table { width: 100%; border-collapse: collapse; }
.repeat-request-table th, .repeat-request-table td { padding: 10px; text-align: left; border: 1px solid var(--line); }
.repeat-request-table th { background: #edf4f8; }
#repeatSendResult { padding: 12px 0; line-height: 1.6; font-weight: 700; }
.repeat-case-actions { min-width: 155px; }
.repeat-case-actions > button { white-space: normal; }
.repeat-case-audit details { margin-top: 8px; font-size: 11px; }
.repeat-case-audit details small { display: block; margin-top: 5px; }
.repeat-case-check input:disabled + span { opacity: .35; cursor: not-allowed; }
.repeat-executed-check { color: #2e9960; font-size: 24px; font-weight: 800; }
@media(max-width:700px) {
  .repeat-execution-panel { padding: 16px; }
  .repeat-execution-panel .repeat-list-head { align-items: flex-start; flex-direction: column; }
  .repeat-request-selection > button { flex: 1; }
}

.repeat-case-check {
  cursor: pointer;
}

.repeat-case-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.repeat-case-check span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: transparent;
  border: 2px solid #a9bfd0;
  border-radius: 9px;
  background: #fff;
  font-size: 18px;
  font-weight: 900;
  transition: .16s ease;
}

.repeat-case-check input:focus-visible + span {
  outline: 3px solid rgba(60, 125, 178, .22);
  outline-offset: 2px;
}

.repeat-case-check input:checked + span {
  color: #fff;
  border-color: #2e9960;
  background: #2e9960;
}

.repeat-case-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.repeat-case-title > strong {
  color: var(--ink);
  font-size: 16px;
}

.repeat-type {
  padding: 5px 9px;
  color: #356e99;
  border-radius: 999px;
  background: #e6f1f8;
  font-size: 12px;
  font-weight: 800;
}

.repeat-type.is-unregister {
  color: #985c22;
  background: #fff0dc;
}

.repeat-case-main p,
.repeat-case-note p,
.repeat-case-partner strong,
.repeat-case-audit strong,
.repeat-case-audit small,
.repeat-case-audit span {
  display: block;
  margin: 0;
}

.repeat-case-main p,
.repeat-case-note p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.repeat-case-partner span,
.repeat-case-note > span,
.repeat-case-audit > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.repeat-case-partner strong,
.repeat-case-audit strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.repeat-case-audit small {
  margin-top: 4px;
  color: #7790a2;
  font-size: 11px;
  line-height: 1.35;
}

.repeat-case-actions {
  display: grid;
  gap: 7px;
}

.repeat-case-actions button,
.repeat-type-editor select {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.repeat-type-editor {
  display: grid;
  gap: 4px;
}

.repeat-type-editor span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.repeat-type-editor select {
  color: #356e99;
  border: 1px solid #bfd6e6;
  outline: 0;
}

.repeat-type-editor select:focus {
  border-color: #6fa3c8;
  background: #eef7fc;
  box-shadow: 0 0 0 3px rgba(80, 139, 184, .12);
}

.repeat-delete-action {
  color: #a34d4d;
  border: 1px solid #ead0d0;
}

.repeat-delete-action:hover {
  border-color: #d89c9c;
  background: #fff3f3;
}

.repeat-empty {
  padding: 36px 20px;
  text-align: center;
}

.repeat-empty > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 11px;
  color: #3d7aa7;
  border-radius: 15px;
  background: #e8f2f8;
  font-size: 22px;
  font-weight: 900;
}

.repeat-empty strong,
.repeat-empty p {
  display: block;
}

.repeat-empty p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .repeat-tracking-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .repeat-summary {
    width: 100%;
  }

  .repeat-entry-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repeat-entry-notes {
    grid-column: 1 / 2;
  }

  .repeat-case-row {
    grid-template-columns: 38px minmax(195px, 1.2fr) minmax(145px, .8fr) minmax(170px, .95fr) minmax(130px, .65fr);
  }

  .repeat-case-audit {
    grid-column: 2 / 5;
    padding-top: 9px;
    border-top: 1px dashed #d7e2ea;
  }

  .repeat-case-actions {
    grid-column: 5;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 720px) {
  .repeat-tracking-hero {
    padding: 21px 18px;
  }

  .repeat-summary {
    grid-template-columns: 1fr;
  }

  .repeat-summary > div {
    min-height: 0;
  }

  .repeat-entry-form {
    grid-template-columns: 1fr;
  }

  .repeat-entry-notes {
    grid-column: auto;
  }

  .repeat-case-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
  }

  .repeat-case-partner,
  .repeat-case-note,
  .repeat-case-audit,
  .repeat-case-actions {
    grid-column: 2;
  }

  .repeat-case-actions {
    grid-row: auto;
    grid-template-columns: 1fr 1fr;
  }
}

.repeat-page-title {
  margin-bottom: 0;
}

.repeat-inline-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.repeat-inline-summary span {
  padding: 8px 12px;
  color: #426884;
  border: 1px solid #d5e5f0;
  border-radius: 999px;
  background: #f2f8fc;
  font-size: 13px;
}

.repeat-inline-summary span.unregister {
  color: #8a5b27;
  border-color: #f0dcc2;
  background: #fff8ee;
}

.repeat-paste-panel {
  overflow: hidden;
  padding: 0;
}

.repeat-paste-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--line);
}

.repeat-paste-heading small {
  color: #5e88a8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
}

.repeat-paste-heading h2 {
  margin: 4px 0 6px;
  font-size: 21px;
}

.repeat-paste-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.repeat-column-guide {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 420px;
  padding: 11px 13px;
  color: #587187;
  border: 1px solid #d7e5ef;
  border-radius: 12px;
  background: #f7fafc;
  font-size: 12px;
  line-height: 1.45;
}

.repeat-column-guide span {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: #fff;
  border-radius: 6px;
  background: #4f85ad;
  font-size: 11px;
  font-weight: 850;
}

.repeat-column-guide i {
  color: #afc1ce;
  font-style: normal;
}

.repeat-paste-form {
  padding: 18px 22px 20px;
}

.repeat-paste-shell {
  overflow: hidden;
  border: 1px solid #c8d9e5;
  border-radius: 14px;
  background: #f9fbfd;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.repeat-paste-shell:focus-within {
  border-color: #5a90b9;
  box-shadow: 0 0 0 3px rgba(80, 139, 184, .14);
}

.repeat-paste-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  color: #63829a;
  border-bottom: 1px solid #dbe6ee;
  background: #edf4f8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
}

.repeat-paste-toolbar em {
  padding: 3px 7px;
  color: #6c8495;
  border: 1px solid #d1dee8;
  border-radius: 5px;
  background: #fff;
  font-style: normal;
  letter-spacing: 0;
}

#repeatCasePaste {
  display: block;
  width: 100%;
  min-height: 230px;
  resize: vertical;
  padding: 15px 17px;
  color: #233546;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #fff;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
  tab-size: 4;
  white-space: pre;
}

#repeatCasePaste::placeholder {
  color: #9aabb7;
}

.repeat-paste-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
}

.repeat-paste-summary strong,
.repeat-paste-summary span {
  display: block;
}

.repeat-paste-summary strong {
  color: var(--ink);
  font-size: 14px;
}

.repeat-paste-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.repeat-paste-footer button {
  min-width: 190px;
  min-height: 44px;
}

@media (max-width: 900px) {
  .repeat-paste-heading {
    flex-direction: column;
  }

  .repeat-column-guide {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .repeat-inline-summary,
  .repeat-paste-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .repeat-inline-summary span {
    text-align: center;
  }

  .repeat-paste-heading,
  .repeat-paste-form {
    padding-left: 15px;
    padding-right: 15px;
  }

  #repeatCasePaste {
    min-height: 270px;
    font-size: 13px;
  }

  .repeat-paste-footer button {
    width: 100%;
  }
}

.crm-version-banner {
  position: fixed;
  z-index: 2600;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  max-width: min(720px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid #bfd6ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(30, 63, 91, .22);
  color: #263848;
}

.crm-version-banner .crm-version-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #e8f3fb;
  color: #3678aa;
  font-size: 24px;
  font-weight: 900;
}

.crm-version-banner strong,
.crm-version-banner span { display: block; }
.crm-version-banner span { margin-top: 3px; color: #728596; font-size: 12px; }
.crm-version-banner button { white-space: nowrap; }

@media (max-width: 720px) {
  .crm-version-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: auto 1fr;
    max-width: none;
  }
  .crm-version-banner button { width: 100%; }
}

/* Admin workspace */
.admin-page {
  max-width: 1500px;
  margin: 0 auto;
}

.admin-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  padding: 30px 32px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: linear-gradient(130deg, #173650 0%, #285b80 58%, #4b86ad 100%);
  box-shadow: 0 18px 45px rgba(25, 63, 92, .18);
  color: #fff;
}

.admin-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 52px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.admin-hero-copy,
.admin-hero-actions {
  position: relative;
  z-index: 1;
}

.admin-hero-copy > span,
.admin-users-toolbar > div > span,
.admin-dialog-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #b9d8ed;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
}

.admin-hero h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.1;
}

.admin-hero p {
  max-width: 690px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.65;
}

.admin-hero-actions {
  display: flex;
  flex: none;
  gap: 10px;
}

.admin-hero-actions button {
  min-height: 44px;
  padding-inline: 17px;
  border: 1px solid rgba(255, 255, 255, .3);
}

.admin-hero-actions .secondary {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  backdrop-filter: blur(8px);
}

.admin-hero-actions .primary {
  background: #fff;
  color: #245678;
  box-shadow: 0 9px 24px rgba(10, 35, 54, .2);
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-summary > .admin-summary-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(28, 55, 76, .06);
}

.admin-summary-card > i {
  display: grid;
  flex: none;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--primary2);
  color: var(--primary);
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.admin-summary-card > i.online {
  background: #e8f7ef;
  color: #1f9858;
  font-size: 13px;
}

.admin-summary-card span,
.admin-summary-card strong,
.admin-summary-card small {
  display: block;
}

.admin-summary-card strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.admin-summary-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.admin-users-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface2) 40%, var(--surface));
  box-shadow: 0 12px 34px rgba(28, 55, 76, .06);
}

.admin-users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-users-toolbar > div > span {
  margin-bottom: 4px;
  color: var(--primary);
}

.admin-users-toolbar h3,
.admin-users-toolbar p {
  margin: 0;
}

.admin-users-toolbar h3 {
  font-size: 18px;
}

.admin-users-toolbar p {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--primary2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.admin-user-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.admin-user-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(28, 55, 76, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-user-card:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  box-shadow: 0 13px 30px rgba(28, 55, 76, .09);
  transform: translateY(-2px);
}

.admin-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--primary2) 60%, var(--surface)));
}

.admin-user-head .person {
  min-width: 0;
  margin: 0;
}

.admin-user-head .avatar {
  width: 42px;
  height: 42px;
  background: #dcecf7;
  color: #315f80;
  font-size: 13px;
}

.admin-user-head .person > div:last-child {
  min-width: 0;
}

.admin-user-head .person strong,
.admin-user-head .person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-head .person small {
  margin-top: 4px;
}

.admin-online,
.admin-offline {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 7px;
  font-size: 11px;
  font-weight: 750;
}

.admin-online {
  color: #18834c;
}

.admin-online i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 0 4px rgba(39, 174, 96, .13);
}

.admin-offline {
  color: var(--muted);
}

.admin-user-body {
  padding: 17px 18px 5px;
}

.admin-user-settings,
.admin-add-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, .8fr);
  gap: 12px;
  padding: 0;
}

.admin-user-settings label,
.admin-add-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.admin-user-settings input,
.admin-user-settings select,
.admin-add-fields input,
.admin-add-fields select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.admin-user-settings input:focus,
.admin-user-settings select:focus,
.admin-add-fields input:focus,
.admin-add-fields select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.admin-access-fieldset {
  margin: 17px 0 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.admin-access-fieldset legend {
  width: 100%;
  padding: 0 3px 9px;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.admin-access-fieldset legend span,
.admin-access-fieldset legend em {
  display: inline-block;
}

.admin-access-fieldset legend em {
  float: right;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
}

.admin-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.admin-access-grid .admin-access-choice {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.admin-access-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.admin-access-grid .admin-access-choice > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface2) 62%, var(--surface));
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  transition: .16s ease;
}

.admin-access-choice span i {
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid color-mix(in srgb, var(--muted) 45%, var(--line));
  border-radius: 6px;
  color: transparent;
  font-size: 10px;
  font-style: normal;
}

.admin-access-choice input:checked + span {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
  background: color-mix(in srgb, var(--primary2) 75%, var(--surface));
  color: var(--primary);
}

.admin-access-choice input:checked + span i {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.admin-access-choice input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--primary) 20%, transparent);
  outline-offset: 1px;
}

.admin-user-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface2) 38%, var(--surface));
}

.admin-user-footer button {
  min-width: 112px;
}

.admin-role-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}

.admin-role-pill.role-owner {
  background: #eee9ff;
  color: #5947a8;
}

.admin-role-pill.role-logistics {
  background: #e2f2ff;
  color: #3477a6;
}

.admin-role-pill.role-viewer {
  background: var(--surface2);
  color: var(--muted);
}

.admin-note {
  margin: 15px 4px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.admin-loading,
.admin-error {
  padding: 54px 24px;
  text-align: center;
}

.admin-loading p,
.admin-error p {
  color: var(--muted);
}

.admin-add-dialog > h2 {
  margin-bottom: 8px;
}

.admin-add-dialog > p {
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-dialog-eyebrow {
  color: var(--primary);
}

.admin-add-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-preset-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 8px;
}

.admin-preset-row strong {
  margin-right: 5px;
  color: var(--muted);
  font-size: 11px;
}

.admin-preset-row button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.admin-add-access {
  margin-top: 11px;
}

.admin-dialog-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--primary2);
  color: var(--primary);
}

.admin-dialog-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .admin-user-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 20px;
  }

  .admin-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-summary {
    grid-template-columns: 1fr;
  }

  .admin-user-list {
    padding: 10px;
  }

  .admin-user-head,
  .admin-user-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user-settings,
  .admin-add-fields,
  .admin-access-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-footer button,
  .admin-hero-actions button {
    width: 100%;
  }
}

/* v162 · Αυτόνομο, δομημένο προσωπικό Viber */
.viber-native-chat {
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
  border-color: #d7e1e9;
  background: #fff;
  box-shadow: 0 18px 46px rgba(31, 47, 66, .11);
}

.viber-native-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #dce5ed;
  background: linear-gradient(135deg, #f9fbfd, #eef5fb);
}

.viber-chat-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  min-height: 590px;
  background: #f5f8fb;
}

.viber-chat-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid #dce5ed;
  background: #fff;
}

.viber-chat-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px;
  padding: 0 12px;
  border: 1px solid #d6e1ea;
  border-radius: 12px;
  background: #f5f8fb;
  color: #688093;
}

.viber-chat-search input {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #24394b;
  font: inherit;
  font-size: 14px;
}

.viber-chat-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 12px;
}

.viber-chat-list-empty {
  padding: 28px 16px;
  color: #7b8e9d;
  font-size: 13px;
  text-align: center;
}

.viber-chat-list-empty strong,
.viber-chat-list-empty small {
  display: block;
}

.viber-chat-list-empty strong {
  color: #31495c;
  font-size: 13px;
}

.viber-chat-list-empty small {
  margin-top: 7px;
  color: #7b8e9d;
  font-size: 12px;
  line-height: 1.45;
}

.viber-chat-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #24394b;
  text-align: left;
  cursor: pointer;
}

.viber-chat-row:hover,
.viber-chat-row.active {
  background: #edf4fa;
}

.viber-chat-row.active {
  box-shadow: inset 3px 0 #7569bd;
}

.viber-chat-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #665cac, #8173cf);
  color: #fff;
  font-size: 16px;
  font-weight: 850;
}

.viber-chat-row > span:nth-child(2) {
  min-width: 0;
}

.viber-chat-row strong,
.viber-chat-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viber-chat-row strong {
  font-size: 14px;
}

.viber-chat-row small,
.viber-chat-row time {
  margin-top: 3px;
  color: #7f909d;
  font-size: 12px;
}

.viber-chat-main {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: #eef3f7;
}

.viber-chat-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #dce5ed;
  background: #fff;
}

.viber-chat-current small,
.viber-chat-current strong {
  display: block;
}

.viber-chat-current small {
  color: #71879a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.viber-chat-current strong {
  margin-top: 3px;
  color: #24394b;
  font-size: 16px;
}

.viber-chat-messages {
  display: flex;
  min-height: 390px;
  max-height: 590px;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 20px clamp(14px, 3vw, 42px);
  background-color: #eef3f7;
  background-image: radial-gradient(circle at 1px 1px, rgba(102, 92, 172, .08) 1px, transparent 0);
  background-size: 22px 22px;
}

.viber-chat-empty {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  color: #718392;
  text-align: center;
}

.viber-chat-empty > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #665cac, #8173cf);
  box-shadow: 0 12px 28px rgba(102, 92, 172, .24);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.viber-chat-empty strong {
  margin-top: 14px;
  color: #31495c;
  font-size: 16px;
}

.viber-chat-empty p {
  max-width: 430px;
  margin: 6px 0 0;
  font-size: 13px;
}

.viber-bubble {
  align-self: flex-start;
  max-width: min(72%, 680px);
  padding: 10px 12px 7px;
  border-radius: 15px 15px 15px 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(34, 52, 67, .08);
  color: #24394b;
}

.viber-bubble.outgoing {
  align-self: flex-end;
  border-radius: 15px 15px 4px 15px;
  background: #ddd8f6;
}

.viber-bubble p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.viber-bubble time {
  display: block;
  min-height: 14px;
  margin-top: 4px;
  color: #718392;
  font-size: 11px;
  text-align: right;
}

.viber-bubble.media {
  padding: 5px;
}

.viber-chat-media {
  display: grid;
  min-width: 180px;
  min-height: 120px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: #dfe7ed;
  color: #687e8f;
  font-size: 12px;
}

.viber-chat-media img {
  display: block;
  max-width: min(340px, 100%);
  max-height: 330px;
  object-fit: contain;
}

.viber-chat-history-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 8px 12px;
  border-top: 1px solid #dce5ed;
  background: rgba(255, 255, 255, .9);
}

.viber-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid #dce5ed;
  background: #fff;
}

.viber-chat-composer textarea {
  min-height: 54px;
  max-height: 150px;
  resize: vertical;
  border: 1px solid #cfdce6;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fbfdff;
  color: #24394b;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  outline: 0;
}

.viber-chat-composer textarea:focus {
  border-color: #7569bd;
  box-shadow: 0 0 0 3px rgba(117, 105, 189, .14);
}

.viber-chat-composer > button {
  min-height: 48px;
  white-space: nowrap;
}

.viber-chat-composer > small {
  grid-column: 1 / -1;
  color: #7c8d99;
  font-size: 11px;
}

.viber-native-security {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  border-top: 1px solid #dce5ed;
  background: #fff;
  color: #617686;
}

.viber-native-security span {
  color: #4f6c7f;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.viber-native-security p {
  margin: 0;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 900px) {
  .viber-native-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .viber-chat-workspace {
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  }

  .viber-chat-composer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .viber-chat-composer #sendViberLiveReply {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .viber-chat-workspace {
    display: block;
    min-height: 0;
  }

  .viber-chat-sidebar {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid #dce5ed;
  }

  .viber-chat-main {
    min-height: 520px;
  }

  .viber-chat-messages {
    min-height: 310px;
    max-height: 430px;
    padding: 14px;
  }

  .viber-bubble {
    max-width: 88%;
  }

  .viber-chat-current,
  .viber-native-security {
    align-items: flex-start;
    flex-direction: column;
  }

  .viber-native-security p {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .viber-chat-composer {
    grid-template-columns: 1fr;
  }

  .viber-chat-composer #sendViberLiveReply {
    grid-column: auto;
  }

  .viber-chat-history-actions {
    justify-content: space-between;
    gap: 5px;
  }
}
.manual-viber-banner{display:flex;gap:16px;align-items:center;margin:0 0 22px;padding:22px 24px;background:linear-gradient(110deg,#f0edff,#f5f9fc);border:1px solid #ded9f1;border-radius:16px}.manual-viber-banner strong{font-size:16px;color:#40365f}.manual-viber-banner p{margin:7px 0 0;color:#655d78;line-height:1.6}.manual-viber-recipient{display:grid;gap:6px;margin:18px 0;padding:18px 20px;border:1px solid #ded9f1;border-radius:12px;background:#f8f6ff}.manual-viber-recipient strong{font-size:18px}.manual-viber-recipient b{font-size:18px;letter-spacing:.5px;user-select:text}.manual-viber-recipient span,.manual-viber-recipient small{color:#6f6880;line-height:1.5}#manualViberText{width:100%;min-height:260px;resize:vertical;padding:15px 16px;border:1px solid #cfc7e5;border-radius:12px;font-family:inherit;font-size:14px;line-height:1.7;color:#253547;background:#fff;box-sizing:border-box}.manual-viber-instructions{padding:16px 18px;background:#f4f7fa;border-radius:12px;margin:16px 0}.manual-viber-instructions strong{display:block;color:#454267;line-height:1.6}.manual-viber-instructions p,.manual-viber-image p{margin:8px 0 0;color:#6c7685;font-size:13px;line-height:1.65}.manual-viber-status{padding:12px 15px;border-left:3px solid #8774be;background:#f8f6ff;font-size:13px;line-height:1.65;color:#5b4c79;min-height:22px}.manual-viber-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:16px 0}.manual-viber-actions a,.manual-viber-image a{text-decoration:none;display:inline-flex;align-items:center;padding:11px 15px}.manual-viber-confirm{display:flex;gap:16px;align-items:center;justify-content:space-between;border-top:1px solid #e1e7ed;padding-top:18px;margin-top:23px}.manual-viber-confirm strong,.manual-viber-confirm small{display:block}.manual-viber-confirm small{margin-top:6px;max-width:470px;line-height:1.6;color:#738291}.manual-viber-confirm button{flex-shrink:0}.manual-viber-queue-status{display:block;font-size:11px;color:#786492;margin-top:6px}.manual-viber-image{display:flex;align-items:center;gap:18px;border:1px solid #e1e7ed;border-radius:12px;padding:15px;margin:16px 0}.manual-viber-image img{width:100px;height:82px;object-fit:contain;border-radius:7px}.manual-viber-image a{margin-top:8px}.viber-queue-item [data-manual-viber-recipient]{white-space:nowrap}@media(max-width:650px){.manual-viber-banner{padding:17px;align-items:flex-start}.manual-viber-actions>*{width:100%;justify-content:center;box-sizing:border-box}.manual-viber-confirm{align-items:flex-start;flex-direction:column}.manual-viber-image{align-items:flex-start}.viber-queue-item [data-manual-viber-recipient]{white-space:normal}}
/* Focused personal Viber workspace (v214). */
.viber-history-toolbar { display:grid; grid-template-columns:1.4fr 1fr; gap:16px; align-items:end; }
.viber-history-toolbar label { display:grid; gap:7px; color:#748297; font-size:11px; }
.viber-history-period { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:20px 0 12px; }
.viber-history-period strong { font-size:13px; color:#45576e; }
.viber-history-period label { display:flex; align-items:center; gap:7px; font-size:12px; color:#748297; }
.viber-history-period input { accent-color:#8067b7; }
#viberHistoryCalendar { margin-top:20px; }
#viberHistoryCalendar .communication-calendar-panel { padding:20px; box-shadow:none; }
#viberHistoryCalendar .calendar-day { min-height:54px; }
#viberHistoryCalendar .calendar-foot { gap:12px; align-items:center; flex-wrap:wrap; line-height:1.65; }
.viber-workspace-history-item.confirmed > summary em { color:#33805c; }
@media(max-width:600px) { .viber-history-toolbar { grid-template-columns:1fr; } .viber-history-period { align-items:flex-start; flex-direction:column; } #viberHistoryCalendar .communication-calendar-panel { padding:10px; } #viberHistoryCalendar .calendar-day { min-height:42px; } }
.viber-workspace { max-width: 1560px; margin: 0 auto; }
.viber-workspace-top { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.viber-workspace-title { display:flex; align-items:center; gap:14px; }
.viber-workspace-title .viber-mark { display:grid; place-items:center; width:48px; height:48px; border-radius:15px; background:#7963b6; color:#fff; font-size:23px; font-weight:800; box-shadow:0 7px 18px #7761ae26; }
.viber-workspace-title h2 { margin:0; font-size:23px; color:#243346; }
.viber-workspace-title p { margin:6px 0 0; color:#7d8a9b; font-size:13px; line-height:1.5; }
.viber-workspace-tabs { display:flex; gap:5px; padding:5px; border:1px solid #dbe5ee; border-radius:12px; background:#ecf2f7; }
.viber-workspace-tabs button { padding:11px 16px; border:0; background:transparent; border-radius:9px; color:#748297; font-weight:700; }
.viber-workspace-tabs button.active { background:#fff; color:#5d4b90; box-shadow:0 3px 10px #38516b0d; }
.viber-workspace-tabs span { margin-left:6px; padding:2px 6px; background:#ecf1f6; border-radius:5px; font-size:11px; }
.viber-workspace-helper { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 22px; padding:17px 19px; border-color:#d9d0ee; background:linear-gradient(135deg,#fbf9ff,#f3f8fc); }
.viber-workspace-helper-copy { display:flex; align-items:center; gap:13px; min-width:0; }
.viber-workspace-helper-mark { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border-radius:12px; background:#7963b6; color:#fff; font-weight:800; }
.viber-workspace-helper-copy small { display:block; margin-bottom:4px; color:#7963b6; font-size:10px; font-weight:800; letter-spacing:.08em; }
.viber-workspace-helper-copy strong { display:block; color:#2c3d50; font-size:14px; }
.viber-workspace-helper-copy p { margin:4px 0 0; color:#77869a; font-size:12px; line-height:1.45; }
.viber-workspace-helper-actions { display:flex; align-items:center; gap:9px; flex:0 0 auto; }
.viber-workspace-helper[data-state="ready"] { border-color:#bfe2d4; background:linear-gradient(135deg,#f7fffb,#f1f9fc); }
.viber-workspace-helper[data-state="ready"] .viber-workspace-helper-mark { background:#2f9877; }
.viber-workspace-helper[data-state="warning"],.viber-workspace-helper[data-state="update"] { border-color:#ecd7ad; background:linear-gradient(135deg,#fffdf7,#f7f5ff); }
.viber-workspace-helper[data-state="warning"] .viber-workspace-helper-mark,.viber-workspace-helper[data-state="update"] .viber-workspace-helper-mark { background:#c18437; }
.viber-workspace-grid { display:grid; grid-template-columns:minmax(330px,.87fr) minmax(450px,1.2fr); align-items:start; gap:22px; }
.viber-workspace .panel { border:1px solid #dce6ef; border-radius:18px; box-shadow:0 5px 22px #3b57730a; overflow:hidden; }
.viber-workspace-recipients, .viber-workspace-editor, .viber-workspace-preview, .viber-workspace-history { padding:24px; background:#fff; }
.viber-workspace-section-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:20px; }
.viber-workspace-section-head small { color:#8797a9; font-size:10px; letter-spacing:.95px; font-weight:800; }
.viber-workspace-section-head h3 { margin:7px 0 0; font-size:18px; line-height:1.3; color:#26384d; }
.viber-workspace-selection-count { padding:8px 10px; color:#6c55a7; background:#f0ecfa; border-radius:8px; font-size:11px; font-weight:800; text-align:center; }
.viber-workspace input[type=search], .viber-workspace select { width:100%; box-sizing:border-box; min-height:42px; border:1px solid #d8e3ed; border-radius:9px; padding:10px 11px; font:inherit; font-size:12px; background:#fbfdff; color:#35475d; }
.viber-workspace input[type=search]:focus, .viber-workspace select:focus, #viberCommunicationMessage:focus { outline:2px solid #aa99d052; border-color:#a995d2; }
.viber-workspace-filters { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:15px 0; }
.viber-workspace-filters label { display:grid; gap:7px; font-size:10px; font-weight:800; color:#8a98a8; }
.viber-workspace-filters select { font-weight:500; }
.viber-workspace-fixed-scope { display:grid; gap:4px; margin:15px 0; padding:12px 14px; border:1px solid #c8e0f2; border-radius:12px; background:#f1f8fd; color:#315a78; }
.viber-workspace-fixed-scope strong { font-size:12px; }
.viber-workspace-fixed-scope span { font-size:11px; line-height:1.5; }
.viber-workspace-selection-tools { display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center; padding:2px 0 13px; }
.viber-workspace-selected-only { display:flex; gap:7px; align-items:center; color:#66768a; font-size:11px; }
.viber-workspace-selected-only input, .viber-workspace-person input { accent-color:#8269bc; width:16px; height:16px; cursor:pointer; flex-shrink:0; }
.viber-workspace-selection-tools > div { display:flex; gap:12px; }
.viber-workspace .inline-add { font-size:11px; font-weight:700; }
.viber-workspace .inline-add:disabled { opacity:.4; cursor:default; }
.viber-workspace-checklist { display:grid; gap:6px; min-height:120px; }
.viber-workspace-person { display:flex; align-items:flex-start; gap:11px; padding:12px; border:1px solid #e6edf3; border-radius:10px; cursor:pointer; transition:background .12s,border-color .12s; }
.viber-workspace-person:hover { border-color:#b7c6d8; background:#fbfdff; }
.viber-workspace-person.selected { border-color:#cbbfe4; background:#f7f4fd; }
.viber-workspace-person input { margin:3px 0 0; }
.viber-workspace-person > span { display:grid; gap:5px; min-width:0; }
.viber-workspace-person strong { font-size:12px; color:#304258; line-height:1.4; overflow-wrap:anywhere; }
.viber-workspace-person .viber-workspace-company { font-size:11px; color:#7b8798; line-height:1.4; overflow-wrap:anywhere; }
.viber-workspace-person small { font-size:10px; color:#8a96a5; line-height:1.45; }
.viber-workspace-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:16px; }
.viber-workspace-pager span { font-size:11px; color:#8795a4; text-align:center; }
.viber-workspace-pager button { min-height:32px; padding:7px 11px; font-size:11px; }
.viber-workspace-review { border-top:1px solid #e5ecf2; margin-top:17px; padding-top:16px; }
.viber-workspace-review summary { font-size:12px; font-weight:700; color:#667990; cursor:pointer; }
.viber-workspace-review summary > span { display:inline-block; margin-left:5px; padding:2px 7px; border-radius:5px; background:#edf2f8; }
#viberSelectedList { max-height:260px; overflow-y:auto; }
.viber-workspace-selected-row { display:flex; gap:10px; align-items:center; justify-content:space-between; padding:11px 0; border-bottom:1px solid #eef2f6; }
.viber-workspace-selected-row > span { display:grid; gap:4px; }
.viber-workspace-selected-row strong { font-size:11px; color:#46546c; }
.viber-workspace-selected-row small { font-size:10px; color:#8a95a5; line-height:1.4; }
.viber-workspace-selected-row.unavailable small { color:#ad774c; }
.viber-workspace-selected-row button { padding:6px; }
.viber-workspace-subtle { font-size:11px; color:#8c99a8; line-height:1.65; margin:15px 0 0; }
.viber-workspace-message-column { display:grid; gap:20px; min-width:0; }
.viber-workspace-editor { margin:0; }
.viber-workspace-editor .viber-workspace-section-head .secondary { font-size:11px; padding:9px 12px; background:#f9f7fe; color:#7860b0; border-color:#ded4ef; white-space:nowrap; }
.viber-workspace #viberCommunicationMessage { display:block; width:100%; min-height:310px; box-sizing:border-box; resize:vertical; padding:17px; border:1px solid #dbe4ee; border-radius:12px; background:#fcfdff; color:#3b485c; font-family:inherit; font-size:13px; line-height:1.8; }
.viber-workspace-editor-meta { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding-top:10px; color:#94a0ae; }
.viber-workspace-editor-meta small { font-size:10px; line-height:1.65; }
.viber-workspace-editor-meta b { font-weight:600; color:#808699; }
.viber-workspace-editor-meta > span { font-size:10px; white-space:nowrap; padding-top:2px; }
.viber-workspace-attachment { margin-top:18px; border-top:1px solid #edf1f5; border-bottom:1px solid #edf1f5; padding:14px 0; }
.viber-workspace-attachment summary { color:#7d8ca0; font-size:12px; cursor:pointer; }
.viber-workspace-attachment summary span { font-size:10px; color:#9ba5b2; margin-left:8px; }
.viber-workspace-attachment .communication-image-field { margin:15px 0 0; }
.viber-workspace-attachment .communication-image-field > label { display:none; }
.viber-workspace-editor-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:12px; align-items:center; margin-top:20px; }
.viber-workspace-editor-actions #clearViberDraft { margin-right:auto; }
.viber-workspace-editor-actions .viber-primary { padding:13px 18px; border-radius:10px; background:#8067b7; border:1px solid #8067b7; color:#fff; font-size:12px; font-weight:800; box-shadow:0 5px 13px #8067b727; }
.viber-workspace-editor-actions .viber-primary:disabled { opacity:.45; box-shadow:none; cursor:default; }
.viber-workspace-action-note { margin:11px 0 0; text-align:right; font-size:10px; color:#9aA5b3; line-height:1.5; }
.viber-workspace-preview { background:linear-gradient(145deg,#fff,#faf9ff); }
.viber-workspace-preview .viber-workspace-section-head { margin-bottom:13px; }
.viber-workspace-preview label { display:block; margin:0 0 6px; }
.viber-workspace-preview-phone { font-size:11px; color:#9c96aa; margin-top:9px; }
.viber-workspace-message-bubble { display:block; white-space:pre-wrap; overflow-wrap:anywhere; max-height:580px; overflow:auto; margin:15px 0 0; border-radius:13px 13px 13px 3px; padding:19px; background:#f0ecf9; border:1px solid #e8e1f2; color:#584d70; font-family:inherit; font-size:12px; line-height:1.85; }
.viber-workspace-empty { display:grid; place-items:center; min-height:140px; text-align:center; padding:20px; color:#9aa6b3; font-size:12px; line-height:1.6; }
.viber-workspace-history { max-width:1080px; margin:0 auto; }
.viber-workspace-history-item { border:1px solid #e1e9f0; border-radius:12px; margin-top:11px; background:#fcfdff; }
.viber-workspace-history-item > summary { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:17px; cursor:pointer; }
.viber-workspace-history-item > summary span { display:grid; gap:6px; }
.viber-workspace-history-item strong { font-size:13px; color:#45576e; }
.viber-workspace-history-item summary small { font-size:11px; color:#96a0ae; }
.viber-workspace-history-item summary em { color:#8c7ba6; font-size:11px; font-style:normal; text-align:right; }
.viber-workspace-history-item .communication-history-card { margin:0 16px 16px; }
.viber-workspace-queues { max-width:1180px; margin:0 auto; padding:24px; background:#fff; }
.viber-queue-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:22px 0; }
.viber-queue-loading { grid-column:1/-1; display:grid; place-items:center; min-height:92px; color:#8b98a7; font-size:12px; }
.viber-queue-summary-card { position:relative; display:grid; gap:9px; min-height:92px; padding:16px 17px; border:1px solid #dfe7ee; border-radius:14px; background:#fbfdff; color:#607085; text-align:left; cursor:pointer; overflow:hidden; }
.viber-queue-summary-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#7c8fa4; }
.viber-queue-summary-card small { font-size:10px; font-weight:800; letter-spacing:.05em; }
.viber-queue-summary-card strong { font-size:26px; line-height:1; color:#293b50; }
.viber-queue-summary-card.active { border-color:#b8abd8; box-shadow:0 0 0 2px #8067b719; background:#faf8ff; }
.viber-queue-summary-card.group-active::before { background:#8067b7; }
.viber-queue-summary-card.group-waiting::before { background:#d49429; }
.viber-queue-summary-card.group-review::before { background:#c65d58; }
.viber-queue-summary-card.group-completed::before { background:#4c9a72; }
.viber-queue-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:4px 0 13px; padding:12px 0; border-bottom:1px solid #e8eef3; }
.viber-queue-toolbar .inline-add.active { color:#674f9f; background:#f1edfa; border-radius:8px; padding:8px 11px; }
.viber-queue-toolbar span { color:#8996a6; font-size:11px; }
.viber-queue-list { display:grid; gap:12px; }
.viber-queue-card { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:18px; padding:18px 19px; border:1px solid #e0e8ef; border-left:4px solid #8067b7; border-radius:14px; background:#fcfdff; }
.viber-queue-card.group-waiting { border-left-color:#d49429; background:#fffdf8; }
.viber-queue-card.group-review { border-left-color:#c65d58; background:#fffafa; }
.viber-queue-card.group-completed { border-left-color:#4c9a72; background:#fbfefc; }
.viber-queue-card-main { min-width:0; }
.viber-queue-card-heading { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.viber-queue-card-heading small { color:#91a0b0; font-size:10px; }
.viber-queue-state { display:inline-flex; align-items:center; min-height:24px; padding:3px 9px; border-radius:999px; background:#f0ecfa; color:#68549d; font-size:10px; font-weight:800; }
.viber-queue-card.group-waiting .viber-queue-state { color:#8b641e; background:#fff1d5; }
.viber-queue-card.group-review .viber-queue-state { color:#994642; background:#fde8e7; }
.viber-queue-card.group-completed .viber-queue-state { color:#347552; background:#e7f5ed; }
.viber-queue-card h3 { margin:9px 0 12px; color:#31445a; font-size:15px; }
.viber-queue-current { display:flex; align-items:center; gap:8px; margin:0 0 10px; color:#718095; font-size:11px; }
.viber-queue-current span { color:#96a2b0; }
.viber-queue-cooldown { margin:0 0 10px; color:#8b641e; font-size:11px; font-weight:700; }
.viber-queue-progress { height:7px; border-radius:99px; overflow:hidden; background:#e9eef3; }
.viber-queue-progress span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#8067b7,#a997cf); }
.viber-queue-card.group-waiting .viber-queue-progress span { background:#d49429; }
.viber-queue-card.group-review .viber-queue-progress span { background:#c65d58; }
.viber-queue-card.group-completed .viber-queue-progress span { background:#4c9a72; }
.viber-queue-progress-label { display:flex; justify-content:space-between; gap:12px; margin-top:7px; color:#8b98a7; font-size:10px; }
.viber-queue-progress-label strong { color:#53657a; }
.viber-queue-metrics { display:grid; grid-template-columns:repeat(3,minmax(72px,1fr)); gap:8px; }
.viber-queue-metrics > span { display:grid; gap:5px; min-width:78px; padding:10px; border-radius:10px; background:#f3f6f9; text-align:center; }
.viber-queue-metrics small { color:#8997a7; font-size:8px; font-weight:800; letter-spacing:.04em; }
.viber-queue-metrics strong { color:#405369; font-size:17px; }
.viber-queue-metrics .attention { background:#fdebea; }
.viber-queue-metrics .attention strong { color:#ad4f4b; }
.viber-queue-card > .secondary { white-space:nowrap; }
@media(max-width:1050px) { .viber-workspace-grid { grid-template-columns:minmax(300px,.9fr) minmax(380px,1fr); gap:16px; } .viber-workspace-recipients,.viber-workspace-editor,.viber-workspace-preview { padding:19px; } .viber-workspace-selection-tools { align-items:flex-start; flex-direction:column; } }
@media(max-width:850px) { .viber-workspace-grid { grid-template-columns:1fr; } .viber-workspace-checklist { grid-template-columns:1fr 1fr; } .viber-workspace-top { align-items:flex-start; } .viber-workspace-title p { max-width:290px; } .viber-workspace-helper { align-items:flex-start; flex-direction:column; } .viber-workspace-helper-actions { width:100%; } .viber-workspace-helper-actions > * { flex:1; text-align:center; } .viber-queue-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .viber-queue-card { grid-template-columns:minmax(0,1fr) auto; } .viber-queue-metrics { grid-column:1/-1; grid-row:2; } }
@media(max-width:560px) { .viber-workspace-top { flex-direction:column; align-items:stretch; margin-bottom:18px; } .viber-workspace-tabs { width:100%; box-sizing:border-box; overflow-x:auto; } .viber-workspace-tabs button { flex:1; white-space:nowrap; } .viber-workspace-helper-actions { flex-direction:column; align-items:stretch; } .viber-workspace-helper-actions > * { width:100%; box-sizing:border-box; } .viber-workspace-checklist { grid-template-columns:1fr; } .viber-workspace-title h2 { font-size:20px; } .viber-workspace-section-head { align-items:flex-start; } .viber-workspace-section-head h3 { font-size:16px; } .viber-workspace-editor-meta { flex-direction:column; gap:3px; } .viber-workspace-editor-actions { flex-direction:column-reverse; align-items:stretch; } .viber-workspace-editor-actions .inline-add { padding:8px; } .viber-workspace-action-note { text-align:center; } .viber-workspace-history-item > summary { flex-direction:column; align-items:flex-start; } .viber-workspace-history-item summary em { text-align:left; } .viber-workspace-queues { padding:17px; } .viber-queue-summary-grid { grid-template-columns:1fr; } .viber-queue-card { grid-template-columns:1fr; gap:14px; } .viber-queue-metrics { grid-column:auto; grid-row:auto; } .viber-queue-card > .secondary { width:100%; } }
@media(max-width:560px) { .viber-workspace-filters { grid-template-columns:1fr; } }
.viber-workspace .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; }
.email-delivery-panel { padding:22px 26px; margin:0 0 22px; border:1px solid #cddfec; background:linear-gradient(110deg,#f0f7fc,#fff); }
.email-delivery-panel .panel-head { gap:20px; align-items:center; margin-bottom:16px; }
.email-delivery-panel .panel-head small { color:#6089aa; letter-spacing:.09em; font-size:10px; font-weight:800; }
.email-delivery-panel h2 { margin:5px 0 0; font-size:19px; }
.email-delivery-panel select { max-width:420px; min-width:230px; padding:10px 12px; border:1px solid #c9ddeb; border-radius:10px; color:#35536c; background:#fff; }
#emailLastDelivery { padding:15px 17px; background:#fff; border:1px solid #dce7ef; border-radius:12px; line-height:1.6; overflow-wrap:anywhere; }
#emailLastDelivery > strong,#emailLastDelivery > span { display:block; }
#emailLastDelivery > span { color:#607487; font-size:13px; }
.email-delivery-warning { color:#93640a; font-size:12px; margin:8px 0 0; }
.email-delivery-panel .communication-actions { justify-content:flex-start; flex-wrap:wrap; }
.email-delivery-panel [hidden] { display:none!important; }
@media(max-width:700px) { .email-delivery-panel { padding:18px; } .email-delivery-panel .panel-head { flex-direction:column; align-items:stretch; } .email-delivery-panel select { max-width:100%; min-width:0; } }
@media(max-width:760px) { .viber-sequence-progress { grid-template-columns:repeat(2,minmax(0,1fr)); } .viber-sequence-progress > div:first-child { grid-column:1/-1; } .viber-sequence-item { grid-template-columns:28px minmax(0,1fr); } .viber-sequence-item > button { grid-column:1/-1; } }
