/* Shared V3 visual system for OrdersV2 / BookingsV2 / ActivityTypes settings.
   Mirrors broadcast-v3 design tokens & components for visual consistency. */

.activity-v3 {
  --v3-bg: #f4f6fb;
  --v3-surface: #ffffff;
  --v3-surface-soft: #f8f9fd;
  --v3-border: #d9deeb;
  --v3-text: #131826;
  --v3-muted: #697089;
  --v3-primary: #00644b;
  --v3-primary-soft: rgba(0, 100, 75, 0.12);
  --v3-accent: #00e88d;
  --v3-danger: #e66860;
  --v3-warning: #e6ce60;
  --v3-shadow: 0 16px 36px rgba(153, 168, 196, 0.28);

  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  background: var(--v3-bg);
  min-height: 100%;
  height: auto;
  overflow: visible;
  padding: 22px;
  color: var(--v3-text);
  zoom: 1.1
}

.activity-v3 .v3-shell {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding-bottom: 26px;
}

.activity-v3#activity-types-v3-view {
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  overflow-x: hidden;
}

.activity-v3#activity-types-v3-view .v3-shell {
  height: 100%;
  min-height: 0;
}

.activity-v3#activity-types-v3-view .at-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.activity-v3#activity-types-v3-view .at-left-col {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100%;
}

.activity-v3#activity-types-v3-view .at-left-col .v3-panel-body {
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.activity-v3#activity-types-v3-view .at-right-col {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.activity-v3#activity-types-v3-view .at-editor-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-v3#activity-types-v3-view .at-section-general { order: 1; box-shadow: none; }
.activity-v3#activity-types-v3-view .at-section-numbering { order: 2; box-shadow: none; }
.activity-v3#activity-types-v3-view .at-section-statuses { order: 3; box-shadow: none; }
.activity-v3#activity-types-v3-view .at-section-catalog { order: 4; box-shadow: none; }
.activity-v3#activity-types-v3-view .at-section-fields { order: 5; box-shadow: none; }
.activity-v3#activity-types-v3-view .at-section-booking { order: 6; box-shadow: none; }
.activity-v3#activity-types-v3-view .at-section-footer { order: 7; box-shadow: none; }

@media (max-width: 1100px) {
  .activity-v3#activity-types-v3-view {
    max-height: none;
    overflow: visible;
  }

  .activity-v3#activity-types-v3-view .v3-shell {
    height: auto;
  }

  .activity-v3#activity-types-v3-view .at-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .activity-v3#activity-types-v3-view .at-left-col {
    position: static;
    max-height: none;
  }

  .activity-v3#activity-types-v3-view .at-left-col .v3-panel-body {
    max-height: none;
    overflow: visible;
  }

  .activity-v3#activity-types-v3-view .at-right-col {
    overflow: visible;
    padding-right: 0;
  }
}

.activity-v3 .v3-hero {
  border: 1px solid rgba(0, 100, 75, 0.18);
  background: linear-gradient(120deg, #0a6650 0%, #027556 56%, #00a96f 100%);
  border-radius: 20px;
  color: #f5fffa;
  padding: 24px;
  box-shadow: var(--v3-shadow);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  animation: v3FadeUp 0.35s ease both;
}

.activity-v3 .v3-eyebrow {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  opacity: 0.78;
  font-weight: 700;
}

.activity-v3 .v3-title {
  margin: 9px 0 6px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
}

.activity-v3 .v3-subtitle {
  margin: 0;
  font-size: 14px;
  color: rgba(236, 251, 246, 0.9);
  max-width: 780px;
  line-height: 1.45;
}

.activity-v3 .v3-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-v3 .v3-badge {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.activity-v3 .v3-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.activity-v3 .v3-hero-stat {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
  padding: 12px;
  min-height: 88px;
}

.activity-v3 .v3-hero-label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(240, 255, 252, 0.82);
  font-weight: 700;
}

.activity-v3 .v3-hero-value {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.activity-v3 .v3-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.activity-v3 .v3-panel {
  border: 1px solid var(--v3-border);
  border-radius: 18px;
  background: var(--v3-surface);
  box-shadow: var(--v3-shadow);
  overflow: hidden;
  animation: v3FadeUp 0.35s ease both;
}

.activity-v3 .v3-panel-head {
  padding: 18px 20px 10px;
  border-bottom: 1px solid var(--v3-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.activity-v3 .v3-panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--v3-text);
}

.activity-v3 .v3-panel-subtitle {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--v3-muted);
  line-height: 1.4;
}

.activity-v3 .v3-panel-body {
  padding: 16px 20px 20px;
}

.activity-v3 .v3-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.activity-v3 .v3-toolbar > * { min-width: 0; }

.activity-v3 .v3-search {
  flex: 1 1 220px;
  position: relative;
}

.activity-v3 .v3-search input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--v3-border);
  padding: 0 14px;
  font-size: 14px;
  background: var(--v3-surface-soft);
  color: var(--v3-text);
}

.activity-v3 .v3-search input:focus {
  border-color: var(--v3-primary);
  box-shadow: 0 0 0 2px rgba(0, 100, 75, 0.12);
  background: #fff;
  outline: none;
}

.activity-v3 .v3-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.activity-v3 .v3-pill {
  border: 1px solid var(--v3-border);
  border-radius: 999px;
  background: var(--v3-surface-soft);
  color: var(--v3-text);
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
}

.activity-v3 .v3-pill.is-active {
  border-color: var(--v3-primary);
  color: var(--v3-primary);
  background: var(--v3-primary-soft);
}

.activity-v3 .v3-pill.is-status {
  background: #fff;
}

.activity-v3 .v3-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.activity-v3 .v3-tab {
  border: 1px solid var(--v3-border);
  border-radius: 12px;
  background: var(--v3-surface-soft);
  color: var(--v3-text);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.activity-v3 .v3-tab.is-active {
  border-color: var(--v3-primary);
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
}

.activity-v3 .v3-btn,
.activity-v3 .v3-btn-outline,
.activity-v3 .v3-btn-danger,
.activity-v3 .v3-btn-ghost {
  border-radius: 12px;
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.activity-v3 .v3-btn-xs {
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 10px;
}

.activity-v3 .v3-btn {
  border-color: var(--v3-primary);
  background: var(--v3-primary);
  color: #fff;
}
.activity-v3 .v3-btn:hover { filter: brightness(0.93); color: #fff; }
.activity-v3 .v3-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.activity-v3 .v3-btn-outline {
  border-color: var(--v3-border);
  background: #fff;
  color: var(--v3-primary);
}
.activity-v3 .v3-btn-outline:hover {
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  border-color: var(--v3-primary);
}

.activity-v3 .v3-btn-danger {
  border-color: rgba(230, 104, 96, 0.45);
  background: rgba(230, 104, 96, 0.1);
  color: #a3322c;
}
.activity-v3 .v3-btn-danger:hover { background: rgba(230, 104, 96, 0.2); }

.activity-v3 .v3-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--v3-muted);
}
.activity-v3 .v3-btn-ghost:hover { background: var(--v3-surface-soft); color: var(--v3-text); }

.activity-v3 .v3-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.activity-v3 .v3-table thead th {
  background: var(--v3-surface-soft);
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--v3-muted);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--v3-border);
}

.activity-v3 .v3-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #eef0f5;
  vertical-align: middle;
}

.activity-v3 .v3-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.activity-v3 .v3-table tbody tr:hover {
  background: var(--v3-surface-soft);
}

.activity-v3 .v3-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.activity-v3 .v3-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--v3-muted);
  font-size: 14px;
}

.activity-v3 .v3-empty .v3-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--v3-surface-soft);
  border: 1px solid var(--v3-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--v3-muted);
}

.activity-v3 .v3-field {
  margin-bottom: 12px;
}

.activity-v3 .v3-label {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--v3-muted);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.activity-v3 .v3-input,
.activity-v3 .v3-field input.form-control,
.activity-v3 .v3-field select.form-control,
.activity-v3 .v3-field textarea.form-control {
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface-soft);
  color: var(--v3-text);
  padding: 0 12px;
  font-size: 13px;
  width: 100%;
  box-shadow: none;
}

.activity-v3 .v3-field textarea.form-control {
  height: auto;
  min-height: 80px;
  padding: 10px 12px;
}

