:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --warning: #d97706;
  --warning-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --info: #0284c7;
  --info-soft: #e0f2fe;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
}

.hidden {
  display: none;
}

#app {
  min-height: 100vh;
}

#login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#login-view.hidden {
  display: none;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}

.login-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.login-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
}

.login-card label {
  text-align: left;
}

.login-card .btn-block {
  margin-top: 8px;
}

#main-view {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

#main-view.hidden {
  display: none;
}

#sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.brand-name {
  font-weight: 800;
}

.app-version {
  font-weight: 600;
  font-size: 11px;
  color: var(--muted);
  vertical-align: middle;
}

.login-card h1 .app-version {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 11px 14px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn-external {
  text-decoration: none;
  margin-top: 8px;
  border: 1px dashed #c7d2fe;
  color: var(--primary-dark);
}

.tab-btn.tab-btn-external .icon {
  color: var(--primary);
}

.tab-btn .icon {
  color: var(--muted);
  transition: color 0.2s ease;
}

.tab-btn:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.tab-btn:hover .icon {
  color: var(--primary-dark);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.2);
}

.tab-btn.active .icon {
  color: #fff;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  min-width: 0;
}

.user-name {
  font-weight: 700;
  font-size: 14px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
}

.topbar-date {
  margin: 4px 0 0;
  color: var(--muted);
  text-transform: capitalize;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

#content {
  padding: 28px;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fade-in 0.25s ease;
}

.page-header h2 {
  margin: 0;
  font-size: 24px;
}

.page-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.form-card {
  padding: 0;
  overflow: hidden;
}

@keyframes form-flash {
  0% {
    background-color: var(--flash-color, rgba(79, 70, 229, 0.55));
  }

  100% {
    background-color: var(--surface);
  }
}

