html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
}

.ev-login-logo {
  display: flex;
  width: 148px;
  height: 72px;
  align-items: center;
  justify-content: center;
}

.ev-login-logo img {
  display: block;
  width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.ev-admin-brand-logo {
  display: flex;
  width: 88px;
  min-width: 88px;
  height: 30px;
  align-items: center;
  justify-content: flex-start;
}

.ev-admin-brand-logo img {
  display: block;
  width: 88px;
  max-height: 30px;
  object-fit: contain;
}

.ev-auth-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 8px;
  color: var(--bs-primary);
  background: rgba(13, 110, 253, 0.08);
  font-size: 1.45rem;
}

.content__wrap.ev-workspace {
  max-width: 1600px;
}

.ev-page-backbar {
  display: flex;
  align-items: center;
  min-height: 2rem;
  margin: -0.1rem 0 0.45rem;
}

.ev-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.95rem;
  padding: 0.26rem 0.62rem;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 6px;
  color: #475569;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.045);
  font-size: 0.82rem;
  font-weight: 600;
}

.ev-back-button:hover {
  border-color: rgba(13, 110, 253, 0.2);
  color: var(--bs-primary);
  background: #fff;
}

.ev-workspace > h1,
.ev-workspace > .d-flex:first-child h1,
.ev-workspace > .mb-3:first-child h1,
.ev-workspace > .ev-page-backbar + .d-flex h1,
.ev-workspace > .ev-page-backbar + .mb-3 h1 {
  letter-spacing: 0;
  font-weight: 700;
}

.ev-workspace > .d-flex:first-child,
.ev-workspace > .mb-3:first-child,
.ev-workspace > .ev-page-backbar + .d-flex,
.ev-workspace > .ev-page-backbar + .mb-3 {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.ev-workspace > .d-flex:first-child .text-muted,
.ev-workspace > .mb-3:first-child .text-muted,
.ev-workspace > .ev-page-backbar + .d-flex .text-muted,
.ev-workspace > .ev-page-backbar + .mb-3 .text-muted {
  font-size: 0.875rem;
}

.ev-workspace .btn {
  border-radius: 6px;
  font-weight: 500;
}

.ev-workspace .btn-sm {
  --bs-btn-padding-y: 0.28rem;
  --bs-btn-padding-x: 0.55rem;
}

.ev-table-card {
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 8px;
  background: var(--bs-body-bg);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.ev-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(248, 250, 252, 0.86);
}

.ev-table-toolbar__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--bs-emphasis-color);
  font-size: 0.88rem;
  font-weight: 600;
}

.ev-table-toolbar__title .bi {
  color: var(--bs-primary);
}

.ev-table-toolbar__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.ev-table-controls {
  margin-bottom: 0.75rem;
}

.ev-table-controls--attached {
  margin-bottom: 0;
}

.ev-table-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 0.65rem;
}

.ev-table-filter-form__field {
  min-width: 180px;
}

.ev-table-filter-form__field--wide {
  min-width: min(320px, 70vw);
}

.ev-table-filter-form__field--compact {
  width: 142px;
}

.ev-table-filter-form .form-label {
  margin-bottom: 0.24rem;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ev-table-filter-form__meta {
  align-self: center;
  color: var(--bs-secondary-color);
  font-size: 0.82rem;
  white-space: nowrap;
}

.ev-table-filter-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.ev-table-search {
  position: relative;
  min-width: min(320px, 68vw);
}

.ev-table-search .bi {
  position: absolute;
  top: 50%;
  left: 0.7rem;
  z-index: 1;
  color: var(--bs-secondary-color);
  transform: translateY(-50%);
}

.ev-table-search .form-control {
  height: 2.15rem;
  padding-left: 2rem;
  border-radius: 6px;
  font-size: 0.86rem;
}

.ev-table-count {
  min-width: 4.4rem;
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
  text-align: end;
}

.ev-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.52rem;
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 999px;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.055);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.ev-filter-chip--muted {
  border-color: rgba(100, 116, 139, 0.18);
  color: #475569;
  background: #f8fafc;
}

.ev-table-scroll {
  overflow-x: auto;
}

.ev-data-table {
  margin-bottom: 0;
  vertical-align: middle;
}

