/* Engineer Portal V2 - component styles (mobile-first) */

.tp-v2 body,
body.tp-v2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--tp-font-size-base);
  line-height: var(--tp-line-height);
  color: var(--tp-text);
  background: var(--tp-surface);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Native select dropdown caret - app-wide (BS5 removes native arrow on legacy form-control selects) */
body.tp-v2 select.form-control:not([multiple]),
body.tp-v2 select.tp-form-control:not([multiple]),
body.tp-v2 .tp-grid-list-sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.25rem;
  background-color: var(--tp-card, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%2364748b'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5' stroke='%2364748b' stroke-width='1.75' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
  cursor: pointer;
}

body.tp-v2 select.form-control:not([multiple]):focus,
body.tp-v2 select.tp-form-control:not([multiple]):focus,
body.tp-v2 .tp-grid-list-sort-select:focus {
  border-color: var(--tp-primary-light, #14b8a6);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

body.tp-v2 select.form-control:disabled,
body.tp-v2 select.form-control.tp-field-locked,
body.tp-v2 select.tp-form-control:disabled {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%2394a3b8'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5' stroke='%2394a3b8' stroke-width='1.75' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.tp-v2 h3 {
  font-size: 1.375rem !important;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tp-text);
}

.tp-v2 * {
  box-sizing: border-box;
}

.tp-v2 a {
  color: var(--tp-primary);
  text-decoration: none;
}

.tp-v2 a:hover {
  color: var(--tp-primary-dark);
}

/* Cards */
.tp-card {
  background: var(--tp-card);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
  padding: 1rem;
  margin-bottom: 1rem;
}

.tp-card-header {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--tp-text);
}

/* Buttons */
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tp-touch-min);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tp-btn-primary {
  background: var(--tp-primary);
  color: #fff;
}

.tp-btn-primary:hover,
.tp-btn-primary:focus {
  background: var(--tp-primary-dark);
  color: #fff;
}

/* Anchor buttons must beat .tp-v2 a link color */
.tp-v2 a.tp-btn-primary,
.tp-v2 a.tp-btn-primary:hover,
.tp-v2 a.tp-btn-primary:focus {
  color: #fff;
}

.tp-v2 a.tp-btn-outline,
.tp-v2 a.tp-btn-outline:hover,
.tp-v2 a.tp-btn-outline:focus {
  color: var(--tp-primary);
}

.tp-v2 a.tp-btn-chip,
.tp-v2 a.tp-btn-chip:hover,
.tp-v2 a.tp-btn-chip:focus {
  color: var(--tp-primary-dark);
}

.tp-btn-outline {
  background: transparent;
  color: var(--tp-primary);
  border: 1px solid var(--tp-primary);
}

.tp-btn-outline:hover {
  background: rgba(13, 148, 136, 0.08);
}