.activity-v3 .v3-input:focus,
.activity-v3 .v3-field input.form-control:focus,
.activity-v3 .v3-field select.form-control:focus,
.activity-v3 .v3-field textarea.form-control:focus {
  border-color: var(--v3-primary);
  box-shadow: 0 0 0 2px rgba(0, 100, 75, 0.12);
  background: #fff;
  outline: none;
}

.activity-v3 .v3-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.activity-v3 .v3-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.activity-v3 .v3-row-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.activity-v3 .v3-row-3.product-list { grid-template-columns: 1fr 200px auto;}

.activity-v3 .v3-divider {
  border-top: 1px solid var(--v3-border);
  margin: 16px 0;
}

.activity-v3 .v3-section-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--v3-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-v3 .v3-side-panel {
  border: 1px solid var(--v3-border);
  border-radius: 18px;
  background: var(--v3-surface);
  box-shadow: var(--v3-shadow);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.activity-v3 .v3-side-panel h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--v3-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.activity-v3 .v3-status-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-v3 .v3-status-btn {
  border-radius: 12px;
  border: 1px solid var(--v3-border);
  background: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-v3 .v3-status-btn:hover { transform: translateY(-1px); }
.activity-v3 .v3-status-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.activity-v3 .v3-status-btn .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-v3 .v3-detail-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 14px;
  align-items: start;
}

.v3-detail-grid > div:nth-child(1){
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-v3 .v3-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--v3-text);
}

.activity-v3 .v3-meta-row .v3-meta-label {
  color: var(--v3-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  min-width: 100px;
}

.activity-v3 .v3-history-list { list-style: none; padding: 0; margin: 0; }
.activity-v3 .v3-history-list li {
  border-left: 2px solid var(--v3-primary-soft);
  padding: 6px 0 6px 12px;
  margin-bottom: 4px;
  font-size: 13px;
}
.activity-v3 .v3-history-list li small { color: var(--v3-muted); margin-left: 6px; }

/* Modal scoped — works with both ui-bootstrap and Popeye */
.modal-content .activity-v3-modal,
.popeye-modal .activity-v3-modal,
.activity-v3-modal {
  --v3-bg: #f4f6fb;
  --v3-surface: #ffffff;
  --v3-surface-soft: #f8f9fd;
  --v3-border: #d9deeb;
  --v3-text: #131826;
  --v3-muted: #697089;
  --v3-primary: #00644b;
  --v3-primary-soft: rgba(0, 100, 75, 0.12);
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  color: var(--v3-text);
  zoom:1.2
}

/** mobile **/
@media screen and (max-width: 900px) {
    .activity-v3-modal {
        zoom: 1 !important;
    }
}

/* Popeye container override for activity-v3-popeye class */
.popeye-modal-container {
  z-index: 1050 !important;
  background-color: rgba(15, 23, 42, 0.55) !important;
}
.popeye-modal.activity-v3-popeye {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3) !important;
}
.popeye-modal.activity-v3-popeye.large   { width: 760px !important; max-width: 92vw; }
.popeye-modal.activity-v3-popeye.compact { width: 480px !important; max-width: 96vw; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.popeye-modal.activity-v3-popeye.compact .activity-v3-modal { display: flex; flex-direction: column; height: 100%; max-height: 88vh; }
.popeye-modal.activity-v3-popeye.compact .activity-v3-modal .qed-body { flex: 1; min-height: 0; }

/* Loading state for edit modal */
.aqe-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: var(--v3-primary, #00644b);
  flex: 1;
}
.popeye-modal.activity-v3-popeye .popeye-close-modal {
  color: #fff !important;
  z-index: 2;
  top: 14px !important;
  right: 16px !important;
  font-size: 22px;
  opacity: 0.9;
}
.popeye-modal.activity-v3-popeye .popeye-close-modal:hover { opacity: 1; }
.popeye-modal.activity-v3-popeye .activity-v3-modal { background: #fff; }

.activity-v3-modal .modal-header {
  border-bottom: 1px solid var(--v3-border);
  padding: 18px 22px;
  background: white;
  color: #0f1730;
  border-radius: 8px 8px 0 0;
}
.activity-v3-modal .modal-header .modal-title {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}
.activity-v3-modal .modal-header small {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
  font-weight: 500;
}

.activity-v3-modal .modal-body { padding: 22px; }
.activity-v3-modal .modal-footer {
  background: var(--v3-surface-soft);
  border-top: 1px solid var(--v3-border);
  padding: 14px 22px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.activity-v3-modal .v3-field { margin-bottom: 14px; }
.activity-v3-modal .v3-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--v3-muted);
  font-weight: 700;
}
.activity-v3-modal .form-control {
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface-soft);
  font-size: 13px;
  padding: 0 12px;
  box-shadow: none;
}
.activity-v3-modal textarea.form-control { height: auto; min-height: 80px; padding: 10px 12px; }
.activity-v3-modal .form-control:focus {
  border-color: var(--v3-primary);
  box-shadow: 0 0 0 2px rgba(0, 100, 75, 0.12);
  background: #fff;
}

.activity-v3-modal .v3-client-results {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--v3-border);
  border-radius: 12px;
  margin-top: 6px;
  background: #fff;
}
.activity-v3-modal .v3-client-results > div {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.activity-v3-modal .v3-client-results > div:hover { background: var(--v3-surface-soft); }
.activity-v3-modal .v3-client-results .is-selected {
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  font-weight: 700;
}
.activity-v3-modal .v3-client-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

.activity-v3-modal .v3-items-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  border: 1px solid var(--v3-border);
  border-radius: 12px;
  overflow: hidden;
}
.activity-v3-modal .v3-items-table th,
.activity-v3-modal .v3-items-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef0f5;
  vertical-align: middle;
}
.activity-v3-modal .v3-items-table th {
  background: var(--v3-surface-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--v3-muted);
  font-weight: 700;
  text-align: left;
}
.activity-v3-modal .v3-items-table tfoot td {
  background: var(--v3-surface-soft);
  font-weight: 700;
  border-bottom: 0;
}
.activity-v3-modal .v3-items-table input.form-control {
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  padding: 0 8px;
}
.activity-v3-modal .v3-items-table select.form-control {
  height: 36px;
  border-radius: 8px;
  padding: 0 6px;
}

@keyframes v3FadeUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .activity-v3 .v3-detail-grid { grid-template-columns: 1fr; }
  .activity-v3 .v3-hero { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .activity-v3 .v3-row,
  .activity-v3 .v3-row-3,
  .activity-v3 .v3-row-4 { grid-template-columns: 1fr; }
  .activity-v3 .v3-hero-stats { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Component styles also for modal scope (.activity-v3-modal)
   The modal does not have .activity-v3 ancestor, so we re-declare key
   component selectors under .activity-v3-modal.
   ────────────────────────────────────────────────────────────────────────── */

.activity-v3-modal .v3-btn,
.activity-v3-modal .v3-btn-outline,
.activity-v3-modal .v3-btn-danger,
.activity-v3-modal .v3-btn-ghost {
  border-radius: 12px;
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
}
.activity-v3-modal .v3-btn-xs {
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 10px;
}
.activity-v3-modal .v3-btn {
  border-color: var(--v3-primary);
  background: var(--v3-primary);
  color: #fff;
}
.activity-v3-modal .v3-btn:hover { filter: brightness(0.93); color: #fff; }
.activity-v3-modal .v3-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.activity-v3-modal .v3-btn-outline {
  border-color: var(--v3-border);
  background: #fff;
  color: var(--v3-primary);
}
.activity-v3-modal .v3-btn-outline:hover {
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  border-color: var(--v3-primary);
}
.activity-v3-modal .v3-btn-danger {
  border-color: rgba(230, 104, 96, 0.45);
  background: rgba(230, 104, 96, 0.1);
  color: #a3322c;
}
.activity-v3-modal .v3-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--v3-muted);
}

.activity-v3-modal .v3-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.activity-v3-modal .v3-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* Client search: anchor results dropdown (no layout shift) */
.activity-v3-modal .v3-field-client { position: relative; }
.activity-v3-modal .v3-field-client .v3-client-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--v3-border);
  border-radius: 12px;
  max-height: 220px;
  overflow: auto;
  margin-top: 0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

@media (max-width: 720px) {
  .activity-v3-modal .v3-row,
  .activity-v3-modal .v3-row-3 { grid-template-columns: 1fr; }
}