.ev-data-table thead th {
  white-space: nowrap;
  border-bottom-color: rgba(17, 24, 39, 0.12);
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ev-data-table tbody td {
  color: #1f2937;
  font-size: 0.9rem;
}

.ev-data-table tbody tr {
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.ev-data-table tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.045);
}

.ev-asset-list-card .ev-data-table th,
.ev-asset-list-card .ev-data-table td {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

.ev-list-entity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 240px;
}

.ev-list-entity__icon {
  display: grid;
  --lookup-color: var(--bs-primary);
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 2.1rem;
  place-items: center;
  border-radius: 8px;
  color: var(--lookup-color);
  background: color-mix(in srgb, var(--lookup-color) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--lookup-color) 18%, #dbe3ec);
  overflow: hidden;
}

.ev-list-entity__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-list-entity__name {
  color: #0f172a;
  font-weight: 700;
  line-height: 1.2;
}

.ev-list-entity--compact {
  min-width: 180px;
}

.ev-list-entity__code,
.ev-list-code {
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.ev-list-entity__description {
  max-width: 420px;
  overflow: hidden;
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ev-list-location {
  display: grid;
  min-width: 220px;
  gap: 0.18rem;
}

.ev-list-location small {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #64748b;
  font-size: 0.76rem;
}

.ev-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.ev-unit-list-table tbody tr.ev-row-expanded > td {
  background: rgba(13, 110, 253, 0.035);
}

.ev-unit-detail-row > td {
  padding: 0 !important;
  border-top: 0;
  background: #f8fafc;
}

.ev-unit-inline-detail {
  margin: 0.35rem 0.65rem 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 3px 0 0 rgba(13, 110, 253, 0.42);
}

.ev-unit-inline-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.045), rgba(248, 250, 252, 0.92));
}

.ev-unit-child-table thead th {
  background: #f8fafc;
}

.ev-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  text-transform: inherit;
}

.ev-sort-button .bi {
  color: #94a3b8;
  font-size: 0.8rem;
}

.ev-sort-button.is-sorted-asc .bi,
.ev-sort-button.is-sorted-desc .bi {
  color: var(--bs-primary);
}

.ev-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 5.4rem;
  padding: 0.26rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.ev-status__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
}

.ev-status--yes {
  color: #0f5132;
  background: rgba(25, 135, 84, 0.12);
}

.ev-status--yes .ev-status__dot {
  background: #198754;
}

.ev-status--no {
  color: #842029;
  background: rgba(220, 53, 69, 0.1);
}

.ev-status--no .ev-status__dot {
  background: #dc3545;
}

.ev-crud-modal .modal-content {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.ev-crud-modal .modal-header {
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-bottom-color: rgba(17, 24, 39, 0.08);
  background: rgba(248, 250, 252, 0.92);
}

.ev-crud-modal .modal-title {
  color: #111827;
  font-weight: 700;
  letter-spacing: 0;
}

.ev-crud-modal .modal-dialog.modal-fullscreen {
  width: 100vw;
  max-width: none;
  height: 100%;
  margin: 0;
}

.ev-crud-modal .modal-dialog.modal-fullscreen .modal-content {
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

.ev-crud-modal .modal-dialog.modal-fullscreen .modal-body {
  overflow: auto;
}

.ev-modal-subtitle {
  margin-top: 0.18rem;
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
}

.ev-entity-picker .input-group > .form-control[readonly] {
  background-color: var(--bs-body-bg);
}

.ev-entity-picker--sm .input-group {
  min-width: 220px;
}

.ev-lookup-modal {
  z-index: 1070;
}

.ev-lookup-backdrop {
  z-index: 1060;
}

.ev-lookup-search {
  position: relative;
}

.ev-lookup-search .bi {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  color: var(--bs-secondary-color);
  transform: translateY(-50%);
}

.ev-lookup-search .form-control {
  padding-left: 2.15rem;
}

.ev-lookup-table tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.045);
}

.ev-crud-modal .modal-body {
  padding: 1.15rem;
}

.ev-crud-modal form {
  max-width: 100%;
}

.ev-crud-modal form > .mb-3,
.ev-crud-modal form > .form-check {
  max-width: 760px;
}

.ev-crud-modal .ev-table-card {
  box-shadow: none;
}