.tp-btn-sm {
  min-height: 36px;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

.tp-btn-warning {
  background: #F59E0B;
  color: #fff;
  border: 1px solid #D97706;
}

.tp-btn-warning:hover,
.tp-btn-warning:focus {
  background: #D97706;
  color: #fff;
}

.tp-v2 button.tp-btn-warning,
.tp-v2-legacy-content button.tp-btn-warning {
  color: #fff;
}

.tp-btn-info {
  background: #0EA5E9;
  color: #fff;
  border: 1px solid #0284C7;
}

.tp-btn-info:hover,
.tp-btn-info:focus {
  background: #0284C7;
  color: #fff;
}

.tp-v2 button.tp-btn-info,
.tp-v2-legacy-content button.tp-btn-info {
  color: #fff;
}

.tp-btn-chip {
  min-height: 36px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  background: rgba(13, 148, 136, 0.1);
  color: var(--tp-primary-dark);
  border: 1px solid var(--tp-border);
}

/* Badges */
.tp-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tp-badge-success { background: #DCFCE7; color: var(--tp-success); }
.tp-badge-warning { background: #FEF3C7; color: #B45309; }
.tp-badge-danger { background: #FEE2E2; color: var(--tp-danger); }
.tp-badge-info { background: #CCFBF1; color: var(--tp-primary-dark); }

/* Form */
.tp-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tp-text-muted);
  margin-bottom: 0.375rem;
}

.tp-form-control {
  width: 100%;
  min-height: var(--tp-touch-min);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--tp-text);
  background: #fff;
}

.tp-form-control:focus {
  outline: none;
  border-color: var(--tp-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Page header */
.tp-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.tp-page-header-main {
  flex: 1 1 auto;
  min-width: 0;
}

.tp-page-breadcrumb {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tp-text-muted);
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.tp-page-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0;
  color: var(--tp-text);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tp-page-subtitle {
  font-size: 0.8125rem;
  color: var(--tp-text-muted);
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

.tp-page-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.tp-page-back {
  white-space: nowrap;
}

/* Appointment job card */
.tp-job-card {
  background: var(--tp-card);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.tp-job-card:hover,
.tp-job-card.active {
  border-color: var(--tp-primary);
  box-shadow: var(--tp-shadow-lg);
}

.tp-job-card.active {
  border-left: 4px solid var(--tp-primary);
}

.tp-job-id {
  font-weight: 700;
  color: var(--tp-primary-dark);
}

.tp-job-meta {
  font-size: 0.875rem;
  color: var(--tp-text-muted);
  margin-top: 0.25rem;
}

.tp-action-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Tabs */
.tp-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--tp-border);
  overflow-x: auto;
}

.tp-tab {
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--tp-text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tp-tab.active {
  color: var(--tp-primary);
  border-bottom-color: var(--tp-primary);
}

/* Widget panel */
.tp-widget-panel .tp-card {
  margin-bottom: 1rem;
}

.tp-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--tp-border);
}

.tp-stat-item:last-child {
  border-bottom: none;
}

/* Loading */
.tp-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.tp-loader.is-hidden {
  display: none;
}

/* Login */
.tp-login-split {
  min-height: 100vh;
  display: flex;
}

.tp-login-brand {
  display: none;
  background: linear-gradient(135deg, var(--tp-primary-dark), var(--tp-primary));
  color: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.tp-login-brand img {
  max-width: 120px;
  margin-bottom: 1.5rem;
}

.tp-login-brand h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.tp-login-brand p {
  opacity: 0.9;
  margin: 0;
}

.tp-login-form-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--tp-surface);
}

.tp-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--tp-card);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow-lg);
  padding: 2rem;
}

.tp-login-mobile-header {
  background: var(--tp-primary-dark);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

.tp-login-mobile-header img {
  max-width: 80px;
  margin-bottom: 0.75rem;
}

/* Accordion override for V2 */
.tp-v2 .accordion-button:not(.collapsed) {
  background: rgba(13, 148, 136, 0.08);
  color: var(--tp-primary-dark);
}

.tp-v2 .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* DevExtreme V2 overrides */
.tp-v2 .dx-datagrid {
  border-radius: var(--tp-radius);
  overflow: hidden;
}

.tp-v2 #DeviceDetail .dx-datagrid,
.tp-v2-legacy-content #DeviceDetail .dx-datagrid,
.tp-v2 #KitDetail .dx-datagrid,
.tp-v2-legacy-content #KitDetail .dx-datagrid {
  overflow: visible;
}

/* Legacy / form panels inside V2 shell */
.tp-v2 .form-panel,
.tp-v2-legacy-content .form-panel {
  background: var(--tp-card);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  padding: 0.75rem;
  margin: 0 0 0.75rem;
  box-shadow: var(--tp-shadow);
  overflow: hidden;
  isolation: isolate;
}

/* Override legacy style.css panel shadow/margin when loaded on V2 pages */
body.tp-v2 .form-panel,
body.tp-v2 .tp-v2-legacy-content .form-panel,
body.tp-v2 .content-panel {
  background: var(--tp-card) !important;
  box-shadow: var(--tp-shadow) !important;
  margin: 0 0 0.75rem !important;
  overflow: hidden;
  isolation: isolate;
}

body.tp-v2 .form-panel.no-margin,
body.tp-v2 .tp-v2-legacy-content .form-panel.no-margin {
  margin: 0 0 0.75rem !important;
}

body.tp-v2 .tab-content > .tab-pane > .form-panel.no-margin:last-child,
body.tp-v2 .tp-v2-legacy-content .tab-content > .tab-pane > .form-panel.no-margin:last-child {
  margin-bottom: 0 !important;
}

body.tp-v2 .form-panel.no-margin + .form-panel.no-margin {
  margin-top: 0 !important;
}