/* Quick create wizard modal */
.activity-v3-modal.v3-quick-modal .modal-body {
  padding-top: 16px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--v3-border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--v3-muted);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.activity-v3-modal.v3-quick-modal .v3-quick-step-index {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--v3-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-step.is-active {
  border-color: rgba(0, 100, 75, 0.35);
  background: rgba(0, 100, 75, 0.08);
  color: var(--v3-primary);
}

.activity-v3-modal.v3-quick-modal .v3-quick-step.is-active .v3-quick-step-index,
.activity-v3-modal.v3-quick-modal .v3-quick-step.is-done .v3-quick-step-index {
  border-color: var(--v3-primary);
  color: var(--v3-primary);
}

.activity-v3-modal.v3-quick-modal .v3-quick-step.is-done {
  border-color: rgba(0, 100, 75, 0.22);
  background: rgba(0, 100, 75, 0.04);
  color: #3f4d6b;
}

.activity-v3-modal.v3-quick-modal .v3-quick-loading {
  border: 1px dashed var(--v3-border);
  border-radius: 14px;
  padding: 16px;
  color: var(--v3-muted);
  font-size: 13px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-stage {
  min-height: 300px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-client-picked {
  border: 1px solid var(--v3-border);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-client-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--v3-text);
}

.activity-v3-modal.v3-quick-modal .v3-quick-client-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--v3-muted);
}

.activity-v3-modal.v3-quick-modal .v3-quick-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--v3-muted);
}

.activity-v3-modal.v3-quick-modal .v3-quick-empty {
  border: 1px dashed var(--v3-border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--v3-text);
}

.activity-v3-modal.v3-quick-modal .v3-quick-empty-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--v3-muted);
}

.activity-v3-modal.v3-quick-modal .v3-quick-empty-inline {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--v3-muted);
}

.activity-v3-modal.v3-quick-modal .v3-quick-catalog-grid {
  display: grid;
  gap: 10px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-catalog-item {
  border: 1px solid var(--v3-border);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 12px;
  align-items: center;
}

.activity-v3-modal.v3-quick-modal .v3-quick-catalog-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--v3-text);
}

.activity-v3-modal.v3-quick-modal .v3-quick-catalog-desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--v3-muted);
  line-height: 1.35;
}

.activity-v3-modal.v3-quick-modal .v3-quick-catalog-price {
  margin-top: 4px;
  font-size: 12px;
  color: #516082;
  font-weight: 700;
}

.activity-v3-modal.v3-quick-modal .v3-quick-catalog-actions {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  gap: 6px;
  align-items: center;
}

.activity-v3-modal.v3-quick-modal .v3-quick-catalog-actions .form-control {
  text-align: center;
  padding: 0 6px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-duration-panel {
  margin-top: 14px;
  border: 1px solid var(--v3-border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-duration-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-duration-alert {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
  color: #915d00;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.activity-v3-modal.v3-quick-modal .v3-quick-preset {
  border: 1px solid var(--v3-border);
  border-radius: 999px;
  background: #fff;
  color: #3d4a6a;
  font-size: 12px;
  font-weight: 700;
  height: 30px;
  padding: 0 12px;
  cursor: pointer;
}

.activity-v3-modal.v3-quick-modal .v3-quick-preset:hover {
  border-color: rgba(0, 100, 75, 0.35);
  color: var(--v3-primary);
}

.activity-v3-modal.v3-quick-modal .v3-quick-summary {
  border: 1px solid var(--v3-border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.activity-v3-modal.v3-quick-modal .v3-quick-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #edf1f7;
  font-size: 13px;
  color: #4b5878;
}

.activity-v3-modal.v3-quick-modal .v3-quick-summary-row:last-child {
  border-bottom: 0;
}

.activity-v3-modal.v3-quick-modal .v3-quick-summary-row strong {
  color: var(--v3-text);
  font-weight: 700;
}

@media (max-width: 720px) {
  .activity-v3-modal.v3-quick-modal .v3-quick-catalog-item {
    grid-template-columns: 1fr;
  }
}

/* Orders V2 list redesign */
.activity-v3.orders-v2-page .ord2-header-panel {
  padding: 20px 24px;
}

.activity-v3.orders-v2-page .ord2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.activity-v3.orders-v2-page .ord2-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  color: var(--v3-text);
}

.activity-v3.orders-v2-page .ord2-subtitle {
  margin: 6px 0 0;
  color: var(--v3-muted);
  font-size: 20px;
}

.activity-v3.orders-v2-page .ord2-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.activity-v3.orders-v2-page .ord2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.activity-v3.orders-v2-page .ord2-kpi-card {
  border: 1px solid var(--v3-border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.activity-v3.orders-v2-page .ord2-kpi-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.activity-v3.orders-v2-page .ord2-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.activity-v3.orders-v2-page .ord2-kpi-label {
  margin: 0;
  color: var(--v3-muted);
  font-size: 13px;
  font-weight: 700;
}

.activity-v3.orders-v2-page .ord2-kpi-value {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.1;
  color: var(--v3-text);
  font-weight: 700;
}

.activity-v3.orders-v2-page .ord2-kpi-value small {
  font-size: 13px;
  color: var(--v3-muted);
  margin-left: 6px;
  font-weight: 600;
}

.activity-v3.orders-v2-page .ord2-kpi-bar {
  margin-top: 10px;
  height: 4px;
  background: #edf0f7;
  border-radius: 999px;
  overflow: hidden;
}

.activity-v3.orders-v2-page .ord2-kpi-bar span {
  display: block;
  height: 100%;
  min-width: 1px;
  transition: width 0.2s ease;
}

.activity-v3.orders-v2-page .ord2-filters-row {
  display: grid;
  grid-template-columns: 1.5fr 220px 220px auto;
  gap: 10px;
  margin-bottom: 12px;
}

.activity-v3.orders-v2-page .ord2-search {
  position: relative;
}

.activity-v3.orders-v2-page .ord2-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--v3-muted);
}

.activity-v3.orders-v2-page .ord2-search input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface-soft);
  padding: 0 12px 0 36px;
  font-size: 13px;
}

.activity-v3.orders-v2-page .ord2-search input:focus {
  border-color: var(--v3-primary);
  box-shadow: 0 0 0 2px rgba(0, 100, 75, 0.12);
  outline: none;
}

.activity-v3.orders-v2-page .ord2-select .form-control {
  height: 42px;
  border-radius: 12px;
}

.activity-v3.orders-v2-page .ord2-list {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-v3.orders-v2-page .ord2-card {
  border: 1px solid var(--v3-border);
  border-left: 4px solid var(--accent, var(--v3-primary));
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.activity-v3.orders-v2-page .ord2-card-main {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
}

.activity-v3.orders-v2-page .ord2-col {
  min-width: 0;
}

.activity-v3.orders-v2-page .ord2-col-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.activity-v3.orders-v2-page .ord2-status-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.activity-v3.orders-v2-page .ord2-code {
  font-size: 28px;
  font-weight: 700;
  color: var(--v3-text);
  line-height: 1.1;
}

.activity-v3.orders-v2-page .ord2-client {
  font-size: 24px;
  color: var(--v3-text);
  font-weight: 700;
  margin-top: 2px;
}

.activity-v3.orders-v2-page .ord2-small {
  color: var(--v3-muted);
  font-size: 18px;
  margin-top: 4px;
}

.activity-v3.orders-v2-page .ord2-total {
  font-size: 36px;
  font-weight: 700;
  color: var(--v3-text);
  line-height: 1.1;
}

.activity-v3.orders-v2-page .ord2-col-status {
  display: flex;
  justify-content: center;
}

.activity-v3.orders-v2-page .ord2-col-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.activity-v3.orders-v2-page .ord2-draft-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: #eef1f8;
  color: #59627b;
  font-size: 12px;
  font-weight: 700;
}

.activity-v3.orders-v2-page .ord2-card-expand {
  border-top: 1px solid var(--v3-border);
  padding: 14px 16px 16px;
  background: #fcfdff;
}

.activity-v3.orders-v2-page .ord2-expand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.activity-v3.orders-v2-page .ord2-expand-grid h4 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--v3-text);
}

.activity-v3.orders-v2-page .ord2-expand-grid p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 18px;
}

.activity-v3.orders-v2-page .ord2-expand-grid p span {
  color: var(--v3-muted);
}