.ev-customer-card {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 8px;
  background: var(--bs-body-bg);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.ev-card-tabs {
  gap: 0.15rem;
  padding: 0.85rem 1rem 0;
  background: rgba(248, 250, 252, 0.86);
}

.ev-card-tabs .nav-link {
  border-radius: 6px 6px 0 0;
  color: #475569;
  font-weight: 600;
}

.ev-card-tab-content {
  padding: 1rem;
}

.ev-card-tab-content > .tab-pane.active {
  opacity: 1;
}

.ev-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ev-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.ev-section-head p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
}

.ev-section-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ev-section-toolbar h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
}

.ev-section-toolbar p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.ev-form-grid,
.ev-document-uploader {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ev-form-grid__wide {
  grid-column: 1 / -1;
}

.ev-contact-table {
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.ev-contact-table thead th {
  background: rgba(248, 250, 252, 0.92);
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ev-contact-table td {
  vertical-align: middle;
}

.ev-address-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
}

.ev-coordinate-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ev-map-panel {
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 8px;
  background: #eef2f7;
}

.ev-map {
  width: 100%;
  height: 100%;
  min-height: 440px;
}

.ev-document-uploader {
  padding: 1rem;
  border: 0;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
}

.ev-document-table td {
  vertical-align: middle;
}

.ev-device-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), #fff);
}

.ev-device-avatar {
  display: grid;
  --lookup-color: var(--bs-primary);
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--lookup-color) 22%, #dbe3ec);
  border-radius: 8px;
  color: var(--lookup-color);
  background: color-mix(in srgb, var(--lookup-color) 10%, #fff);
  font-size: 2rem;
}

.ev-device-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-device-summary__body h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 750;
}

.ev-device-summary__label {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ev-device-link-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.ev-dropzone {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px dashed rgba(13, 110, 253, 0.42);
  border-radius: 8px;
  background: rgba(13, 110, 253, 0.035);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ev-dropzone.is-dragover {
  border-color: var(--bs-primary);
  background: rgba(13, 110, 253, 0.08);
}

.ev-dropzone__icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  place-items: center;
  border-radius: 8px;
  color: var(--bs-primary);
  background: #fff;
  font-size: 1.25rem;
}

.ev-dropzone strong,
.ev-dropzone span {
  display: block;
}

.ev-dropzone span {
  color: #64748b;
  font-size: 0.86rem;
}

.ev-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.ev-gallery-card {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.ev-gallery-card__preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #eef2f7;
  cursor: zoom-in;
}

.ev-gallery-card__preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2f7;
}

.ev-gallery-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.42);
  font-size: 1.35rem;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.ev-gallery-card__preview:hover .ev-gallery-card__overlay,
.ev-gallery-card__preview:focus-visible .ev-gallery-card__overlay {
  opacity: 1;
}

.ev-gallery-card__body {
  padding: 0.75rem;
}

.ev-gallery-card__body strong,
.ev-gallery-card__body span {
  display: block;
}

.ev-gallery-card__body span {
  color: #64748b;
  font-size: 0.8rem;
}

.ev-gallery-modal .modal-content {
  overflow: hidden;
}

.ev-gallery-viewer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1rem;
  align-items: stretch;
  background: #0f172a;
}

.ev-gallery-viewer__stage {
  display: grid;
  min-height: 520px;
  place-items: center;
  border-radius: 8px;
  background: #020617;
}

.ev-gallery-viewer__stage img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.ev-gallery-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  transform: translateY(-50%);
}

.ev-gallery-viewer__nav:disabled {
  opacity: 0.35;
}

.ev-gallery-viewer__nav--prev {
  left: 1.35rem;
}

.ev-gallery-viewer__nav--next {
  right: 18.3rem;
}

.ev-gallery-viewer__meta {
  padding: 1rem;
  border-radius: 8px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.9);
}

.ev-gallery-viewer__meta dl {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.ev-gallery-viewer__meta dt {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ev-gallery-viewer__meta dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
}

.ev-gallery-viewer__counter {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .ev-gallery-viewer {
    grid-template-columns: 1fr;
  }

  .ev-gallery-viewer__stage {
    min-height: 340px;
  }

  .ev-gallery-viewer__nav--next {
    right: 1.35rem;
  }
}

.ev-timeline {
  display: grid;
  gap: 0.75rem;
}

.ev-timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
}