/* Section headings fallback when :has() is unavailable */
.tp-v2 .form-panel > h4.mb:first-child,
.tp-v2-legacy-content .form-panel > h4.mb:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: -0.75rem -0.75rem 0.75rem;
  padding: 0.55rem 0.75rem;
  background: var(--tp-section-heading-bg) !important;
  border-bottom: 1px solid var(--tp-border);
  border-radius: calc(var(--tp-radius) - 1px) calc(var(--tp-radius) - 1px) 0 0;
  color: var(--tp-primary-dark);
}

/* Modern section headings (GENERAL INFO, CONTACT, etc.) */
.tp-v2 .form-panel h4.mb:has(.fa-angle-right),
.tp-v2-legacy-content .form-panel h4.mb:has(.fa-angle-right) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: -0.75rem -0.75rem 0.75rem;
  padding: 0.55rem 0.75rem;
  background: var(--tp-section-heading-bg);
  border-bottom: 1px solid var(--tp-border);
  border-radius: calc(var(--tp-radius) - 1px) calc(var(--tp-radius) - 1px) 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-primary-dark);
  line-height: 1.35;
}

.tp-v2 .form-panel h4.mb:has(.fa-angle-right) .fa-angle-right,
.tp-v2-legacy-content .form-panel h4.mb:has(.fa-angle-right) .fa-angle-right {
  display: none;
}

.tp-v2 .form-panel h4.mb:has(.fa-angle-right)::before,
.tp-v2-legacy-content .form-panel h4.mb:has(.fa-angle-right)::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.15em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tp-primary-light), var(--tp-primary-dark));
  flex-shrink: 0;
}

.tp-v2 .form-panel h4.mb:has(.fa-angle-right)[data-toggle="collapse"],
.tp-v2-legacy-content .form-panel h4.mb:has(.fa-angle-right)[data-toggle="collapse"] {
  cursor: pointer;
  user-select: none;
}

/* Panel subtitle directly under a section heading (e.g. appointment subject) */
.tp-v2 .form-panel > h4.mb:has(.fa-angle-right) + h4.mb:not(:has(.fa-angle-right)),
.tp-v2-legacy-content .form-panel > h4.mb:has(.fa-angle-right) + h4.mb:not(:has(.fa-angle-right)) {
  margin: -0.35rem 0 0.75rem;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid var(--tp-border);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--tp-text);
  line-height: 1.4;
  background: transparent;
}

/* Charges tab - List Charges header + action buttons */
.tp-v2 .tp-charges-panel.form-panel,
.tp-v2-legacy-content .tp-charges-panel.form-panel {
  padding-top: 0.75rem;
  overflow: visible;
}

.tp-v2 .form-panel h4.mb.tp-charges-toolbar-title:has(.fa-angle-right),
.tp-v2-legacy-content .form-panel h4.mb.tp-charges-toolbar-title:has(.fa-angle-right) {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-bottom: none !important;
  border-radius: 0 !important;
}

.tp-v2 .tp-charges-toolbar,
.tp-v2-legacy-content .tp-charges-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: -0.75rem -0.75rem 0.75rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(135deg, var(--tp-primary-muted-strong) 0%, var(--tp-primary-muted-light) 100%);
  border-bottom: 1px solid var(--tp-border);
}

.tp-v2 .tp-charges-toolbar-title,
.tp-v2-legacy-content .tp-charges-toolbar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-primary-dark);
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
}

.tp-v2 .tp-charges-toolbar-title .fa-angle-right,
.tp-v2-legacy-content .tp-charges-toolbar-title .fa-angle-right {
  display: none;
}

.tp-v2 .tp-charges-toolbar-title::before,
.tp-v2-legacy-content .tp-charges-toolbar-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.15em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tp-primary-light), var(--tp-primary-dark));
  flex-shrink: 0;
}

.tp-v2 .tp-charges-toolbar-actions,
.tp-v2-legacy-content .tp-charges-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.tp-v2 .tp-charges-toolbar-actions .tp-btn,
.tp-v2-legacy-content .tp-charges-toolbar-actions .tp-btn {
  min-height: 31px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
}

.tp-v2 .tp-charges-panel #matrialList,
.tp-v2-legacy-content .tp-charges-panel #matrialList {
  margin-top: 0;
}