.activity-v3.orders-v2-page .ord2-expand-grid p strong {
  color: var(--v3-text);
  font-weight: 700;
  text-align: right;
}

.activity-v3.orders-v2-page .ord2-history {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-v3.orders-v2-page .ord2-history li {
  padding: 6px 0;
}

.activity-v3.orders-v2-page .ord2-history strong {
  display: block;
  font-size: 18px;
}

.activity-v3.orders-v2-page .ord2-history small {
  color: var(--v3-muted);
  font-size: 16px;
}

.activity-v3.orders-v2-page .ord2-expand-empty {
  min-height: 100px;
  border: 1px dashed var(--v3-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--v3-muted);
  text-align: center;
  font-size: 18px;
  padding: 10px;
}

.activity-v3.orders-v2-page .ord2-footer {
  padding: 10px 18px 18px;
  font-size: 18px;
  color: var(--v3-muted);
  font-weight: 700;
}

/* Order detail redesign */
.activity-v3.order-detail-v2 .ord3-top-panel {
  padding: 8px 0px;
}

.activity-v3.order-detail-v2 .ord3-top-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--v3-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.activity-v3.order-detail-v2 .ord3-top-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.activity-v3.order-detail-v2 .ord3-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-v3.order-detail-v2 .ord3-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-status-pill,
.activity-v3.order-detail-v2 .ord3-draft-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-draft-pill {
  background: #eef1f8;
  color: #59627b;
}

.activity-v3.order-detail-v2 .ord3-subtitle {
  margin: 5px 0 0;
  color: var(--v3-muted);
  font-size: 14px;
}

.activity-v3.order-detail-v2 .ord3-meta {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--v3-muted);
  font-size: 13px;
}

.activity-v3.order-detail-v2 .ord3-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.activity-v3.order-detail-v2 .ord3-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.activity-v3.order-detail-v2 .ord3-tabs-panel {
  padding: 0;
}

.activity-v3.order-detail-v2 .ord3-tabs {
  display: flex;
  gap: 12px;
  padding: 0 16px;
}

.activity-v3.order-detail-v2 .ord3-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--v3-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 13px 2px;
  cursor: pointer;
}

.activity-v3.order-detail-v2 .ord3-tab.is-active {
  color: var(--v3-primary);
  border-bottom-color: var(--v3-primary);
}

.activity-v3.order-detail-v2 .ord3-layout {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.activity-v3.order-detail-v2 .ord3-main-col {
  display: grid;
  gap: 14px;
}

.activity-v3.order-detail-v2 .ord3-side-col {
  display: grid;
  gap: 14px;
}

.activity-v3.order-detail-v2 .ord3-inline-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.activity-v3.order-detail-v2 .ord3-client-block {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: start;
}

.activity-v3.order-detail-v2 .ord3-client-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 100, 75, 0.14);
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-status-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.activity-v3.order-detail-v2 .ord3-status-item {
  width: 100%;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--v3-text);
  font-size: 13px;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-status-item.is-active {
  background: var(--status-color);
  border-color: var(--status-color);
  color: #fff;
}

.activity-v3.order-detail-v2 .ord3-status-item:not(.is-active):hover {
  background: #f8fafc;
  border-color: var(--status-color);
}

.activity-v3.order-detail-v2 .ord3-status-item.is-active:hover {
  background: var(--status-color);
  border-color: var(--status-color);
  color: #fff;
}

.activity-v3.order-detail-v2 .ord3-status-item.is-active .dot {
  background: rgba(255, 255, 255, 0.95) !important;
}

.activity-v3.order-detail-v2 .ord3-status-item.is-active i {
  color: #fff;
}

.activity-v3.order-detail-v2 .ord3-status-item .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-v3.order-detail-v2 .ord3-status-item i {
  margin-left: auto;
}

.activity-v3.order-detail-v2 .ord3-status-top-panel .v3-panel-body {
  padding-top: 2px;
}

.activity-v3.order-detail-v2 .ord3-status-top-panel .ord3-status-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-v3.order-detail-v2 .ord3-status-top-panel .ord3-status-item {
  width: auto;
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}

.activity-v3.order-detail-v2 .ord3-status-top-panel .ord3-status-item i {
  margin-left: 4px;
}

.activity-v3.order-detail-v2 .ord3-client-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.activity-v3.order-detail-v2 .ord3-items-table tbody td {
  vertical-align: top;
}

.activity-v3.order-detail-v2 .ord3-items-table .form-control {
  border-radius: 10px;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface-soft);
  box-shadow: none;
}

.activity-v3.order-detail-v2 .ord3-items-table .ord3-input-sm {
  height: 36px;
  font-size: 13px;
  padding: 0 10px;
}

.activity-v3.order-detail-v2 .ord3-items-table .ord3-textarea-sm {
  min-height: 96px;
  resize: vertical;
  padding: 8px 10px;
}

.activity-v3.order-detail-v2 .ord3-discount-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 6px;
}

.activity-v3.order-detail-v2 .ord3-discount-hint {
  display: block;
  margin-top: 6px;
  color: var(--v3-primary);
  font-size: 12px;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-duration-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
}

.activity-v3.order-detail-v2 .ord3-start-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 8px;
}

.activity-v3.order-detail-v2 .ord3-duration-presets {
  margin: 2px 0 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.activity-v3.order-detail-v2 .ord3-duration-preset {
  height: 30px;
  border: 1px solid #dbe1ee;
  border-radius: 999px;
  background: #fff;
  color: #4f5f86;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

.activity-v3.order-detail-v2 .ord3-duration-preset:hover {
  border-color: #97a7cf;
  background: #f7faff;
}

.activity-v3.order-detail-v2 .ord3-duration-preset.is-active {
  border-color: #006b49;
  background: #e5f5ed;
  color: #0b6e4f;
}

.activity-v3.order-detail-v2 .ord3-duration-advanced-toggle-wrap {
  display: flex;
  align-items: flex-end;
}

.activity-v3.order-detail-v2 .ord3-derived-end {
  margin-top: 6px;
  border: 1px solid #e5eaf4;
  border-radius: 12px;
  background: #f9fbff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-v3.order-detail-v2 .ord3-derived-end-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6e7896;
  margin-bottom: 2px;
}

.activity-v3.order-detail-v2 .ord3-derived-end strong {
  font-size: 15px;
  color: #19213a;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-inline-link {
  border: 0;
  background: transparent;
  color: #0a6c4e;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}

.activity-v3.order-detail-v2 .ord3-inline-link:hover {
  text-decoration: underline;
}

.activity-v3.order-detail-v2 .ord3-duration-manual-alert {
  margin-top: 10px;
  border: 1px solid #f3d89d;
  background: #fff7e8;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.activity-v3.order-detail-v2 .ord3-duration-manual-alert strong {
  display: block;
  font-size: 13px;
  color: #9a5800;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-duration-manual-alert span {
  display: block;
  font-size: 12px;
  color: #7c6335;
  font-weight: 600;
  margin-top: 2px;
}

.activity-v3.order-detail-v2 .ord3-inline-advanced-end {
  margin-top: 8px;
}

.activity-v3.order-detail-v2 .ord3-advanced-toggle-row {
  margin-top: 10px;
}

.activity-v3.order-detail-v2 .ord3-advanced-fields {
  margin-top: 10px;
  border-top: 1px solid #edf1f7;
  padding-top: 12px;
}

.activity-v3.order-detail-v2 .ord3-history-actor {
  color: var(--v3-muted);
  font-size: 12px;
  font-weight: 600;
}

.activity-v3.order-detail-v2 .ord3-status-history .ord3-history-item {
  position: relative;
  border-left: 0;
  padding: 10px 0 10px 34px;
  margin-bottom: 0;
}

.activity-v3.order-detail-v2 .ord3-status-history .ord3-history-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5eaf4;
}

.activity-v3.order-detail-v2 .ord3-status-history .ord3-history-item:first-child::before {
  top: 12px;
}

.activity-v3.order-detail-v2 .ord3-status-history .ord3-history-item:last-child {
  margin-bottom: 0;
}

.activity-v3.order-detail-v2 .ord3-status-history .ord3-history-item:last-child::before {
  bottom: 12px;
}

.activity-v3.order-detail-v2 .ord3-history-dot {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #d9deeb;
}

.activity-v3.order-detail-v2 .ord3-history-content {
  min-width: 0;
}

.activity-v3.order-detail-v2 .ord3-history-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.activity-v3.order-detail-v2 .ord3-history-main strong {
  font-size: 14px;
  font-weight: 700;
  color: #19213a;
}

.activity-v3.order-detail-v2 .ord3-history-note {
  font-size: 12px;
  color: var(--v3-muted);
}

.activity-v3.order-detail-v2 .ord3-history-meta {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.activity-v3.order-detail-v2 .ord3-status-history .ord3-history-meta small {
  margin-left: 0;
}

.activity-v3.order-detail-v2 .ord3-status-history .ord3-history-meta small,
.activity-v3.order-detail-v2 .ord3-status-history .ord3-history-meta .ord3-history-actor {
  font-size: 12px;
  color: var(--v3-muted);
}

.activity-v3.order-detail-v2 .ord3-multi-select {
  height: auto;
  min-height: 108px;
  padding: 8px 10px;
}

.activity-v3.order-detail-v2 .ord3-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--v3-text);
}

.activity-v3.order-detail-v2 .v3-field-client {
  position: relative;
}

.activity-v3.order-detail-v2 .v3-field-client .v3-client-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--v3-border);
  border-radius: 12px;
  max-height: 240px;
  overflow: auto;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.activity-v3.order-detail-v2 .v3-field-client .v3-client-results > div {
  padding: 8px 12px;
  border-bottom: 1px solid #edf2f7;
  cursor: pointer;
  display: grid;
  gap: 2px;
}

