/* The legacy hover popup must never compete with the controlled floating menu. */
.task-menu .task-menu-pop { display: none !important; }
.task-menu > button[aria-expanded="true"] { background: #e8f2f5; outline: 2px solid #bfd8e0; outline-offset: 1px; }
.task-menu-pop[data-task-floating] {
  display: grid !important;
  position: fixed;
  inset: auto;
  margin: 0;
  z-index: 2147483000;
  width: 180px;
  min-width: 0;
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  gap: 4px;
  padding: 6px;
  border: 1px solid #d9e3e8;
  border-radius: 14px;
  background: #fff;
  color: #102832;
  box-shadow: 0 12px 36px rgba(16,40,50,.18);
  transform: none;
}
.task-menu-pop[data-task-floating] > button {
  display: flex;
  width: 100%;
  min-height: 38px;
  height: auto;
  padding: 8px 10px;
  box-sizing: border-box;
  justify-content: flex-start;
  border-radius: 9px;
  white-space: normal;
  text-align: left;
  box-shadow: none;
}
.task-menu-pop[data-task-floating] > button:focus-visible { outline: 2px solid #176d83; outline-offset: -2px; }
.task-menu-pop[data-task-floating]::backdrop { background: transparent; pointer-events: none; }
/* At native zoom the single-column board must not shrink its scroll areas to zero. */
@media (max-width: 1160px) {
  #tab-meudia .day-board:not(.day-list-mode) { flex: 0 0 auto; grid-auto-rows: auto; }
  #tab-meudia .day-board:not(.day-list-mode) .day-col {
    height: clamp(240px, 60vh, 520px);
    min-height: 240px;
    max-height: none;
    box-sizing: border-box;
  }
  #tab-meudia .day-board:not(.day-list-mode) .day-col:not(:has(.day-task-card)) { height: auto; min-height: 100px; }
}