.form-card.flash {
  /* Lampo istantaneo, poi rampa progressiva verso il bianco (easing quartico/biquadratico) */
  animation: form-flash 1100ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.form-card .form-grid {
  padding: 20px;
}

.select-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.select-card select {
  margin-top: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: end;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.form-grid .form-grid-full {
  grid-column: 1 / -1;
}

.form-grid .form-check-inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.form-grid .form-check-inline input {
  width: auto;
}

.asset-photo-box {
  position: relative;
  height: 96px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.asset-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.asset-photo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.asset-photo-input {
  flex: 1 1 auto;
  min-width: 0;
}

.asset-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.asset-thumb-sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

.asset-hover-preview {
  position: fixed;
  z-index: 1000;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  pointer-events: none;
}

.asset-hover-preview.hidden {
  display: none;
}

.asset-hover-preview-photo {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f1f5f9;
}

.asset-hover-preview-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.asset-hover-preview-body strong {
  color: var(--text);
  font-size: 14px;
}

.asset-thumb-sm-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.asset-thumb-sm-placeholder .icon {
  width: 14px;
  height: 14px;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background: #e0e7ff;
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-danger:hover {
  background: #fecaca;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-sm {
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-wrap {
  overflow: auto;
}

.form-card-sticky {
  position: sticky;
  top: 90px;
  z-index: 5;
}

.table-card-scroll .table-wrap {
  max-height: 55vh;
  overflow-y: auto;
}

.table-card-scroll table thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f9fafb;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.pagination-nav {
  display: flex;
  gap: 8px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}

td.wrap {
  white-space: normal;
}

th {
  background: #f9fafb;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

th.sortable:hover {
  color: var(--primary-dark);
}

.sort-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
}

.filter-row th {
  background: #fff;
  padding: 6px 10px 10px;
  border-bottom: 2px solid var(--border);
}

.table-filter {
  width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
}

.table-filter:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.table-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  color: var(--muted);
}

.table-search .icon {
  flex-shrink: 0;
}

.table-search input {
  border: none;
  padding: 0;
  font-size: 14px;
}

.table-search input:focus {
  outline: none;
  box-shadow: none;
}

tbody tr:hover {
  background: #f8fafc;
}

tbody tr:last-child td {
  border-bottom: none;
}

code {
  font-family: "Courier New", monospace;
  font-size: 12px;
  background: var(--bg);
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--text);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-muted {
  background: #f3f4f6;
  color: var(--muted);
}

.badge-primary {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-info {
  background: var(--info-soft);
  color: var(--info);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kpi-icon-primary {
  background: var(--primary-soft);
}

.kpi-icon-info {
  background: var(--info-soft);
}

.kpi-icon-warning {
  background: var(--warning-soft);
}

.kpi-icon-success {
  background: var(--success-soft);
}

.kpi-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.kpi-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.card-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}

.dashboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 12px;
}

.dashboard-list-title {
  font-weight: 700;
  font-size: 14px;
}

.dashboard-list-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.calendar-card {
  padding: 20px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.calendar-header h3 {
  margin: 0;
  text-transform: capitalize;
  font-size: 18px;
}

.calendar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 210px;
  gap: 16px;
  align-items: stretch;
}

.calendar-main {
  min-width: 0;
}

.calendar-side {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.calendar-side-left {
  gap: 12px;
}

.calendar-side-block {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Le colonne laterali restano visibili mentre si scorre il calendario (utile in vista settimana, dove i
   giorni sono alti): le liste scorrono al loro interno, così le palette sono sempre a portata di trascinamento. */
.calendar-side {
  position: sticky;
  top: 104px;
  align-self: start;
  max-height: calc(100vh - 124px);
}

.calendar-side-left .calendar-side-block {
  flex: 0 1 auto;
  max-height: 45%;
}

.calendar-side-left .calendar-side-block-scroll {
  flex: 1 1 auto;
  max-height: none;
}

.calendar-side-left .calendar-side-block > .calendar-palette {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.calendar-side-right {
  min-height: 0;
}

.calendar-side-block-scroll {
  min-height: 120px;
}

.calendar-side h4 {
  margin: 0 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.calendar-side-hint {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--muted);
}

.palette-search {
  width: 100%;
  padding: 7px 9px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
}

.palette-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.calendar-side-empty {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.calendar-palette {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-palette-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.calendar-side.drop-target,
.calendar-side-block.drop-target {
  background: #fee2e2;
  border-color: #fca5a5;
}

.palette-chip {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: grab;
  user-select: none;
}

.palette-chip:active {
  cursor: grabbing;
}

.select-list-item {
  padding: 7px 9px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  margin-bottom: 6px;
}

.select-list-item:last-child {
  margin-bottom: 0;
}

.select-list-item-asset {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-list-item-asset .asset-thumb-sm {
  width: 22px;
  height: 22px;
}

.select-list-item:hover {
  border-color: #a5b4fc;
}

.select-list-item.selected {
  background: #c7d2fe;
  border-color: #6366f1;
  color: #312e81;
}

.select-list-item:active {
  cursor: grabbing;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-orange {
  background: #fed7aa;
}

.legend-yellow {
  background: #fde68a;
}

.legend-green {
  background: #bbf7d0;
}

.legend-red {
  background: #fecaca;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-grid-week .day {
  min-height: 380px;
}

.view-switch {
  display: inline-flex;
  padding: 3px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.view-switch-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
}

.view-switch-btn.active {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.weekday {
  text-align: center;
  font-weight: 800;
  color: var(--muted);
  padding: 10px 0;
  background: #f9fafb;
  border-radius: 10px;
  font-size: 13px;
}

.day {
  min-width: 0;
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}

.day-empty {
  background: transparent;
  border: none;
}

.day.today {
  background: linear-gradient(180deg, #eff6ff, #fff);
  border-color: #bfdbfe;
}

.day.drop-target {
  background: #eef2ff;
  border-color: var(--primary, #6366f1);
  border-style: dashed;
}

.day-number {
  font-weight: 800;
  color: var(--muted);
}

.day-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.activity-chip {
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: grab;
  border: 1px solid transparent;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.activity-chip[draggable="false"] {
  cursor: default;
}

.activity-chip:active {
  cursor: grabbing;
}

.activity-chip.drop-target {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.touch-dragging {
  opacity: 0.55;
  box-shadow: 0 0 0 2px var(--primary, #6366f1);
}

.activity-chip-main {
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-chip-title {
  display: block;
}

.activity-chip-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.activity-chip-tags-label {
  font-size: 10px;
  font-weight: 800;
  opacity: 0.65;
  margin-right: 2px;
}

.assigned-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.65);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 10px;
}

.assigned-tag[draggable="true"] {
  cursor: grab;
  text-decoration: underline dotted;
}

.assigned-tag-empty {
  font-style: italic;
  font-weight: 500;
  opacity: 0.6;
  background: transparent;
  padding: 2px 0;
}

.activity-chip-done {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.activity-chip-done input {
  width: auto;
  margin: 0;
}

/* Colori pastello semaforici */
.activity-chip.status-orange {
  background: #ffedd5;
  color: #9a3412;
}

.activity-chip.status-yellow {
  background: #fef3c7;
  color: #92400e;
}

.activity-chip.status-green {
  background: #d1fae5;
  color: #065f46;
}

.activity-chip.status-red {
  background: #fee2e2;
  color: #991b1b;
}

.activity-chip.is-done {
  opacity: 0.65;
}

.activity-chip.is-done .activity-chip-title {
  text-decoration: line-through;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  margin-bottom: 16px;
}

.activity-modal-content {
  width: 100%;
  max-width: 620px;
  text-align: left;
}

.activity-modal-content h3 {
  margin: 0 0 12px;
}

.activity-modal-content .form-grid {
  align-items: start;
  margin-bottom: 16px;
}

.modal-hint {
  background: var(--warning-soft);
  color: var(--warning);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}

.modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-column h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.modal-check-list {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.modal-check-item input {
  width: auto;
  margin: 0;
}

.modal-actions {
  justify-content: flex-end;
}

.scanner-modal-content {
  width: 100%;
  max-width: 420px;
}

.scanner-modal-content h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.scanner-modal-content video {
  width: 100%;
  border-radius: 14px;
  background: #000;
  margin-bottom: 14px;
}

.input-scan {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.input-scan input {
  flex: 1;
  min-width: 0;
}

.scan-btn {
  flex-shrink: 0;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  cursor: pointer;
  transition: background 0.2s ease;
}

.scan-btn:hover {
  background: #e0e7ff;
}

.autocomplete-list {
  position: relative;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  max-height: 260px;
  overflow-y: auto;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}

.autocomplete-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item:active {
  background: var(--primary-soft);
}

.autocomplete-item-main {
  font-weight: 700;
  font-size: 14px;
}

.autocomplete-item-sub {
  font-size: 12px;
  color: var(--muted);
}

.autocomplete-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
}

.asset-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f9fafb;
}

.asset-preview-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.asset-preview-description {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease;
}

.toast-success {
  background: var(--success);
}

.toast-error {
  background: var(--danger);
}

.toast-warning {
  background: var(--warning);
}

.toast-hide {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error {
  color: var(--danger);
  margin: 12px 0 0;
  min-height: 18px;
}

@media (max-width: 900px) {
  #main-view {
    grid-template-columns: 1fr;
  }

  #sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .tabs {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1 100%;
    order: 3;
  }

  .sidebar-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  #content {
    padding: 16px;
  }

  .topbar {
    padding: 14px 16px;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-side {
    position: static;
    max-height: none;
  }

  .form-card-sticky {
    top: 70px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .scan-btn {
    width: 48px;
  }

  .btn {
    min-height: 44px;
  }

  .table-card-scroll .table-wrap {
    max-height: 45vh;
  }
}

/* ------------------------------------------------------------ piano Free: badge, banner, modali */

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.plan-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 28px 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
}

.plan-banner.hidden {
  display: none;
}

.plan-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 260px;
}

.plan-banner-text span,
.plan-banner-note {
  color: var(--muted);
}

.plan-banner-ok {
  background: var(--primary-soft);
  border-color: #c7d2fe;
}

.plan-banner-warning {
  background: var(--warning-soft);
  border-color: #fcd34d;
}

.plan-banner-blocked {
  background: var(--danger-soft);
  border-color: #fca5a5;
}

.plan-banner-blocked strong {
  color: var(--danger);
}

.plan-meter {
  flex: 0 1 200px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.plan-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.plan-banner-warning .plan-meter span {
  background: var(--warning);
}

.plan-modal-content,
.plan-edit-content {
  max-width: 460px;
  padding: 28px;
}

.plan-modal-content h3,
.plan-edit-content h3 {
  margin: 8px 0 10px;
}

.plan-modal-content p {
  color: var(--muted);
  line-height: 1.55;
}

.plan-modal-icon .icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.plan-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.plan-edit-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-edit-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.plan-edit-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-weight: 600;
}

.plan-edit-check input {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

/* ------------------------------------------------------------ accesso: link, avvisi, reset password */

.login-help {
  margin: 0 0 12px;
  text-align: left;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.login-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
}

.login-links a {
  color: var(--primary-dark);
  text-decoration: none;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--primary-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn.hidden {
  display: none;
}

.login-back {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.login-notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.login-notice.hidden {
  display: none;
}

.login-notice-info {
  background: var(--info-soft);
  color: #075985;
}

.login-notice-success {
  background: var(--success-soft);
  color: #166534;
}

.login-notice-error {
  background: var(--danger-soft);
  color: #991b1b;
}

@media (max-width: 900px) {
  .plan-banner {
    margin: 12px 16px 0;
  }
}

a.btn {
  text-decoration: none;
}

.movement-asset-select {
  margin-top: 8px;
}

/* ------------------------------------------------------------ clienti, commesse, orari, navigazione */

/* Colonna destra del calendario: due blocchi (Operatori, Asset). Ciascuno occupa al massimo metà della
   colonna (alta 100vh - 124px, vedi .calendar-side) e la sua lista scorre all'interno: così un elenco lungo,
   come gli asset, non schiaccia l'altro. */
.calendar-side-right {
  gap: 12px;
}

.calendar-side-right .calendar-side-block {
  flex: 0 1 auto;
  max-height: calc(50vh - 82px);
}

/* Colonna sinistra: con molti clienti i tipi di attività devono restare raggiungibili */
.calendar-side-left .calendar-side-block:not(.calendar-side-block-scroll) {
  min-height: 190px;
}

.calendar-palette-more {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

/* Palette "Clienti e commesse": riga del cliente + commesse aperte annidate */
.customer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: grab;
}

.customer-row-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-row-count {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.customer-row-count .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}

.customer-item.expanded .customer-row {
  border-color: #a5b4fc;
  background: var(--primary-soft);
}

.customer-item.expanded .customer-row-count .icon {
  transform: rotate(180deg);
}

.customer-jobs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 2px 10px;
  padding-left: 8px;
  border-left: 2px solid #c7d2fe;
}

.job-chip {
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  cursor: grab;
  user-select: none;
  overflow-wrap: anywhere;
}

.job-chip:hover {
  border-color: #a5b4fc;
}

.job-chip:active {
  cursor: grabbing;
}

/* Segnaposto: orario, tipo mancante, navigazione, scelta della commessa */
.activity-chip-time {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.activity-chip-title-missing {
  font-style: italic;
  font-weight: 600;
  opacity: 0.7;
}

.chip-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary-dark);
  vertical-align: middle;
  cursor: pointer;
}

.chip-nav:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.chip-nav .icon {
  width: 12px;
  height: 12px;
}

.chip-job-select {
  /* Occupa una riga intera del segnaposto: nelle colonne strette del mese il testo resta leggibile */
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  /* Senza la freccia nativa (la freccia è nel testo "scegli ▾"): nelle colonne strette ruberebbe metà spazio */
  appearance: none;
  -webkit-appearance: none;
  padding: 2px 4px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  color: inherit;
  cursor: pointer;
}

/* Finestra attività: indirizzo del cliente e pulsante di navigazione */
.modal-place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.modal-place:empty {
  display: none;
}

.modal-place-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.modal-place-text .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* Moduli delle anagrafiche e delle impostazioni */
.geo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.form-hint {
  flex: 1 1 260px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.param-name {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--muted);
}

.label-with-param {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-notes {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* Dashboard dell'operatore: i miei interventi, pensata per il telefono */
.my-jobs-card {
  margin-bottom: 16px;
}

.my-jobs {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-job {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f9fafb;
}

.my-job-when {
  flex: 0 0 96px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.my-job-when strong {
  color: var(--primary-dark);
  text-transform: capitalize;
}

.my-job-when span {
  color: var(--muted);
  font-weight: 600;
}

.my-job-what {
  flex: 1 1 auto;
  min-width: 0;
}

.my-job-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

@media (max-width: 900px) {
  /* Su telefono le colonne laterali non sono fisse: gli elenchi si mostrano per intero */
  .calendar-side-right .calendar-side-block {
    max-height: none;
  }

  .my-job {
    flex-wrap: wrap;
  }

  .my-job-when {
    flex: 1 1 100%;
    flex-direction: row;
    gap: 10px;
  }

  .my-job-actions {
    flex: 1 1 100%;
  }

  .my-job-actions .btn {
    flex: 1 1 0;
    justify-content: center;
  }
}

/* Pianificazione: barra "Clienti e commesse" sopra il calendario */
.plan-bar {
  margin-bottom: 16px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.15s, border-color 0.15s;
}

.plan-bar-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.plan-bar-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.plan-bar-search {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.plan-bar-items {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.plan-bar-items .customer-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.plan-bar-items .customer-row {
  width: auto;
  max-width: 280px;
  padding: 7px 10px;
  gap: 8px;
}

.plan-bar-items .customer-jobs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding-left: 8px;
  border-left: 2px solid #c7d2fe;
}

.plan-bar-items .job-chip {
  max-width: 260px;
  padding: 7px 9px;
}

.plan-bar-empty,
.plan-bar-more {
  align-self: center;
  font-size: 12px;
  color: var(--muted);
}

.plan-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.plan-back .icon {
  width: 14px;
  height: 14px;
}

/* Segnaposto per un cliente non ancora in anagrafica */
.free-customer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1.5px dashed #818cf8;
  border-radius: 10px;
  background: #fff;
  color: #4338ca;
  font-size: 12px;
  cursor: grab;
  user-select: none;
}

.free-customer-chip span {
  font-weight: 500;
  color: var(--text, #1f2937);
}

.free-customer-chip:hover {
  background: var(--primary-soft);
}

.free-customer-chip:active {
  cursor: grabbing;
}

.assigned-tag-free {
  border-style: dashed;
  font-style: italic;
}

.modal-inline {
  display: flex;
  gap: 8px;
}

.modal-inline input {
  flex: 1 1 auto;
  min-width: 0;
}

/* Vista giorno: una sola colonna larga */
.calendar-grid-day {
  grid-template-columns: minmax(0, 1fr);
}

.calendar-grid-day .day {
  min-height: 380px;
}

/* Elenco in basso: operatori liberi nel giorno di riferimento */
.free-operators-card {
  padding: 20px;
  margin-top: 16px;
}

.free-operators-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.free-operators-head h3 {
  margin: 0;
  font-size: 16px;
}

.free-operators-date {
  color: var(--muted);
  font-size: 13px;
}

.free-operators-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.free-operators-list .free-operator {
  width: auto;
  padding: 8px 12px;
}

@media (max-width: 720px) {
  .plan-bar-head {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
}

/* Console superadmin: utilizzo dei tenant */
.usage-card { padding: 20px; margin-bottom: 16px; }
.usage-head h3 { margin: 0 0 4px; font-size: 18px; }
.usage-head p { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.usage-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.usage-kpi { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: #f9fafb; display: flex; flex-direction: column; gap: 2px; }
.usage-kpi strong { font-size: 24px; line-height: 1.1; }
.usage-kpi span { font-size: 12px; color: var(--muted); }
.usage-kpi-warning { background: var(--warning-soft); border-color: #fcd34d; }
.usage-kpi-warning strong { color: var(--warning); }
.usage-kpi-danger { background: var(--danger-soft); border-color: #fca5a5; }
.usage-kpi-danger strong { color: var(--danger); }
.usage-kpi-ok strong { color: var(--success); }
.usage-list { display: flex; flex-direction: column; gap: 10px; }
.usage-row { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(180px, 1.4fr) 170px minmax(160px, 1.3fr) minmax(180px, 1.5fr); gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.usage-row-off { opacity: 0.6; }
.usage-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.usage-who small, .usage-trend small { font-size: 11px; color: var(--muted); }
.usage-bar { height: 12px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.usage-bar-open { background: repeating-linear-gradient(135deg, #e0e7ff 0 8px, #eef2ff 8px 16px); }
.usage-fill { display: block; height: 100%; border-radius: 999px; transition: width 0.3s; }
.usage-fill-ok { background: var(--success); }
.usage-fill-mid { background: #84cc16; }
.usage-fill-warning { background: var(--warning); }
.usage-fill-danger { background: var(--danger); }
.usage-bar-label { margin-top: 4px; font-size: 12px; color: var(--muted); }
.usage-bar-label strong { color: var(--text); }
.usage-trend { display: flex; flex-direction: column; gap: 3px; }
.usage-spark { display: block; max-width: 100%; }
.usage-stack { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #e5e7eb; }
.usage-stack span { display: block; height: 100%; }
.usage-legend { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 5px; font-size: 11px; color: var(--muted); }
.usage-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.usage-none { font-size: 12px; color: var(--muted); }
.usage-alerts { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.usage-alert { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 8px; }
.usage-alert-danger { background: var(--danger-soft); color: #b91c1c; }
.usage-alert-warning { background: var(--warning-soft); color: #92400e; }
.usage-alert-success { background: var(--success-soft); color: #166534; }
.usage-alert-muted { background: #f3f4f6; color: #4b5563; }
@media (max-width: 1100px) {
  .usage-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .usage-row { grid-template-columns: 1fr; }
}

/* Importazione da Excel */
.import-sheet { margin-bottom: 16px; }
.import-map { margin: 12px 0; }
.import-sample { max-height: 220px; overflow: auto; margin-top: 12px; }
.import-sample td { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; font-size: 0.82rem; padding: 4px 8px; }
.import-sample .import-head td { font-weight: 600; background: var(--surface-alt, rgba(127,127,127,0.12)); }
.import-results { margin-top: 16px; }
.import-result { margin-bottom: 14px; }
.import-report { margin: 8px 0 0 18px; padding: 0; font-size: 0.86rem; max-height: 240px; overflow: auto; }
.import-error { color: #b91c1c; }
.import-warning { color: #b45309; }
.checkbox-line { display: flex; align-items: center; gap: 8px; }
.checkbox-line input { width: auto; }