.activity-v3.order-detail-v2 .v3-field-client .v3-client-results > div strong {
  font-size: 13px;
  color: var(--v3-text);
}

.activity-v3.order-detail-v2 .v3-field-client .v3-client-results > div small {
  font-size: 12px;
  color: var(--v3-muted);
}

.activity-v3.order-detail-v2 .v3-field-client .v3-client-results > div:hover {
  background: var(--v3-surface-soft);
}

.activity-v3.order-detail-v2 .v3-field-client .v3-client-results > div.is-selected {
  background: var(--v3-primary-soft);
}

.activity-v3.order-detail-v2 .v3-client-result-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--v3-muted);
}

.activity-v3.order-detail-v2 .ord3-client-labels,
.activity-v3.order-detail-v2 .ord3-client-tags {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.activity-v3.order-detail-v2 .ord3-chip,
.activity-v3.order-detail-v2 .ord3-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-chip {
  background: #eef7ff;
  color: #1f4b7a;
}

.activity-v3.order-detail-v2 .ord3-tag-chip {
  background: #f4f6fb;
  color: #57607a;
}

.activity-v3.order-detail-v2 .ord3-empty-text {
  font-size: 12px;
  color: var(--v3-muted);
}

.activity-v3.order-detail-v2 .ord3-side-settings .v3-field {
  margin-bottom: 10px;
}

.activity-v3.order-detail-v2 .ord3-side-settings .v3-label {
  margin-bottom: 6px;
}

.activity-v3.order-detail-v2 .ord3-side-settings-divider {
  margin: 12px 0 8px;
  padding-top: 10px;
  border-top: 1px solid #e8edf6;
}

.activity-v3.order-detail-v2 .ord3-side-settings-divider > span {
  font-size: 12px;
  font-weight: 700;
  color: #6a7492;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.activity-v3.order-detail-v2 .ord3-items-panel {
  overflow: hidden;
  display: grid;
  gap: 14px;
}

.activity-v3.order-detail-v2 .ord3-catalog-toolbar {
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #edf1f7;
  background: #fafcff;
  padding: 10px 16px;
}

.activity-v3.order-detail-v2 .ord3-catalog-toolbar .v3-label {
  display: block;
  margin-bottom: 8px;
}

.activity-v3.order-detail-v2 .ord3-catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-v3.order-detail-v2 .ord3-catalog-chip {
  border: 1px solid #dbe1ee;
  border-radius: 10px;
  background: #fff;
  color: #213154;
  padding: 7px 10px;
  min-width: 180px;
  text-align: left;
  cursor: pointer;
}

.activity-v3.order-detail-v2 .ord3-catalog-chip:hover {
  border-color: #9fb0d6;
  background: #f6f9ff;
}

.activity-v3.order-detail-v2 .ord3-catalog-chip-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.activity-v3.order-detail-v2 .ord3-catalog-chip small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #62708f;
  font-weight: 600;
}

.activity-v3.order-detail-v2 .ord3-item-card {
  border: 1px solid var(--v3-border);
  background: #fff;
  display: grid;
  grid-template-columns: 64px 1fr;
  overflow: hidden;
}

.activity-v3.order-detail-v2 .ord3-item-side {
  border-right: 1px solid #edf1f7;
  background: #fcfdff;
  color: #66708c;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-item-side i {
  font-size: 18px;
  color: #9aa4bf;
}

.activity-v3.order-detail-v2 .ord3-item-content {
  padding: 16px 18px;
  display: grid;
  gap: 12px;
}

.activity-v3.order-detail-v2 .ord3-item-content .v3-label {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: #66708c;
  margin-bottom: 6px;
}

.activity-v3.order-detail-v2 .ord3-item-top-row {
  display: grid;
  grid-template-columns: minmax(300px, 2.2fr) minmax(150px, 0.9fr) minmax(90px, 0.5fr) minmax(110px, 0.6fr) minmax(120px, 0.7fr) 10px;
  gap: 12px;
  align-items: end;
}

.activity-v3.order-detail-v2 .ord3-item-bottom-row {
  display: grid;
  grid-template-columns: minmax(300px, 2.2fr) minmax(150px, 0.9fr) minmax(90px, 0.5fr) minmax(110px, 0.6fr) minmax(120px, 0.7fr) 10px;
  gap: 12px;
  align-items: start;
}

.activity-v3.order-detail-v2 .ord3-item-top-row .v3-field,
.activity-v3.order-detail-v2 .ord3-item-bottom-row .v3-field {
  margin-bottom: 0;
  min-width: 0;
}

.activity-v3.order-detail-v2 .ord3-item-description-field {
  grid-column: 1 / 5;
}

.activity-v3.order-detail-v2 .ord3-input-md {
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface-soft);
  font-size: 13px;
  color: #1d2333;
  padding: 0 12px;
}

/* Reset global datetime-local picker overlay for Order detail.
   A legacy global rule stretches the picker indicator, causing sticky calendar behavior. */
.activity-v3.order-detail-v2 input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.activity-v3.order-detail-v2 input[type="date"]::-webkit-calendar-picker-indicator {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 16px;
  height: 16px;
  color: inherit;
  background: none;
  cursor: pointer;
}

.activity-v3.order-detail-v2 .ord3-money-field {
  display: grid;
  grid-template-columns: 1fr 40px;
}

.activity-v3.order-detail-v2 .ord3-money-field .ord3-input-md {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.activity-v3.order-detail-v2 .ord3-money-field > span {
  border: 1px solid var(--v3-border);
  border-left: 0;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  background: #f0f3f8;
  color: #6d7690;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.activity-v3.order-detail-v2 .ord3-delete-item {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #eb5b5b;
  margin-top: 0;
  align-self: end;
  justify-self: end;
}

.activity-v3.order-detail-v2 .ord3-line-total-box {
  min-width: 120px;
  justify-self: end;
  text-align: right;
  padding-right: 2px;
  align-self: end;
  white-space: nowrap;
}

.activity-v3.order-detail-v2 .ord3-line-total-box p {
  margin: 0;
  color: #66708c;
  font-size: 12px;
  font-weight: 600;
}

.activity-v3.order-detail-v2 .ord3-line-total-box strong {
  font-size: 16px;
  line-height: 1.1;
  color: #121826;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-item-discount-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--v3-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.activity-v3.order-detail-v2 .ord3-item-discount-link:hover {
  text-decoration: underline;
}

.activity-v3.order-detail-v2 .ord3-item-description-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--v3-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.activity-v3.order-detail-v2 .ord3-item-description-link:hover {
  text-decoration: underline;
}

.activity-v3.order-detail-v2 .ord3-item-discount-panel {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.activity-v3.order-detail-v2 .ord3-item-discount-panel .v3-field {
  margin-bottom: 0;
  width: 320px;
  max-width: 100%;
}

.activity-v3.order-detail-v2 .ord3-discount-close {
  height: 38px;
  border-radius: 10px;
}

.activity-v3.order-detail-v2 .ord3-description-close {
  height: 38px;
  border-radius: 10px;
  justify-self: end;
  align-self: end;
}

.activity-v3.order-detail-v2 .ord3-items-empty {
  text-align: center;
  color: var(--v3-muted);
  padding: 24px;
  border: 1px dashed var(--v3-border);
  border-radius: 14px;
  background: #fbfcff;
}

.activity-v3.order-detail-v2 .ord3-add-item-bottom {
  width: 100%;
  height: 52px;
  border-style: dashed;
}

.activity-v3.order-detail-v2 .ord3-summary-card {
  border-radius: 18px;
  padding: 22px 24px;
}

.activity-v3.order-detail-v2 .ord3-summary-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #171d2b;
}

.activity-v3.order-detail-v2 .ord3-side-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: #5e6784;
  font-size: 14px;
  font-weight: 600;
}