.ev-timeline-item__date {
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
}

.ev-timeline-item__body p {
  margin: 0.35rem 0;
  color: #475569;
}

.ev-audit-strip {
  padding: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
}

.ev-audit-strip h3 {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.ev-audit-row {
  display: grid;
  grid-template-columns: 150px 1fr 90px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  color: #475569;
  font-size: 0.86rem;
}

.ev-rich-editor {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #fff;
}

.ev-rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(248, 250, 252, 0.9);
}

.ev-rich-editor__surface {
  min-height: 220px;
  padding: 0.9rem 1rem;
  outline: none;
}

.ev-rich-editor__surface:empty::before {
  content: "Note interne...";
  color: #94a3b8;
}

.ev-document-modal .modal-content,
.ev-confirm-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.24);
}

.ev-empty-state {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
}

.ev-empty-state__icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 8px;
  color: var(--bs-primary);
  background: rgba(13, 110, 253, 0.08);
  font-size: 1.3rem;
}

.ev-unit-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ev-unit-kpi {
  display: flex;
  min-height: 74px;
  flex-direction: column;
  justify-content: center;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.ev-unit-kpi__label {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ev-unit-kpi strong {
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.2;
}

.ev-unit-filter-panel {
  align-items: end;
  justify-content: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.ev-asset-filter-panel {
  margin-bottom: 0.85rem;
}

.ev-unit-filter-panel__title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.15rem;
  margin-right: auto;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
}

.ev-unit-filter-panel__title small {
  display: block;
  margin-left: 0.2rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.ev-unit-filter-panel__title .bi {
  color: var(--bs-primary);
}

.ev-unit-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ev-unit-card {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.ev-unit-card--expanded {
  grid-column: 1 / -1;
  border-color: rgba(13, 110, 253, 0.22);
  box-shadow: 0 12px 34px rgba(13, 110, 253, 0.09);
}

.ev-unit-card__head,
.ev-unit-card__body,
.ev-unit-card__actions,
.ev-unit-card__children {
  padding: 1rem;
}

.ev-unit-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.96));
}

.ev-unit-card__title {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.ev-unit-card__icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.08);
  font-size: 1.1rem;
}

.ev-unit-card__title h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.25;
}

.ev-unit-code {
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.ev-unit-card__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ev-unit-card--expanded .ev-unit-card__body {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
}

.ev-unit-card__summary p {
  margin: 0.8rem 0 0;
  color: #475569;
  font-size: 0.9rem;
}

.ev-unit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ev-unit-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.5rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 6px;
  color: #475569;
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
}

.ev-unit-location {
  padding: 0.85rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.7);
}

.ev-unit-location__label {
  margin-bottom: 0.24rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ev-unit-location__value {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
}

.ev-unit-location__coords {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.78rem;
}

.ev-unit-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.45rem;
  border-top: 1px solid rgba(17, 24, 39, 0.07);
}

.ev-unit-card__children {
  border-top: 1px solid rgba(17, 24, 39, 0.07);
  background: rgba(248, 250, 252, 0.58);
}

.ev-operation-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ev-operation-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.ev-operation-card__head,
.ev-operation-card__body,
.ev-operation-card__actions {
  padding: 1rem;
}

.ev-operation-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.96));
}

.ev-operation-card__title {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  min-width: 0;
}

.ev-operation-card__icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.08);
}

.ev-operation-card__title h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.ev-operation-code {
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ev-operation-card__body {
  flex: 1 1 auto;
}

.ev-operation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ev-operation-meta span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 0.35rem;
  padding: 0.32rem 0.5rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 6px;
  color: #475569;
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.78rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ev-operation-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.45rem;
  border-top: 1px solid rgba(17, 24, 39, 0.07);
}

.ev-linked-resources {
  display: grid;
  gap: 1rem;
}

.ev-linked-kpi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ev-linked-stack {
  display: grid;
  gap: 1rem;
}

.ev-linked-card,
.ev-linked-direct {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.ev-linked-card__head,
.ev-linked-card__body,
.ev-linked-card__actions,
.ev-linked-direct {
  padding: 1rem;
}

.ev-linked-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.96));
}

.ev-linked-card__title {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.72rem;
}