@media (max-width: 767.98px) {
  .tp-v2 .tp-charges-toolbar,
  .tp-v2-legacy-content .tp-charges-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tp-v2 .tp-charges-toolbar-actions,
  .tp-v2-legacy-content .tp-charges-toolbar-actions {
    justify-content: flex-start;
  }

  body.tp-v2 .tp-charges-panel.form-panel,
  body.tp-v2 .tp-v2-legacy-content .tp-charges-panel.form-panel {
    overflow: visible;
  }
}

.tp-v2-legacy-content .labelBlue {
  color: var(--tp-primary-dark);
  font-weight: 600;
}

/* Desktop - tighter, clearer label vs value hierarchy */
@media (min-width: 768px) {
  .tp-v2 .labelBlue,
  .tp-v2-legacy-content .labelBlue,
  .tp-v2 .form-horizontal .control-label.labelBlue,
  .tp-v2-legacy-content .form-horizontal .control-label.labelBlue {
    font-size: var(--tp-font-size-sm);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    padding-top: 0.35rem;
  }

  .tp-v2 .form-horizontal .control-label:not(.labelBlue),
  .tp-v2-legacy-content .form-horizontal .control-label:not(.labelBlue) {
    font-size: var(--tp-font-size-base);
    font-weight: 400;
    line-height: 1.45;
    color: var(--tp-text);
    padding-top: 0.35rem;
  }

  .tp-v2 .form-control,
  .tp-v2-legacy-content .form-control,
  .tp-v2 select.form-control,
  .tp-v2-legacy-content select.form-control,
  .tp-v2 textarea.form-control,
  .tp-v2-legacy-content textarea.form-control {
    font-size: var(--tp-font-size-base);
    line-height: 1.45;
    padding: 0.45rem 0.7rem;
  }

  .tp-v2 .form-horizontal.style-form .form-group,
  .tp-v2-legacy-content .form-horizontal.style-form .form-group {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
}

.is-hidden {
  display: none !important;
}

/* Page header action buttons */
.tp-page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tp-page-toolbar-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* New / edit form action bars */
.tp-form-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--tp-card);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
}

.tp-form-toolbar-inline {
  width: auto;
  margin-left: auto;
  margin-bottom: 0.75rem;
}