.activity-v3.order-detail-v2 .ord3-side-summary-row strong {
  color: #2a3147;
  font-size: 14px;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-side-summary-row.is-discount {
  background: #fdf6ea;
  border: 1px solid #f3e1bf;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 4px 0;
}

.activity-v3.order-detail-v2 .ord3-discount-amount {
  color: #b45309;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-side-summary-row i {
  margin-left: 6px;
  color: #99a1ba;
}

.activity-v3.order-detail-v2 .ord3-inline-add {
  border: 0;
  background: transparent;
  color: var(--v3-primary);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  line-height: 1;
}

.activity-v3.order-detail-v2 .ord3-inline-add:hover {
  text-decoration: underline;
}

.activity-v3.order-detail-v2 .ord3-side-summary-divider {
  margin: 12px 0 10px;
  border-top: 1px solid #e6eaf3;
}

.activity-v3.order-detail-v2 .ord3-side-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.activity-v3.order-detail-v2 .ord3-side-summary-total span {
  color: #171d2b;
  font-size: 18px;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-side-summary-total strong {
  color: var(--v3-primary);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.activity-v3.order-detail-v2 .ord3-summary-input-eur {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 138px;
  max-width: 160px;
}

.activity-v3.order-detail-v2 .ord3-summary-input {
  height: 34px;
  border: 1px solid var(--v3-border);
  border-radius: 8px 0 0 8px;
  border-right: 0;
  background: #fff;
  font-size: 13px;
  padding: 0 10px;
  text-align: right;
}

.activity-v3.order-detail-v2 .ord3-summary-input-eur > span {
  height: 34px;
  border: 1px solid var(--v3-border);
  border-radius: 0 8px 8px 0;
  background: #f3f6fb;
  color: #5b6480;
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
}

.activity-v3.order-detail-v2 .ord3-notes-area {
  min-height: 120px;
  border-radius: 12px;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface-soft);
  padding: 12px;
  font-size: 13px;
  resize: vertical;
}

@media (max-width: 1300px) {
  .activity-v3.orders-v2-page .ord2-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-v3.orders-v2-page .ord2-filters-row {
    grid-template-columns: 1fr 1fr;
  }

  .activity-v3.orders-v2-page .ord2-card-main {
    grid-template-columns: 1.8fr 1.2fr 1fr;
  }

  .activity-v3.orders-v2-page .ord2-col-status,
  .activity-v3.orders-v2-page .ord2-col-actions {
    justify-content: flex-start;
  }

  .activity-v3.orders-v2-page .ord2-expand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-v3.order-detail-v2 .ord3-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .activity-v3.orders-v2-page .ord2-title,
  .activity-v3.order-detail-v2 .ord3-title {
    font-size: 28px;
  }

  .activity-v3.orders-v2-page .ord2-subtitle {
    font-size: 14px;
  }

  .activity-v3.orders-v2-page .ord2-code {
    font-size: 18px;
  }

  .activity-v3.orders-v2-page .ord2-client {
    font-size: 16px;
  }

  .activity-v3.orders-v2-page .ord2-small,
  .activity-v3.orders-v2-page .ord2-history strong,
  .activity-v3.orders-v2-page .ord2-history small,
  .activity-v3.orders-v2-page .ord2-expand-grid p,
  .activity-v3.orders-v2-page .ord2-expand-empty,
  .activity-v3.orders-v2-page .ord2-footer {
    font-size: 13px;
  }

  .activity-v3.orders-v2-page .ord2-total {
    font-size: 20px;
  }

  .activity-v3.orders-v2-page .ord2-card-main {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .activity-v3.orders-v2-page .ord2-filters-row {
    grid-template-columns: 1fr;
  }

  .activity-v3.orders-v2-page .ord2-expand-grid {
    grid-template-columns: 1fr;
  }

  .activity-v3.order-detail-v2 .ord3-item-card {
    grid-template-columns: 1fr;
  }

  .activity-v3.order-detail-v2 .ord3-item-side {
    border-right: 0;
    border-bottom: 1px solid #edf1f7;
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 8px 14px;
    align-content: center;
  }

  .activity-v3.order-detail-v2 .ord3-item-content {
    padding: 12px;
  }

  .activity-v3.order-detail-v2 .ord3-item-top-row,
  .activity-v3.order-detail-v2 .ord3-item-bottom-row {
    grid-template-columns: 1fr;
  }

  .activity-v3.order-detail-v2 .ord3-delete-item {
    margin-top: 0;
    justify-self: start;
  }

  .activity-v3.order-detail-v2 .ord3-line-total-box {
    justify-self: start;
    text-align: left;
    padding-right: 0;
  }

  .activity-v3.order-detail-v2 .ord3-summary-card h3 {
    font-size: 22px;
  }

  .activity-v3.order-detail-v2 .ord3-side-summary-row,
  .activity-v3.order-detail-v2 .ord3-side-summary-row strong,
  .activity-v3.order-detail-v2 .ord3-inline-add {
    font-size: 16px;
  }

  .activity-v3.order-detail-v2 .ord3-side-summary-total span {
    font-size: 20px;
  }

  .activity-v3.order-detail-v2 .ord3-side-summary-total strong {
    font-size: 24px;
  }

  .activity-v3.order-detail-v2 .ord3-duration-row {
    grid-template-columns: 1fr;
  }

  .activity-v3.order-detail-v2 .ord3-start-row {
    grid-template-columns: 1fr;
  }

  .activity-v3.order-detail-v2 .ord3-derived-end {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-v3.order-detail-v2 .ord3-duration-manual-alert {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-v3.order-detail-v2 .ord3-catalog-chip {
    min-width: 0;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Orders list reference layout (match design)
   -------------------------------------------------------------------------- */
.activity-v3.orders-v2-reference {
  padding: 18px 22px;
}

.activity-v3.orders-v2-reference .ordl-shell {
  gap: 12px;
}

.activity-v3.orders-v2-reference .ordl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.activity-v3.orders-v2-reference .ordl-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 700;
  color: #0f1730;
}

.activity-v3.orders-v2-reference .ordl-header p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #68718d;
}

.activity-v3.orders-v2-reference .ordl-new-order-btn {
  border: 0;
  border-radius: 10px;
  height: 40px;
  background: #006b49;
  color: #fff;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.activity-v3.orders-v2-reference .ordl-new-order-btn:hover {
  background: #005c3f;
}

.activity-v3.orders-v2-reference .ordl-kpi-panel {
  border-radius: 12px;
  box-shadow: none;
}

.activity-v3.orders-v2-reference .ordl-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.activity-v3.orders-v2-reference .ordl-kpi-item {
  padding: 16px 18px 14px;
  border-right: 1px solid #edf0f6;
}

.activity-v3.orders-v2-reference .ordl-kpi-item:last-child {
  border-right: 0;
}

.activity-v3.orders-v2-reference .ordl-kpi-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.activity-v3.orders-v2-reference .ordl-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.activity-v3.orders-v2-reference .ordl-kpi-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #66708b;
}

.activity-v3.orders-v2-reference .ordl-kpi-value {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f1730;
  line-height: 1.15;
}

.activity-v3.orders-v2-reference .ordl-kpi-value small {
  margin-left: 5px;
  color: #66708b;
  font-size: 13px;
  font-weight: 600;
}

.activity-v3.orders-v2-reference .ordl-kpi-line {
  margin-top: 12px;
  height: 3px;
  border-radius: 999px;
  background: #edf0f6;
  overflow: hidden;
}

.activity-v3.orders-v2-reference .ordl-kpi-line span {
  display: block;
  height: 100%;
}

.activity-v3.orders-v2-reference .ordl-filter-panel {
  border-radius: 12px;
  box-shadow: none;
}

.activity-v3.orders-v2-reference .ordl-filter-top {
  display: grid;
  grid-template-columns: 1fr 160px auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px 10px;
}

.activity-v3.orders-v2-reference .ordl-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.activity-v3.orders-v2-reference .ordl-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a93ad;
  font-size: 14px;
  pointer-events: none;
}

.activity-v3.orders-v2-reference .ordl-search-wrap input,
.activity-v3.orders-v2-reference .ordl-select {
  width: 100%;
  height: 38px;
  border: 1px solid #dbe1ee;
  border-radius: 10px;
  background: #fff;
  color: #1a2340;
  font-size: 13px;
  font-weight: 500;
}

.activity-v3.orders-v2-reference .ordl-search-wrap input {
  padding: 0 12px 0 36px;
  border-radius: 10px 0 0 10px;
  border-right: none;
  flex: 1 1 auto;
  min-width: 0;
}

.activity-v3.orders-v2-reference .ordl-search-btn {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--v3-primary);
  border-left: none;
  border-radius: 0 10px 10px 0;
  background: var(--v3-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.15s ease;
}

.activity-v3.orders-v2-reference .ordl-search-btn:hover {
  filter: brightness(0.88);
  background: var(--v3-primary);
  color: #fff;
  border-color: var(--v3-primary);
}

.activity-v3.orders-v2-reference .ordl-search-wrap input:focus,
.activity-v3.orders-v2-reference .ordl-select:focus {
  border-color: #9aaad1;
  outline: none;
  box-shadow: none;
}

.activity-v3.orders-v2-reference .ordl-filter-btn {
  height: 38px;
  border: 1px solid #dbe1ee;
  border-radius: 10px;
  background: #fff;
  color: #344160;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.activity-v3.orders-v2-reference .ordl-view-toggle {
  border-left: 1px solid #edf0f6;
  padding-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.activity-v3.orders-v2-reference .ordl-view-toggle button {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid #dbe1ee;
  background: #fff;
  color: #5a678a;
  cursor: pointer;
}

.activity-v3.orders-v2-reference .ordl-view-toggle button.is-active {
  background: #006b49;
  border-color: #006b49;
  color: #fff;
}

.activity-v3.orders-v2-reference .ordl-status-pills {
  padding: 0 16px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.activity-v3.orders-v2-reference .ordl-pill {
  height: 32px;
  border-radius: 999px;
  border: 1px solid #dbe1ee;
  background: #fff;
  color: #5a678a;
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  cursor: pointer;
}

.activity-v3.orders-v2-reference .ordl-pill.is-active {
  background: #dff2e7;
  color: #0b7a4a;
  border-color: #cce9da;
}

.activity-v3.orders-v2-reference .ordl-table-panel {
  border-radius: 12px;
  box-shadow: none;
  overflow: visible;
}

.activity-v3.orders-v2-reference .ordl-table-wrap {
  border-radius: 12px;
  overflow: visible;
  border: 1px solid #e6eaf4;
}

.activity-v3.orders-v2-reference .ordl-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.activity-v3.orders-v2-reference .ordl-table th:nth-child(1) { width: 9%; }   /* Codice */
.activity-v3.orders-v2-reference .ordl-table th:nth-child(2) { width: 16%; }  /* Cliente */
.activity-v3.orders-v2-reference .ordl-table th:nth-child(3) { width: 18%; }  /* Prodotto */
.activity-v3.orders-v2-reference .ordl-table th:nth-child(4) { width: 12%; }  /* Totale */
.activity-v3.orders-v2-reference .ordl-table th:nth-child(5) { width: 14%; }  /* Data */
.activity-v3.orders-v2-reference .ordl-table th:nth-child(6) { width: 22%; }  /* Stato */
.activity-v3.orders-v2-reference .ordl-table th:nth-child(7) { width: 9%; }   /* Azioni */

.activity-v3.orders-v2-reference .ordl-table th {
  height: 42px;
  padding: 0 12px;
  background: #f9fbff;
  color: #63708f;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid #e6eaf4;
}

.activity-v3.orders-v2-reference .ordl-table td {
  padding: 10px 12px;
  color: #1a2340;
  font-size: 13px;
  border-bottom: 1px solid #edf0f6;
  vertical-align: middle;
}

.activity-v3.orders-v2-reference .ordl-table tbody tr.ordl-row-clickable {
  cursor: pointer;
}

.activity-v3.orders-v2-reference .ordl-table tbody tr:hover {
  background: #f4f6fb;
}

.activity-v3.orders-v2-reference .ordl-table tbody tr.ordl-row-clickable td.ordl-status-cell,
.activity-v3.orders-v2-reference .ordl-table tbody tr.ordl-row-clickable td.ordl-actions-cell {
  cursor: default;
}

.activity-v3.orders-v2-reference .ordl-code,
.activity-v3.orders-v2-reference .ordl-total {
  font-weight: 700;
  color: #131c39;
}

.activity-v3.orders-v2-reference .ordl-client-cell {
  line-height: 1.25;
}

.activity-v3.orders-v2-reference .ordl-client-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a2340;
}

.activity-v3.orders-v2-reference .ordl-client-phone {
  margin-top: 4px;
  font-size: 12px;
  color: #7c86a5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-v3.orders-v2-reference .ordl-code-value {
  font-weight: 700;
  font-size: 13px;
  color: #1a2340;
  white-space: nowrap;
}

.activity-v3.orders-v2-reference .ordl-code-agent {
  margin-top: 3px;
  font-size: 11px;
  color: #7c86a5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.activity-v3.orders-v2-reference .ordl-title-cell {
  vertical-align: top;
}

.activity-v3.orders-v2-reference .ordl-title-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-height: 3.9em;
  word-break: break-word;
  color: #1f2846;
}

.activity-v3.orders-v2-reference .ordl-total-cell {
  line-height: 1.25;
}

.activity-v3.orders-v2-reference .ordl-items-sub {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #6b7593;
}

.activity-v3.orders-v2-reference .ordl-items-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334160;
}

.activity-v3.orders-v2-reference .ordl-date {
  color: #4d5b80;
}

.activity-v3.orders-v2-reference .ordl-status-cell,
.activity-v3.orders-v2-reference .ordl-actions-cell {
  position: relative;
}

.activity-v3.orders-v2-reference .ordl-status-anchor {
  position: relative;
  display: inline-flex;
}

.activity-v3.orders-v2-reference .ordl-status-chip {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
}

.activity-v3.orders-v2-reference .ordl-status-chip i.fa-angle-down {
  opacity: 0.7;
}

.activity-v3.orders-v2-reference .ordl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-v3.orders-v2-reference .ordl-status-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 70;
  min-width: 170px;
  background: #fff;
  border: 1px solid #e2e7f2;
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(20, 35, 70, 0.16);
  padding: 6px;
}

.activity-v3.orders-v2-reference .ordl-status-menu button {
  width: 100%;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #283458;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.activity-v3.orders-v2-reference .ordl-status-menu button:hover {
  background: #f4f7fd;
}

.activity-v3.orders-v2-reference .ordl-status-menu button.is-current {
  background: #eef4ff;
}

.activity-v3.orders-v2-reference .ordl-open-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #dbe1ee;
  border-radius: 9px;
  background: #fff;
  color: #146a4b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.activity-v3.orders-v2-reference .ordl-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-v3.orders-v2-reference .ordl-action-anchor {
  position: relative;
  display: inline-flex;
}