.ev-linked-card__title h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.ev-linked-card__body {
  display: grid;
  gap: 0.85rem;
}

.ev-linked-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.45rem;
  border-top: 1px solid rgba(17, 24, 39, 0.07);
}

.ev-linked-device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.ev-linked-device {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.78);
}

.ev-linked-device__name {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ev-linked-empty,
.ev-linked-inline-empty {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px dashed rgba(100, 116, 139, 0.28);
  border-radius: 8px;
  color: #475569;
  background: rgba(248, 250, 252, 0.7);
}

.ev-api-console {
  display: grid;
  gap: 1rem;
}

.ev-api-console__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.ev-api-card,
.ev-api-toolbar,
.ev-api-variable-panel,
.ev-code-panel {
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.ev-api-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem;
}

.ev-api-card__label {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ev-copy-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}

.ev-copy-line code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ev-copy-line--secret {
  padding: 0.75rem;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 8px;
  background: rgba(13, 110, 253, 0.05);
}

.ev-api-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.ev-api-toolbar code {
  overflow-wrap: anywhere;
}

.ev-api-variable-panel {
  overflow: hidden;
  padding: 1rem;
}

.ev-api-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ev-code-panel {
  display: grid;
  overflow: hidden;
}

.ev-code-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(248, 250, 252, 0.88);
}

.ev-code-panel pre {
  max-height: 26rem;
  margin: 0;
  padding: 0.95rem;
  overflow: auto;
  color: #dbeafe;
  background: #0f172a;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre;
}

.ev-code-panel code {
  color: inherit;
  white-space: pre;
}

.ev-linked-empty__icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.08);
  font-size: 1.15rem;
}

.ev-linked-inline-empty {
  font-size: 0.86rem;
}

.ev-linked-direct {
  display: grid;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
}

.ev-linked-direct__title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
}

.ev-lookup-admin {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.ev-lookup-list-panel,
.ev-lookup-values-panel,
.ev-lookup-context-card,
.ev-lookup-edit-form {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.ev-lookup-list-panel {
  overflow: hidden;
}

.ev-lookup-list-panel__head,
.ev-lookup-values-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
}

.ev-lookup-list-stack {
  display: grid;
  max-height: 68vh;
  overflow: auto;
}

.ev-lookup-list-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  color: inherit;
  text-decoration: none;
}

.ev-lookup-list-card:hover,
.ev-lookup-list-card.is-active {
  color: inherit;
  background: rgba(13, 110, 253, 0.055);
}

.ev-lookup-list-card.is-active {
  box-shadow: inset 3px 0 0 var(--bs-primary);
}

.ev-lookup-list-card > .ev-status {
  align-self: start;
  justify-self: end;
  min-width: auto;
  margin-top: 0.1rem;
  padding: 0.18rem 0.5rem;
  font-size: 0.74rem;
  white-space: nowrap;
}

.ev-lookup-visual {
  --lookup-color: #2f6deb;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lookup-color);
  background: color-mix(in srgb, var(--lookup-color) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--lookup-color) 22%, #dbe3ec);
  overflow: hidden;
}

.ev-lookup-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-telemetry-group-row td {
  background: #f4f7fb !important;
  border-top: 1px solid #dbe4ef;
  border-bottom: 1px solid #dbe4ef;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.ev-telemetry-group-chip,
.ev-soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ev-telemetry-group-chip {
  color: #1f3f68;
  background: #e8f0fb;
  border: 1px solid #cad9ee;
  padding: 0.32rem 0.58rem;
}

.ev-soft-chip {
  color: #3e5269;
  background: #eef3f8;
  border: 1px solid #d8e2ec;
  padding: 0.24rem 0.48rem;
}

.ev-lookup-list-card__icon,
.ev-lookup-context-card__icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 8px;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.08);
}

.ev-lookup-list-card__body {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.ev-lookup-list-card__name {
  color: #0f172a;
  font-weight: 700;
  line-height: 1.2;
}

.ev-lookup-list-card__meta,
.ev-lookup-list-card__description,
.ev-lookup-list-card__stats {
  color: #64748b;
  font-size: 0.78rem;
}

.ev-lookup-list-card__description {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ev-lookup-list-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
  font-weight: 600;
}

.ev-lookup-values-panel {
  overflow: hidden;
  padding-bottom: 1rem;
}

.ev-lookup-values-panel__head h2 {
  margin: 0.15rem 0 0;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
}

.ev-lookup-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ev-lookup-context span {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 999px;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.055);
  font-size: 0.74rem;
  font-weight: 700;
}