/* V2: sticky Save/Back toolbars — overflow on ancestors disables sticky */
.tp-v2 .tp-main:has(#sticky.tp-form-toolbar, #sticky.tp-appointment-toolbar),
.tp-v2 .tp-v2-legacy-content:has(#sticky.tp-form-toolbar, #sticky.tp-appointment-toolbar),
.tp-v2 .tp-page-form:has(#sticky) {
  overflow: visible;
}

.tp-v2 form.style-form:has(#sticky),
.tp-v2 .row.mt:has(#sticky),
.tp-v2 .row.mt:has(#sticky) > [class*="col-"] {
  overflow: visible;
}

.tp-v2 #sticky.tp-form-toolbar,
.tp-v2 #sticky.tp-appointment-toolbar {
  position: -webkit-sticky;
  position: sticky;
  top: var(--tp-topbar-h, 3.5rem);
  z-index: 1025;
  margin-bottom: 0.75rem !important;
  box-sizing: border-box;
}

.tp-v2 .row.mt:has(#sticky) > [class*="col-"] {
  float: none;
  width: 100%;
}

.tp-v2 .row.mt.tp-toolbar-is-stuck #sticky.tp-form-toolbar:not(.tp-toolbar-js-fixed),
.tp-v2 .row.mt.tp-toolbar-is-stuck #sticky.tp-appointment-toolbar:not(.tp-toolbar-js-fixed),
.tp-v2 #sticky.tp-form-toolbar.tp-toolbar-is-stuck:not(.tp-toolbar-js-fixed),
.tp-v2 #sticky.tp-appointment-toolbar.tp-toolbar-is-stuck:not(.tp-toolbar-js-fixed) {
  border-radius: 0;
  border-left: none;
  border-right: none;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
}

.tp-toolbar-pin-sentinel {
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* JS fallback when native sticky is blocked */
.tp-v2 #sticky.tp-form-toolbar.tp-toolbar-js-fixed,
.tp-v2 #sticky.tp-appointment-toolbar.tp-toolbar-js-fixed {
  position: fixed !important;
  top: var(--tp-toolbar-top, var(--tp-topbar-h, 3.5rem)) !important;
  left: var(--tp-toolbar-left, 0) !important;
  width: var(--tp-toolbar-width, 100%) !important;
  right: auto !important;
  z-index: 1026;
  margin: 0 !important;
  box-sizing: border-box;
  border-radius: 0;
  border-left: none;
  border-right: none;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
}

.tp-v2 .row.mt.tp-toolbar-host-pinned {
  min-height: var(--tp-toolbar-h, 3.25rem);
}

@media (max-width: 767.98px) {
  /* Top toolbars scroll with content on mobile — only bottom save bar stays pinned */
  .tp-v2 #sticky.tp-form-toolbar,
  .tp-v2 #sticky.tp-appointment-toolbar,
  .tp-v2 #sticky.add-task-row {
    position: relative;
    top: auto;
    z-index: auto;
  }

  .tp-v2 #sticky.tp-form-toolbar.tp-toolbar-js-fixed,
  .tp-v2 #sticky.tp-appointment-toolbar.tp-toolbar-js-fixed {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    margin-bottom: 0.75rem !important;
    box-shadow: var(--tp-shadow);
    border-radius: var(--tp-radius);
    border-left: 1px solid var(--tp-border);
    border-right: 1px solid var(--tp-border);
  }

  .tp-v2 .row.mt.tp-toolbar-is-stuck #sticky.tp-form-toolbar:not(.tp-toolbar-js-fixed),
  .tp-v2 .row.mt.tp-toolbar-is-stuck #sticky.tp-appointment-toolbar:not(.tp-toolbar-js-fixed),
  .tp-v2 #sticky.tp-form-toolbar.tp-toolbar-is-stuck:not(.tp-toolbar-js-fixed),
  .tp-v2 #sticky.tp-appointment-toolbar.tp-toolbar-is-stuck:not(.tp-toolbar-js-fixed) {
    border-radius: var(--tp-radius);
    border-left: 1px solid var(--tp-border);
    border-right: 1px solid var(--tp-border);
    box-shadow: var(--tp-shadow);
  }

  .tp-v2 .row.mt.tp-toolbar-host-pinned {
    min-height: 0;
  }
}

/* V2: sticky toolbars on other pages */
.tp-v2 #sticky.add-task-row {
  position: sticky;
  top: calc(var(--tp-topbar-h) + 0.5rem);
  z-index: 1020;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.tp-form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1rem 0 0;
  padding: 0.65rem 1rem;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: var(--tp-card);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  position: sticky;
  bottom: 0;
  z-index: 1015;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

.tp-page-form .tp-form-actions {
  bottom: 0;
}

@media (max-width: 767.98px) {
  .tp-v2 .tp-form-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--tp-bottom-nav-offset, var(--tp-bottom-nav-h, 50px)) + env(safe-area-inset-bottom, 0px));
    margin: 0;
    border-radius: var(--tp-radius) var(--tp-radius) 0 0;
    z-index: 1018;
    transition: bottom 0.22s ease;
  }

  .tp-v2 .tp-v2-legacy-content:has(.tp-form-actions) {
    padding-bottom: calc(3.75rem + var(--tp-bottom-nav-offset, var(--tp-bottom-nav-h, 50px)) + env(safe-area-inset-bottom, 0px));
    transition: padding-bottom 0.22s ease;
  }
}

.tp-form-toolbar .btn,
.tp-form-actions .btn,
.tp-page-toolbar-buttons .btn,
.tp-appointment-toolbar-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
}

.tp-appointment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--tp-card);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
}

.tp-appointment-toolbar:has(> div:first-child:empty) {
  justify-content: flex-end;
}

.tp-appointment-toolbar .tp-action-bar,
.tp-appointment-toolbar .topquickmenu,
.tp-appointment-toolbar .tp-appointment-action-chips {
  flex: 1 1 auto;
  padding: 0 !important;
  margin: 0 !important;
}

.tp-appointment-toolbar-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.tp-appointment-toolbar .tp-appointment-action-chips {
  flex: 1 1 auto;
  margin-top: 0;
  align-items: center;
}

