.side-item,
.metric,
.task-card,
.ledger-card,
.quick-card,
.view-all,
.legend-item,
.top-actions button,
.section-head button,
.task-action {
  cursor: pointer;
}

.side-item:focus-visible,
.metric:focus-visible,
.task-card:focus-visible,
.ledger-card:focus-visible,
.quick-card:focus-visible,
.view-all:focus-visible,
.legend-item:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(86, 190, 255, 0.95);
  outline-offset: 2px;
}

.metric:hover,
.task-card:hover,
.ledger-card:hover,
.quick-card:hover {
  border-color: rgba(94, 190, 255, 0.86);
  box-shadow: inset 0 0 22px rgba(40, 146, 255, 0.18), 0 0 18px rgba(32, 155, 255, 0.18);
}

.top-actions button:hover,
.section-head button:hover,
.task-action:hover {
  border-color: rgba(100, 200, 255, 0.9);
  background: linear-gradient(180deg, rgba(18, 70, 140, 0.96), rgba(9, 44, 96, 0.9));
}

.interaction-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(1, 9, 22, 0.48);
}

.interaction-layer[hidden] {
  display: none;
}

.interaction-card {
  position: relative;
  width: min(760px, calc(100vw - 40px));
  max-height: min(420px, calc(100vh - 40px));
  padding: 20px 22px 18px;
  overflow: auto;
  border: 1px solid rgba(73, 162, 245, 0.72);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(8, 38, 86, 0.98), rgba(4, 19, 45, 0.98));
  box-shadow: 0 18px 60px rgba(0, 6, 18, 0.58), inset 0 0 26px rgba(53, 155, 255, 0.16);
}

.interaction-title {
  margin: 0 36px 14px 0;
  color: #e8f5ff;
  font-size: 19px;
  font-weight: 900;
}

.interaction-body p {
  margin: 9px 0;
  color: #c6def7;
  font-size: 14px;
  line-height: 1.55;
}

.interaction-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid rgba(67, 151, 232, 0.36);
  border-radius: 6px;
}

.interaction-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: #dceeff;
  font-size: 13px;
}

.interaction-table th,
.interaction-table td {
  max-width: 240px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(63, 139, 219, 0.22);
  text-align: left;
  white-space: nowrap;
}

.interaction-table th {
  position: sticky;
  top: 0;
  background: rgba(8, 45, 96, 0.98);
  color: #bfe4ff;
  font-weight: 900;
}

.interaction-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.interaction-table .interaction-empty {
  color: #8fb5dc;
  text-align: center;
}

.interaction-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.interaction-actions button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(79, 170, 255, 0.64);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(17, 73, 147, 0.92), rgba(7, 37, 86, 0.92));
  color: #e2f3ff;
  cursor: pointer;
  font-weight: 800;
}

.interaction-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(75, 164, 245, 0.55);
  border-radius: 50%;
  background: rgba(7, 34, 77, 0.86);
  color: #dff3ff;
  font-size: 20px;
  line-height: 1;
}

.interaction-toast {
  position: fixed;
  z-index: 21;
  left: 50%;
  bottom: 34px;
  max-width: calc(100vw - 48px);
  padding: 10px 16px;
  border: 1px solid rgba(74, 172, 255, 0.68);
  border-radius: 6px;
  background: rgba(5, 28, 66, 0.96);
  color: #def2ff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.interaction-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