.activity-v3.orders-v2-reference .ordl-more-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #dbe1ee;
  border-radius: 9px;
  background: #fff;
  color: #5c698a;
  cursor: pointer;
}

.activity-v3.orders-v2-reference .ordl-action-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 70;
  width: 164px;
  background: #fff;
  border: 1px solid #e2e7f2;
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(20, 35, 70, 0.16);
  padding: 6px;
}

.activity-v3.orders-v2-reference .ordl-action-menu button {
  width: 100%;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: #283458;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 0 8px;
  cursor: pointer;
}

.activity-v3.orders-v2-reference .ordl-action-menu button:hover {
  background: #f4f7fd;
}

.activity-v3.orders-v2-reference .ordl-action-menu button.is-danger {
  color: #d3423c;
}

.activity-v3.orders-v2-reference .ordl-action-menu button[disabled] {
  opacity: 0.45;
  cursor: default;
}

.activity-v3.orders-v2-reference .ordl-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 0;
}

.activity-v3.orders-v2-reference .ordl-footer-left {
  font-size: 13px;
  color: #62708f;
  font-weight: 600;
}

.activity-v3.orders-v2-reference .ordl-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
}

.activity-v3.orders-v2-reference .ordl-pagination button {
  min-width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid #dbe1ee;
  background: #fff;
  color: #344160;
  font-size: 13px;
  font-weight: 700;
  padding: 0 8px;
  cursor: pointer;
}