.tp-appointment-toolbar .tp-appointment-action-chips .tp-btn-chip {
  background: transparent;
  color: var(--tp-primary-dark);
  border: 1px solid var(--tp-primary);
  min-height: 32px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.tp-appointment-toolbar .tp-appointment-action-chips .tp-btn-chip:hover {
  background: rgba(13, 148, 136, 0.08);
  color: var(--tp-primary-dark);
}

.tp-appointment-toolbar .tp-report-dropdown {
  position: relative;
}

.tp-action-chip-group {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tp-action-chip-icon {
  font-size: 0.95rem;
  color: var(--tp-text-muted);
}

.tp-btn-chip--next {
  border-color: #D97706;
  color: #B45309;
}

.tp-btn-chip--next:hover {
  background: rgba(217, 119, 6, 0.08);
}

.tp-btn-chip--subs {
  border-color: var(--tp-danger);
  color: var(--tp-danger);
}

.tp-btn-chip--subs:hover {
  background: rgba(220, 38, 38, 0.08);
}

.tp-btn-chip--quote {
  border-color: #2563EB;
  color: #1D4ED8;
}

.tp-btn-chip--quote:hover {
  background: rgba(37, 99, 235, 0.08);
}

.tp-report-dropdown .dropdown-toggle::after {
  display: none;
}

.tp-btn-chip--report {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tp-btn-chip--report .tp-report-chevron {
  font-size: 0.7rem;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tp-report-dropdown .dropdown-toggle.show .tp-report-chevron,
.tp-report-dropdown .dropdown-toggle[aria-expanded="true"] .tp-report-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.tp-report-menu {
  --bs-dropdown-min-width: 15rem;
  min-width: 15rem;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.4rem;
  margin-top: 0.35rem !important;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  z-index: 1065 !important;
}

.tp-report-menu.show {
  display: block;
}

.tp-v2 #sticky.tp-appointment-toolbar:has(.tp-report-menu.show),
.tp-v2 .tp-appointment-toolbar:has(.tp-report-dropdown .dropdown-menu.show) {
  z-index: 1055;
  overflow: visible;
}

.tp-v2-legacy-content .row.mt:has(.tp-appointment-toolbar .tp-report-menu.show),
.tp-v2-legacy-content .col-lg-12:has(.tp-appointment-toolbar .tp-report-menu.show) {
  overflow: visible;
  position: relative;
  z-index: 1055;
}

.tp-report-menu .dropdown-header {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tp-text-muted);
  padding: 0.45rem 0.65rem 0.25rem;
}

.tp-report-menu .dropdown-divider {
  margin: 0.25rem 0.35rem;
  border-color: var(--tp-border);
}

.tp-report-menu .tp-report-item {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.65rem !important;
  border-radius: 8px;
  color: var(--tp-text) !important;
  white-space: normal;
  line-height: 1.35;
}

.tp-report-menu .tp-report-item:hover,
.tp-report-menu .tp-report-item:focus {
  background: rgba(13, 148, 136, 0.08) !important;
  color: var(--tp-primary-dark) !important;
}

.tp-report-item-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--tp-primary-dark);
  font-size: 0.9rem;
}

.tp-report-item-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 500;
}

.tp-report-item-arrow {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--tp-text-muted);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.tp-report-menu .tp-report-item:hover .tp-report-item-arrow,
.tp-report-menu .tp-report-item:focus .tp-report-item-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
  color: var(--tp-primary);
}

.tp-appointment-toolbar-actions .tp-btn {
  min-height: 38px;
}

.tp-v2-legacy-content .add-task-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  float: none !important;
  width: 100%;
  margin: 0 0 1rem !important;
  padding: 0;
}

.tp-v2-legacy-content .add-task-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
}

.tp-v2-legacy-content .newcustomer,
.tp-v2-legacy-content .add-task-row.pull-right {
  float: none !important;
  margin: 0 !important;
}

/* Top bar notifications */
.tp-notify {
  position: relative;
}

.tp-notify-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  background: var(--tp-surface);
  color: var(--tp-text-muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tp-notify-toggle:hover,
.tp-notify-toggle:focus,
.tp-notify-toggle.show {
  background: var(--tp-card);
  border-color: var(--tp-primary-light);
  color: var(--tp-primary-dark);
  outline: none;
}

.tp-notify-toggle .bi {
  font-size: 1.125rem;
  line-height: 1;
}

.tp-notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tp-danger);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.tp-notify-menu {
  width: min(360px, calc(100vw - 2rem));
  max-height: min(70vh, 480px);
  overflow-y: auto;
  padding: 0.35rem 0;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  box-shadow: var(--tp-shadow-lg);
}