.ev-lookup-filter-panel {
  margin: 1rem;
}

.ev-lookup-values-panel > .table-responsive,
.ev-lookup-values-panel > .ev-empty-state,
.ev-lookup-values-panel > nav {
  margin-right: 1rem;
  margin-left: 1rem;
}

.ev-lookup-edit-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.ev-lookup-context-card {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
}

.ev-lookup-edit-form {
  padding: 1rem;
}

.ev-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 180px;
  color: var(--bs-secondary-color);
  font-weight: 500;
}

.ev-confirm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.ev-confirm__icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 8px;
  color: #842029;
  background: rgba(220, 53, 69, 0.1);
  font-size: 1.3rem;
}

.ev-form-busy {
  opacity: 0.72;
  pointer-events: none;
}

.ev-user-create-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.ev-user-create-block {
  padding: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.ev-user-create-block--identity {
  min-height: 100%;
}

.ev-password-control .btn {
  white-space: nowrap;
}

.ev-password-meter .progress {
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.ev-mail-panel {
  padding: 0.85rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 8px;
  background: rgba(13, 110, 253, 0.045);
}

.ev-page-loading #content {
  cursor: progress;
}

.ev-toast-container {
  z-index: 2000;
}

@media (max-width: 1199.98px) {
  .ev-unit-card-grid,
  .ev-operation-card-grid,
  .ev-linked-device-grid,
  .ev-api-console__summary,
  .ev-api-examples,
  .ev-device-link-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ev-unit-card--expanded .ev-unit-card__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .ev-workspace > .d-flex:first-child,
  .ev-workspace > .mb-3:first-child,
  .ev-workspace > .ev-page-backbar + .d-flex,
  .ev-workspace > .ev-page-backbar + .mb-3 {
    align-items: stretch !important;
  }

  .ev-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ev-table-toolbar__tools {
    justify-content: stretch;
  }

  .ev-table-filter-form,
  .ev-table-filter-form__actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .ev-table-filter-form__field,
  .ev-table-filter-form__field--wide,
  .ev-table-filter-form__field--compact {
    width: 100%;
    min-width: 100%;
  }

  .ev-table-filter-form__meta {
    align-self: start;
  }

  .ev-lookup-admin,
  .ev-lookup-edit-layout {
    grid-template-columns: 1fr;
  }

  .ev-lookup-list-stack {
    max-height: none;
  }

  .ev-unit-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ev-unit-card-grid,
  .ev-operation-card-grid,
  .ev-linked-device-grid,
  .ev-api-console__summary,
  .ev-api-examples {
    grid-template-columns: 1fr;
  }

  .ev-unit-filter-panel__title {
    width: 100%;
  }

  .ev-table-search {
    min-width: 100%;
  }

  .ev-table-count {
    text-align: start;
  }

  .ev-form-grid,
  .ev-document-uploader,
  .ev-address-layout,
  .ev-coordinate-row,
  .ev-device-link-panels,
  .ev-user-create-panel {
    grid-template-columns: 1fr;
  }

  .ev-section-head,
  .ev-section-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ev-unit-card__head,
  .ev-unit-card__body,
  .ev-unit-card__actions,
  .ev-operation-card__head,
  .ev-operation-card__actions,
  .ev-linked-card__head,
  .ev-linked-card__actions,
  .ev-api-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .ev-unit-card__head,
  .ev-unit-card__actions,
  .ev-operation-card__head,
  .ev-operation-card__actions,
  .ev-linked-card__head,
  .ev-linked-card__actions,
  .ev-api-toolbar {
    flex-direction: column;
  }

  .ev-map-panel,
  .ev-map {
    min-height: 320px;
  }

  .ev-device-summary,
  .ev-dropzone,
  .ev-timeline-item {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .ev-audit-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .ev-unit-kpi-strip {
    grid-template-columns: 1fr;
  }
}

.menu-drag-cell {
  width: 42px;
}

.menu-drag-handle {
  cursor: grab;
  color: var(--bs-secondary-color);
}

.menu-row.menu-dragging {
  opacity: 0.5;
}

.menu-drop-placeholder td {
  padding: 0;
  border: 2px dashed rgba(13, 110, 253, 0.35);
  background-color: rgba(13, 110, 253, 0.06);
}

.menu-drop-placeholder .menu-drop-placeholder-inner {
  height: 34px;
}

.menu-drop-parent .menu-name-wrap {
  background-color: rgba(25, 135, 84, 0.08);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.ev-token-button {
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.35;
  padding: 0.35rem 0.55rem;
}

.ev-token-button:hover,
.ev-token-button:focus {
  background-color: rgba(13, 110, 253, 0.1) !important;
  border-color: rgba(13, 110, 253, 0.35) !important;
  color: var(--bs-primary) !important;
}
/* Chart template studio */
.ev-sticky-preview {
    position: sticky;
    top: 1rem;
}

.ev-template-preview-shell {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 380px;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        #f6f9fc;
    background-size: 24px 24px;
}

.ev-template-preview-widget {
    width: 100%;
    min-height: 340px;
    padding: 1rem;
    color: #102033;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
    overflow: hidden;
    transition:
        width 180ms ease,
        min-height 180ms ease,
        padding 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.ev-template-preview-widget[data-preview-density="dense"] {
    padding: 0.75rem;
}

.ev-template-preview-widget[data-preview-variant="minimal"] {
    box-shadow: none;
}

.ev-template-preview-widget[data-preview-variant="spotlight"] {
    border-width: 1px;
}

.ev-template-preview-widget[data-preview-variant="pulse"] {
    border-width: 2px;
}

.ev-template-preview-title {
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

.ev-template-preview-subtitle {
    margin-top: 0.15rem;
    color: rgba(16, 32, 51, 0.68);
    font-size: 0.82rem;
}

.ev-template-preview-metric {
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.72);
}

.ev-template-preview-widget[data-preview-density="dense"] .ev-template-preview-metric {
    padding: 0.55rem 0.65rem;
}

.ev-template-preview-metric__label {
    color: rgba(16, 32, 51, 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ev-template-preview-metric__value {
    margin-top: 0.15rem;
    color: var(--ev-template-preview-accent, inherit);
    font-size: 1.05rem;
    font-weight: 800;
}

.ev-template-preview-metric__delta {
    color: rgba(16, 32, 51, 0.62);
    font-size: 0.76rem;
}

.ev-chart-template-live-preview {
    min-height: 260px;
    width: 100%;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.48);
    transition: min-height 180ms ease, background 180ms ease, border-color 180ms ease;
}

.ev-token-studio {
    display: grid;
    gap: 1rem;
}

.ev-token-sources,
.ev-token-targets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ev-token-source:first-child {
    grid-column: 1 / -1;
}

.ev-token-source,
.ev-drop-zone {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.9rem;
}

.ev-token-palette,
.ev-drop-zone__tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-height: 2.25rem;
}

.ev-token {
    border: 1px solid rgba(42, 76, 132, 0.18);
    border-radius: 999px;
    background: #f6f9ff;
    color: #1e355a;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
    padding: 0.38rem 0.58rem;
    cursor: grab;
}

.ev-token:active {
    cursor: grabbing;
}

.ev-token--selected {
    background: #e8f7f2;
    border-color: rgba(14, 162, 139, 0.35);
    color: #087563;
    cursor: pointer;
}

.ev-drop-zone {
    min-height: 8rem;
    transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.ev-drop-zone.is-dragover {
    border-color: #0ea28b;
    background: #effaf7;
    box-shadow: 0 0 0 0.18rem rgba(14, 162, 139, 0.12);
}

.ev-drop-zone.is-empty .ev-drop-zone__tokens::before {
    content: "Trascina qui";
    color: #7b8798;
    font-size: 0.82rem;
}

.ev-drop-zone__title {
    font-weight: 800;
    color: #17243a;
}

.ev-drop-zone__hint {
    color: #65758b;
    font-size: 0.82rem;
    margin-bottom: 0.7rem;
}

@media (max-width: 991.98px) {
    .ev-token-sources,
    .ev-token-targets {
        grid-template-columns: 1fr;
    }

    .ev-sticky-preview {
        position: static;
    }
}