.activity-v3.orders-v2-reference .ordl-pagination button.is-active {
  background: #006b49;
  border-color: #006b49;
  color: #fff;
}

.activity-v3.orders-v2-reference .ordl-pagination button.is-gap {
  border: 0;
  background: transparent;
  cursor: default;
}

.activity-v3.orders-v2-reference .ordl-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.activity-v3.orders-v2-reference .ordl-page-size {
  justify-self: end;
}

.activity-v3.orders-v2-reference .ordl-page-size .form-control {
  width: 138px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #dbe1ee;
  font-size: 13px;
  color: #344160;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-table th:nth-child(1) { width: 9%; }   /* Codice */
.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-table th:nth-child(2) { width: 15%; }  /* Cliente */
.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-table th:nth-child(3) { width: 17%; }  /* Servizio */
.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-table th:nth-child(4) { width: 14%; }  /* Inizio */
.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-table th:nth-child(5) { width: 9%; }   /* Durata */
.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-table th:nth-child(6) { width: 11%; }  /* Totale */
.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-table th:nth-child(7) { width: 15%; }  /* Stato */
.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-table th:nth-child(8) { width: 10%; }  /* Azioni */

.activity-v3.orders-v2-reference.bookings-v2-reference .bkl-slot-time {
  color: #6b7a9b;
  font-size: 12px;
}

/* ── Services/Product cell (shared between orders and bookings lists) ── */
.activity-v3.orders-v2-reference .bkl-services-cell {
  vertical-align: middle;
}

.activity-v3.orders-v2-reference .bkl-service-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a2340;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  line-height: 1.3;
}

.activity-v3.orders-v2-reference .bkl-more-services {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  border: 1px solid rgba(0, 100, 75, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  margin-top: 5px;
  cursor: default;
  line-height: 1.6;
}

.activity-v3.orders-v2-reference .bkl-more-services::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 0;
  white-space: pre;
  background: #1c2640;
  color: #f0f4ff;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  min-width: 140px;
  max-width: 280px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 200;
  transform: translateZ(0); /* promote to own layer to escape zoom stacking */
}

.activity-v3.orders-v2-reference .bkl-more-services:hover::after {
  opacity: 1;
  visibility: visible;
}



.activity-v3.orders-v2-reference.bookings-v2-reference .bkl-slot-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4a587c;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .bkl-slot-row i {
  width: 10px;
  font-size: 10px;
  color: #8893b1;
  text-align: center;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .bkl-duration {
  color: #17213f;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .bkl-total-empty {
  color: #9ca5bd;
  font-size: 13px;
  font-weight: 700;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-calendar-panel {
  border-radius: 12px;
  box-shadow: none;
  padding: 12px 14px 14px;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-calendar-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 2px 2px 12px;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5f6c8e;
  font-size: 12px;
  font-weight: 600;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-calendar {
  min-height: 660px;
  border: 1px solid #e6eaf4;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  overflow: hidden;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .ordl-calendar.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .fc-toolbar h2 {
  color: #182241;
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .fc-toolbar .fc-left,
.activity-v3.orders-v2-reference.bookings-v2-reference .fc-toolbar .fc-right {
  display: inline-flex;
  gap: 6px;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .fc button {
  height: 32px;
  border: 1px solid #dbe1ee;
  border-radius: 8px;
  background: #fff;
  color: #344160;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  box-shadow: none;
  outline: none;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .fc button.fc-state-active,
.activity-v3.orders-v2-reference.bookings-v2-reference .fc button.fc-state-down {
  background: #006b49;
  border-color: #006b49;
  color: #fff;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .fc button:hover {
  background: #f7faff;
  border-color: #c9d4ea;
  color: #213053;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .fc button.fc-state-active:hover,
.activity-v3.orders-v2-reference.bookings-v2-reference .fc button.fc-state-down:hover {
  background: #005c3f;
  border-color: #005c3f;
  color: #fff;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .fc-event {
  border: 0;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 700;
}

.activity-v3.orders-v2-reference.bookings-v2-reference .fc-day-header {
  color: #66718f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 1260px) {
  .activity-v3.orders-v2-reference .ordl-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-v3.orders-v2-reference .ordl-kpi-item {
    border-right: 0;
    border-bottom: 1px solid #edf0f6;
  }

  .activity-v3.orders-v2-reference .ordl-filter-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .activity-v3.orders-v2-reference {
    padding: 12px;
  }

  .activity-v3.orders-v2-reference .ordl-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-v3.orders-v2-reference .ordl-header h1 {
    font-size: 30px;
  }

  .activity-v3.orders-v2-reference .ordl-filter-top {
    grid-template-columns: 1fr;
  }

  .activity-v3.orders-v2-reference .ordl-view-toggle {
    border-left: 0;
    padding-left: 0;
  }

  .activity-v3.orders-v2-reference .ordl-table-wrap {
    overflow: auto;
  }

  .activity-v3.orders-v2-reference .ordl-table {
    min-width: 1220px;
  }

  .activity-v3.orders-v2-reference.bookings-v2-reference .ordl-table {
    min-width: 1460px;
  }

  .activity-v3.orders-v2-reference .ordl-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .activity-v3.orders-v2-reference .ordl-pagination {
    justify-self: start;
  }

  .activity-v3.orders-v2-reference .ordl-page-size {
    justify-self: start;
  }
}

/* Sidebar "Crea nuovo" — voci in dismissione */
.home-shell .pingu-sidenav.pingu-sidenav-v2 .sidebar-new-item--deprecated {
  opacity: 0.55;
}

.home-shell .pingu-sidenav.pingu-sidenav-v2 .sidebar-new-item--deprecated:hover {
  opacity: 0.85;
}

.home-shell .pingu-sidenav.pingu-sidenav-v2 .sidebar-new-popover-sub--deprecated {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-shell .pingu-sidenav.pingu-sidenav-v2 .sidebar-new-deprecated-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a87c00;
  background: #fff8e1;
  border: 1px solid #f5c518;
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.4;
}

/* ── ordl-client-filter (agent/client filter in list views) ────────── */
.activity-v3.orders-v2-reference .ordl-client-filter {
  position: relative;
  min-width: 180px;
  max-width: 220px;
  flex-shrink: 0;
}

.activity-v3.orders-v2-reference .ordl-client-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e6f4f0;
  border: 1px solid #00644b;
  border-radius: 6px;
  padding: 0 8px;
  height: 34px;
  font-size: 13px;
  color: #00644b;
  white-space: nowrap;
  overflow: hidden;
}

.activity-v3.orders-v2-reference .ordl-client-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.activity-v3.orders-v2-reference .ordl-client-chip button {
  background: none;
  border: none;
  color: #00644b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.activity-v3.orders-v2-reference .ordl-client-search-wrap {
  position: relative;
}

.activity-v3.orders-v2-reference .ordl-client-search-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}

.activity-v3.orders-v2-reference .ordl-client-search-input:focus {
  border-color: #00644b;
  box-shadow: 0 0 0 2px rgba(0,100,75,0.1);
}

.activity-v3.orders-v2-reference .ordl-client-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
}

.activity-v3.orders-v2-reference .ordl-client-loading {
  padding: 10px 12px;
  font-size: 12px;
  color: #9ca3af;
}

.activity-v3.orders-v2-reference .ordl-client-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  gap: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.activity-v3.orders-v2-reference .ordl-client-option:last-child {
  border-bottom: none;
}

.activity-v3.orders-v2-reference .ordl-client-option:hover {
  background: #f0fdf4;
}

.activity-v3.orders-v2-reference .ordl-client-option-name {
  font-weight: 500;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-v3.orders-v2-reference .ordl-client-option-phone {
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
}