.tp-notify-menu-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tp-text);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.tp-notify-item {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem !important;
  white-space: normal;
}

.tp-notify-item:hover,
.tp-notify-item:focus {
  background: var(--tp-surface) !important;
  color: var(--tp-text) !important;
}

.tp-notify-item-photo {
  flex: 0 0 40px;
}

.tp-notify-item-photo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.tp-notify-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.tp-notify-item-from {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tp-text);
}

.tp-notify-item-message {
  font-size: 0.75rem;
  color: var(--tp-text-muted);
  line-height: 1.4;
}

.tp-notify-item-time {
  font-size: 0.6875rem;
  color: var(--tp-text-muted);
}

.tp-notify-item-time .bi {
  margin-right: 0.2rem;
}

.tp-notify-empty {
  font-size: 0.8125rem;
  color: var(--tp-text-muted);
  padding: 0.75rem 1rem;
}

.tp-notify-view-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tp-primary) !important;
}

.tp-topbar-actions .notify-row,
.tp-topbar-actions .top-menu,
.tp-topbar-actions #top_menu {
  float: none;
  margin: 0;
}

@media (max-width: 767px) {
  .tp-appointment-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tp-appointment-toolbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .tp-appointment-toolbar-actions .btn,
  .tp-appointment-toolbar-actions .tp-btn {
    flex: 1 1 auto;
  }

  .tp-appointment-toolbar .tp-appointment-action-chips {
    width: 100%;
  }

  .tp-v2 #sticky.add-task-row {
    position: relative;
    top: auto;
  }

  .tp-notify-menu {
    position: fixed !important;
    top: calc(var(--tp-topbar-h) + 0.5rem) !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
    width: auto !important;
    max-width: none;
  }
}

/* ── View Appointment mobile: reclaim working space ─────────────────────
   Hide duplicate page chrome / chip rows / bottom Save-Back.
   Keep one compact sticky bar (title + ⋮ + Save) and a single-row tab strip. */
@media (max-width: 767.98px) {
  body[data-form-factor="mobile"] .tp-v2-legacy-content.tp-page-form > .tp-page-header,
  body[data-form-factor="mobile"] .tp-v2-legacy-content.tp-page-form > .tp-appt-legacy-subtitle {
    display: none !important;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appt-compact-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--tp-text, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appt-overflow-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    flex: 0 0 auto !important;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appt-toolbar-back,
  body[data-form-factor="mobile"] .tp-page-form .tp-appointment-toolbar-actions #btnMainSaveTop {
    display: none !important;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appt-bottom-actions,
  body[data-form-factor="mobile"] .tp-page-form .tp-form-actions.tp-appt-bottom-actions {
    display: flex !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    margin: 0.75rem 0 0 !important;
    padding: 0.65rem 0.75rem !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  body[data-form-factor="mobile"] .tp-v2-legacy-content.tp-page-form {
    padding-bottom: calc(0.75rem + var(--tp-bottom-nav-offset, var(--tp-bottom-nav-h, 56px)) + env(safe-area-inset-bottom, 0px)) !important;
  }

  body[data-form-factor="mobile"] .tp-v2 #sticky.tp-appointment-toolbar,
  body[data-form-factor="mobile"] .tp-page-form #sticky.tp-appointment-toolbar {
    position: relative !important;
    top: auto !important;
    z-index: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 48px;
    max-height: none;
    margin: 0 0 0.35rem !important;
    padding: 0.35rem 0.5rem !important;
    background: var(--tp-card, #fff);
    border: 1px solid var(--tp-border, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appointment-toolbar-actions {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    position: relative;
    justify-content: flex-end;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appointment-toolbar-actions #btnMainSaveTop {
    flex: 0 0 auto !important;
    min-width: auto;
    min-height: 40px;
    height: 40px;
    padding: 0 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appointment-toolbar .tp-appointment-action-chips {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0.35rem;
    left: auto;
    width: auto;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.25rem;
    min-width: 12.5rem;
    max-width: min(18rem, 92vw);
    max-height: min(70vh, 26rem);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem;
    margin: 0;
    background: var(--tp-card, #fff);
    border: 1px solid var(--tp-border, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    z-index: 1030;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appointment-toolbar .tp-appointment-action-chips.is-open {
    display: flex;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appointment-toolbar .tp-appointment-action-chips .tp-btn-chip,
  body[data-form-factor="mobile"] .tp-page-form .tp-appointment-toolbar .tp-appointment-action-chips .tp-appt-menu-back {
    display: inline-flex !important;
    width: 100%;
    justify-content: flex-start;
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appointment-toolbar .tp-appointment-action-chips .tp-action-chip-group {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.25rem;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appointment-toolbar .tp-appointment-action-chips .tp-action-chip-icon {
    display: none;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appointment-toolbar .tp-appointment-action-chips .tp-report-dropdown {
    width: 100%;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appointment-toolbar .tp-appointment-action-chips .tp-report-dropdown .tp-btn-chip--report {
    width: 100%;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appointment-toolbar .tp-appointment-action-chips .tp-report-menu {
    position: static !important;
    transform: none !important;
    float: none;
    width: 100%;
    margin: 0.25rem 0 0;
    box-shadow: none;
    border: 1px solid var(--tp-border, #e2e8f0);
    border-radius: 8px;
    max-height: 12rem;
    overflow-y: auto;
  }

  body[data-form-factor="mobile"] .tp-page-form .tp-appt-menu-back {
    display: inline-flex !important;
    margin-top: 0.15rem;
    border-top: 1px solid var(--tp-border, #e2e8f0);
    border-radius: 0 0 8px 8px !important;
  }

  /* Tabs wrap; scroll with page (Save/Back float separately in tablet-v2.css) */
  body[data-form-factor="mobile"] .tp-v2-legacy-content.tp-page-form ul.nav-tabs {
    position: relative !important;
    top: auto !important;
    z-index: auto;
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: none;
    gap: 0.3rem;
    padding: 0.35rem;
    margin: 0 0 0.45rem;
    border: 1px solid var(--tp-border, #e2e8f0);
    border-radius: 10px;
    background: var(--tp-card, #fff);
    overflow: visible;
  }

  body[data-form-factor="mobile"] .tp-v2-legacy-content.tp-page-form ul.nav-tabs::-webkit-scrollbar {
    display: none;
  }

  body[data-form-factor="mobile"] .tp-v2-legacy-content.tp-page-form .nav-tabs > li {
    flex: 1 1 calc(25% - 0.3rem);
    min-width: 4.5rem;
  }

  body[data-form-factor="mobile"] .tp-v2-legacy-content.tp-page-form .nav-tabs > li > a {
    flex-direction: row;
    gap: 0.3rem;
    padding: 0.4rem 0.35rem;
    min-height: 36px;
    font-size: 0.6875rem;
    white-space: nowrap;
    word-break: normal;
  }

  body[data-form-factor="mobile"] .tp-v2-legacy-content.tp-page-form .nav-tabs > li > a i {
    margin-right: 0;
    font-size: 0.8125rem;
  }

  body[data-form-factor="mobile"] .tp-v2-legacy-content.tp-page-form .row.mt {
    margin-top: 0.35rem !important;
    margin-bottom: 0 !important;
  }

  body[data-form-factor="mobile"] .tp-v2-legacy-content.tp-page-form .form-panel {
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
    padding: 0.65rem 0.75rem;
  }
}

/* Modern form toggle (replaces legacy bootstrap-switch ON/OFF control) */
.tp-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.15rem 0;
  min-height: 1.5rem;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
}

.tp-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.tp-toggle-track {
  position: relative;
  display: block;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.tp-toggle-track::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
  transition: transform 0.18s ease;
}

.tp-toggle input:checked + .tp-toggle-track {
  background: var(--tp-primary, #0d9488);
  border-color: var(--tp-primary, #0d9488);
}

.tp-toggle input:checked + .tp-toggle-track::after {
  transform: translateX(1.25rem);
}

.tp-toggle input:focus-visible + .tp-toggle-track {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.28);
}

.tp-toggle input:disabled + .tp-toggle-track {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-horizontal .form-group > [class*="col-"] > .tp-toggle {
  margin-top: 0.35rem;
}
